Subject: | Module::Build fails tests if perl executable is not '/usr/bin/perl' |
[kane@myriad ~...build/Module-Build-0.2606]$ ./Build realclean
Deleting blib
Deleting _build
Deleting Build
[kane@myriad ~...build/Module-Build-0.2606]$ perlc Build.PL
Checking whether your kit is complete...
Looks good
Feature 'YAML_support' enabled.
Creating new 'Build' script for 'Module-Build' version '0.2606'
[kane@myriad ~...build/Module-Build-0.2606]$ ./Build test
[...]
Writing config notes to blib/lib/Module/Build/ConfigData.pm
t/basic.........v-strings are deprecated at /opt/lib/perl5/5.8.3/darwin-2level/Config.pm line 32.
Perl lib version (v5.8.3) doesn't match executable version (v5.8.1) at /opt/lib/perl5/5.8.3/darwin-2level/Config.pm line 32.
Compilation failed in require at /Users/kane/.cpanplus/5.8.3/build/Module-Build-0.2606/blib/lib/Module/Build/Base.pm line 5.
BEGIN failed--compilation aborted at /Users/kane/.cpanplus/5.8.3/build/Module-Build-0.2606/blib/lib/Module/Build/Base.pm line 5.
Compilation failed in require at /Users/kane/.cpanplus/5.8.3/build/Module-Build-0.2606/blib/lib/Module/Build.pm line 14.
BEGIN failed--compilation aborted at /Users/kane/.cpanplus/5.8.3/build/Module-Build-0.2606/blib/lib/Module/Build.pm line 14.
Compilation failed in require at t/basic.t line 6.
BEGIN failed--compilation aborted at t/basic.t line 6.
t/basic.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-41
Failed 41/41 tests, 0.00% okay
[... etc ...]
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/basic.t 255 65280 41 82 200.00% 1-41
t/compat.t 255 65280 ?? ?? % ??
t/ext.t 255 65280 ?? ?? % ??
t/extend.t 255 65280 11 22 200.00% 1-11
t/files.t 0 5 ?? ?? % ??
t/install.t 255 65280 29 58 200.00% 1-29
t/manifypods.t 255 65280 21 42 200.00% 1-21
t/notes.t 255 65280 ?? ?? % ??
t/runthrough.t 255 65280 28 56 200.00% 1-28
t/signature.t 255 65280 ?? ?? % ??
t/versions.t 255 65280 2 4 200.00% 1-2
t/xs.t 255 65280 ?? ?? % ??
Failed 12/13 test scripts, 7.69% okay. 132/136 subtests failed, 2.94% okay.
[kane@myriad ~...build/Module-Build-0.2606]$
running it as 'perlc Build test' fixes this problem. I think the shebang line is being written
with a hardcoded path to perl, rather than $^X.