Skip Menu |

This queue is for tickets about the Module-ScanDeps CPAN distribution.

Report information
The Basics
Id: 78660
Status: resolved
Priority: 0/
Queue: Module-ScanDeps

People
Owner: Nobody in particular
Requestors: peter [...] makholm.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: t/90-rt59710.t fails: "Can't locate Storable.pm in @INC" (perl-5.17.2)
Trying to install PAR-Packer 1.013 on perl 5.17.2 fails with the following transcript of the test suite: make[1]: Leaving directory `/home/makholm/.cpanm/work/1343634277.18979/PAR-Packer-1.013/myldr' PERL_DL_NONLAZY=1 /home/makholm/perl5/perlbrew/perls/perl-5.17.2/bin/perl5.17.2 "-MExtUtils::Command::MM" "- e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/00-pod.t t/10-parl-generation.t t/20-pp.t t/30- current_exec.t t/40-packer_cd_option.t t/90-rt59710.t t/00-pod.t ............... skipped: Set environment variable PERL_TEST_POD=1 to test POD t/10-parl-generation.t ... ok /tmp/TGVnZmnQHF syntax OK t/20-pp.t ................ ok # Please wait t/30-current_exec.t ...... ok t/40-packer_cd_option.t .. ok Can't locate Storable.pm in @INC (@INC contains: CODE(0x19efe38) /tmp/6Rt1qWizv5/par-6d616b686f6c6d/cache- 884f52a8edf432130de00fe8112cb6f11d398431/inc/lib /tmp/6Rt1qWizv5/par-6d616b686f6c6d/cache- 884f52a8edf432130de00fe8112cb6f11d398431/inc CODE(0x1722d28) CODE(0x1722e30)) at if.pm line 13. BEGIN failed--compilation aborted at Unicode/UCD.pm line 138. Compilation failed in require at script/ppz3hEg.pl line 1. BEGIN failed--compilation aborted at script/ppz3hEg.pl line 1. # Failed test '"/tmp/rt59710" ran successfully' # at t/90-rt59710.t line 28. # Failed test at t/90-rt59710.t line 29. # got: '' # expected: 'LATIN CAPITAL LETTER B' # Looks like you failed 2 tests of 3. t/90-rt59710.t ........... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/3 subtests Test Summary Report ------------------- t/90-rt59710.t (Wstat: 512 Tests: 3 Failed: 2) Failed tests: 2-3 Non-zero exit status: 2 Files=6, Tests=74, 56 wallclock secs ( 0.04 usr 0.01 sys + 43.29 cusr 7.68 csys = 51.02 CPU) Result: FAIL Failed 1/6 test programs. 2/74 subtests failed. make: *** [test_dynamic] Error 2
On 2012-07-30 04:02:19, pmakholm wrote: Show quoted text
> Trying to install PAR-Packer 1.013 on perl 5.17.2 fails with the > following transcript of the test suite: > Can't locate Storable.pm in @INC (@INC contains: CODE(0x19efe38) > BEGIN failed--compilation aborted at Unicode/UCD.pm line 138.
That's caused by Unicode::UCD in Perl 5.17.x switching from use Storable qw(dclone); to sub _dclone ($) { # Use Storable::dclone if available; otherwise emulate it. use if defined &DynaLoader::boot_DynaLoader, Storable => qw(dclone); return dclone(shift) if defined &dclone; ... The latter (conditional) dependency on Storable can't be detected by static analysisi (yet). Possible fixes: (a) add %Preload rule: Unicode/UCD.pm => [qw( Storable.pm )] (b) teach Module::ScanDeps about "use if ..." constructs Cheers, Roderich
Fixed in 1.09 (by teaching M:SD about "use if ..." constructs; tested with Perl 5.17.3 Cheers, Roderich