Subject: | Test failures when perl has a relative path |
If you run Makefile.PL using a relative path for perl, then you get test
failures later when you "make test". Everything's fine if you use a
fully-qualified path for perl.
To reproduce this:
$ tar xzf ExtUtils-MakeMaker-6.56.tar.gz
$ cd ExtUtils-MakeMaker-6.56
$ ../myperl/bin/perl Makefile.PL
$ make test
...
FAIL! DOOM! DISASTER!
Invoking Makefile.PL thus with exactly the same build of perl makes
everything work:
$ $HOME/myperl/bin/perl Makefile.PL
$ make test
...
YAY! SPARKLY UNICORNS!
I guess that there's a chdir() somewhere in the tests. The fix in this
situation is normally to use $Config{perlpath} (possibly with
$Config{_exe} tacked on the end if it's not there already).