Subject: | Change in Perl default @INC breaks tests |
***WARNING***
A recent security patch to Perl itself removed '.', the current working
directory, from @INC, the default search path for 'use', 'do', and
'require'. This fix for CVE-2016-1238 will be part of Perl 5.26.0, due
to be released this April, 2017. CPAN.pm will *temporarily* provide
backwards compatibility during the module build/test/install process
by setting the environment variable PERL_USE_UNSAFE_INC=1 during build,
test, and install. HOWEVER:
1) This environment variable is a temporary fix only for compatibility,
due to be removed for Perl 5.30.0.
2) This may mask errors in your module itself, by testing your module
under different conditions than those that it will actually be run
under.
To read more about this, you may find the following links helpful:
* http://blogs.perl.org/users/todd_rinaldo/2016/11/how-removing-from-inc-is-about-to-break-cpan.html
* https://www.perlmonks.org/?node_id=1186105
* http://www.nntp.perl.org/group/perl.perl5.porters/2017/03/msg243722.html
------------------------------
PROGRAM OUTPUT
------------------------------
Output from '/usr/bin/make test':
make[1]: Entering directory '/home/cpan2/.cpan/build/version-0.9917-0/vutil'
"/home/cpan2/install/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- vxs.bs ../blib/arch/auto/version/vxs/vxs.bs 644
make[1]: Leaving directory '/home/cpan2/.cpan/build/version-0.9917-0/vutil'
make[1]: Entering directory '/home/cpan2/.cpan/build/version-0.9917-0/vutil'
"/home/cpan2/install/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- vxs.bs ../blib/arch/auto/version/vxs/vxs.bs 644
No tests defined for version::vxs extension.
make[1]: Leaving directory '/home/cpan2/.cpan/build/version-0.9917-0/vutil'
PERL_DL_NONLAZY=1 "/home/cpan2/install/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
Can't locate t/coretests.pm in @INC (you may need to install the t::coretests module) (@INC contains: /home/cpan2/.cpan/build/version-0.9917-0/blib/lib /home/cpan2/.cpan/build/version-0.9917-0/blib/arch /home/cpan2/install/lib/perl5/site_perl/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/site_perl/5.26.0 /home/cpan2/install/lib/perl5/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/5.26.0) at t/00impl-pp.t line 14.
BEGIN failed--compilation aborted at t/00impl-pp.t line 16.
t/00impl-pp.t ..... skipped: (no reason given)
Can't locate t/coretests.pm in @INC (you may need to install the t::coretests module) (@INC contains: /home/cpan2/.cpan/build/version-0.9917-0/blib/lib /home/cpan2/.cpan/build/version-0.9917-0/blib/arch /home/cpan2/.cpan/build/version-0.9917-0/blib/lib /home/cpan2/.cpan/build/version-0.9917-0/blib/arch /home/cpan2/install/lib/perl5/site_perl/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/site_perl/5.26.0 /home/cpan2/install/lib/perl5/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/5.26.0) at t/01base.t line 14.
BEGIN failed--compilation aborted at t/01base.t line 16.
t/01base.t ........ skipped: (no reason given)
Can't locate t/coretests.pm in @INC (you may need to install the t::coretests module) (@INC contains: /home/cpan2/.cpan/build/version-0.9917-0/blib/lib /home/cpan2/.cpan/build/version-0.9917-0/blib/arch /home/cpan2/install/lib/perl5/site_perl/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/site_perl/5.26.0 /home/cpan2/install/lib/perl5/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/5.26.0) at t/03require.t line 14.
BEGIN failed--compilation aborted at t/03require.t line 15.
t/03require.t ..... skipped: (no reason given)
Can't locate t/coretests.pm in @INC (you may need to install the t::coretests module) (@INC contains: /home/cpan2/.cpan/build/version-0.9917-0/blib/lib /home/cpan2/.cpan/build/version-0.9917-0/blib/arch /home/cpan2/.cpan/build/version-0.9917-0/blib/lib /home/cpan2/.cpan/build/version-0.9917-0/blib/arch /home/cpan2/.cpan/build/version-0.9917-0/blib/lib /home/cpan2/.cpan/build/version-0.9917-0/blib/arch /home/cpan2/install/lib/perl5/site_perl/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/site_perl/5.26.0 /home/cpan2/install/lib/perl5/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/5.26.0) at t/02derived.t line 15.
BEGIN failed--compilation aborted at t/02derived.t line 18.
t/02derived.t ..... skipped: (no reason given)
t/04strict_lax.t .. ok
t/05sigdie.t ...... ok
t/06noop.t ........ ok
t/07locale.t ...... ok
t/09_list_util.t .. ok
t/08_corelist.t ... ok
t/10_lyon.t ....... ok
Test Summary Report
-------------------
t/00impl-pp.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
t/01base.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
t/03require.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
t/02derived.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Files=11, Tests=226, 0 wallclock secs ( 0.07 usr 0.02 sys + 0.91 cusr 0.05 csys = 1.05 CPU)
Result: FAIL
Failed 4/11 test programs. 0/226 subtests failed.
Makefile:943: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255