Subject: | Configuration fails with Perl 5 blead due to no-dot-by-default-in-@INC |
In Perl 5.26.0, '.' will no longer be found by default in @INC.
Today I attempted to build and test Class-Trigger via 'cpanm' against Perl 5 blead. I got these errors.
#####
$ /home/jkeenan/testing/blead/bin/perl -I /home/jkeenan/testing/blead/lib Makefile.PL
Can't locate inc/Module/Install.pm in @INC (you may need to install the inc::Module::Install module) (@INC contains: /home/jkeenan/testing/blead/lib /home/jkeenan/testing/blead/lib/perl5/site_perl/5.25.11/x86_64-linux /home/jkeenan/testing/blead/lib/perl5/site_perl/5.25.11 /home/jkeenan/testing/blead/lib/perl5/5.25.11/x86_64-linux /home/jkeenan/testing/blead/lib/perl5/5.25.11) at Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.
#####
The patch attached enabled me to configure, build and test this library. Please review. There may be other CPAN libraries for which Class-Trigger is a prerequisite. For CPAN testers to evaluate the 5.26.0-readiness of those libraries, a corrected and CPAN-released version of Class-Trigger will be needed.
Thank you very much.
Jim Keenan
Subject: | Class-Trigger.20170331.diff |
--- Makefile.PL.orig 2017-03-31 21:17:38.543106491 -0400
+++ Makefile.PL 2017-03-31 21:17:53.417698786 -0400
@@ -1,3 +1,4 @@
+use lib '.';
use inc::Module::Install;
name 'Class-Trigger';
all_from 'lib/Class/Trigger.pm';