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 configure, build and test Context-Preserve against Perl 5 blead. I got these errors during configuration:
#####
$ /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 should permit configuration.
Thank you very much.
Jim Keenan
Subject: | Context-Preserve.20170331.diff |
--- Makefile.PL.orig 2017-03-31 22:19:08.149279518 -0400
+++ Makefile.PL 2017-03-31 22:19:23.440238219 -0400
@@ -1,3 +1,4 @@
+use lib '.';
use inc::Module::Install;
name 'Context-Preserve';