Subject: | CPANPLUS in core perl use /usr/local/cpan-run-perl |
CPANPLUS has logic to find cpanp-run-perl but when this runs during
perl-5.12.0's own `make test`, it runs the program
/usr/local/bin/cpanp-run-perl instead of the script packaged with perl.
Jos Boumans already fixed the lookup in core perl with the commit
8c57606294f48eb065dff03f7ffefc1e4e2cdce4. Unfortunately, $ENV{PATH} has
/usr/local/src/perl-5.12.0-RC4/cpan/CPANPLUS/t/../bin which has the
scripts but they aren't executable. We also need utils/ added to
$ENV{PATH} because cpanp-run-perl has chmod+x over there.
For diagnostics, my %ENV and the path to cpanp-run-perl that's found:
$ENV1 = {
'DYLD_LIBRARY_PATH' => '/usr/local/src/perl-5.12.0-RC4',
'EMXSHELL' => 'sh',
'FTP_PASSIVE' => 1,
'HOME' => '/var/root',
'MAKEFLAGS' => '',
'MAKELEVEL' => '1',
'MFLAGS' => '',
'OLDPWD' => '/usr/local/src/perl-5.12.0-RC4',
'PATH' =>
'/usr/local/src/perl-5.12.0-RC4/cpan/CPANPLUS/t/../bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/PalmSDK/Current/bin:/usr/X11/bin',
'PERL' => './perl',
'PERL5LIB' =>
'../../lib:../../t:/usr/local/src/perl-5.12.0-RC4/cpan/CPANPLUS/t/../lib:/usr/local/src/perl-5.12.0-RC4/cpan/CPANPLUS/t/inc:/usr/local/src/perl-5.12.0-RC4/cpan/CPANPLUS/../../lib:/usr/local/src/perl-5.12.0-RC4/cpan/CPANPLUS/../../t:/usr/local/src/perl-5.12.0-RC4/cpan/CPANPLUS',
'PERL5_CPANPLUS_IS_RUNNING' => 53065,
'PERL5_CPANPLUS_IS_VERSION' => '0.90',
'PERL_CORE' => '../../t/perl',
'PERL_DESTRUCT_LEVEL' => '2',
'PWD' => '/usr/local/src/perl-5.12.0-RC4/cpan/CPANPLUS/t',
'SHELL' => '/bin/sh',
'SHLVL' => '3',
'TERM' => 'xterm',
'USER' => 'root',
'_' => './perl'
};
$cpanp_run_perl1 = [
'/usr/bin/cpanp-run-perl'
];