[MacPorts] #56635: nytprofhtml can't find scripts renamed by mp

MacPorts noreply at macports.org
Fri Jun 8 22:24:58 UTC 2018


#56635: nytprofhtml can't find scripts renamed by mp
--------------------------+------------------------------
 Reporter:  chrstphrchvz  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.5.2
 Keywords:                |       Port:  p5-devel-nytprof
--------------------------+------------------------------
 `nytprofhtml` is [https://github.com/timbunce/devel-
 nytprof/blob/192b904a2386822e4cd4911ccc0715703886575d/bin/nytprofhtml#L75-L85
 hardcoded] to look for scripts named `nytprofcalls` and `flamegraph.pl`:

 {{{#!perl
 my $nytprofcalls = File::Spec->catfile($Config{'bin'}, 'nytprofcalls');
 $nytprofcalls    = which 'nytprofcalls' if not -e $nytprofcalls;

 die "Unable to find nytprofcalls in $Config{bin} or on the PATH"
     unless $nytprofcalls;

 my $flamegraph   = File::Spec->catfile($Config{'bin'}, 'flamegraph') .
 $script_ext;
 $flamegraph      = which "flamegraph$script_ext" if not -e $flamegraph;

 die "Unable to find flamegraph$script_ext in $Config{bin} or on the PATH"
     unless $flamegraph;
 }}}

 However MacPorts appends the Perl version (e.g. `-5.26`) to all of the
 scripts, so running `nytprofhtml` fails with the error:

 {{{
 Unable to find nytprofcalls in /opt/local/bin or on the PATH at
 /opt/local/bin/nytprofhtml-5.26 line 78.
 }}}

 Is this something the port should adjust, or is it potentially something
 the module itself should address?

-- 
Ticket URL: <https://trac.macports.org/ticket/56635>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list