gprofng/Changelog:
2022-07-22 Ruud van der Pas <ruud.vanderpas@oracle.com>
PR gprofng/29351
* gp-display-html/gp-display-html.in: the dynamic loading of
modules occurred too early, resulting in the generation of the
man page to fail in case a module is missing; the loading part is
now done somewhat later in the execution to avoid this problem.
{
my $subr_name = get_my_name ();
+ gp_message ("verbose", $subr_name, "Handling module requirements");
+
#------------------------------------------------------------------------------
# This is clunky at best, but there is a chicken egg problem here. For the
# man page to be generated, the --help and --version options need to work,
"List::Util",
"Cwd",
"File::Basename",
+ "File::stat",
"POSIX",
+ "bigint",
"bignum");
my @missing_modules = ();
{
$cmd = $m . "->import ( qw (min max))";
}
+ elsif ($m eq "bigint")
+ {
+ $cmd = $m . "->import ( qw (hex))";
+ }
else
{
$cmd = $m . "->import";
}
$cmd .= ";";
$result = eval ("$cmd");
+ gp_message ("debugM", $subr_name, "cmd = $cmd");
}
else
{