Subject: | Makefile.PL fails on Perl without "." in @INC |
Perl 5.26.0 removes "." form @INC and Makefile.PL fails:
$ perl Makefile.PL
Can't locate inc/Module/Install.pm in @INC (you may need to install the inc::Module::Install module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at Makefile.PL line 2.
BEGIN failed--compilation aborted at Makefile.PL line 2.
A fix is attached.
Another solution is not to use inc::Module::Install or declare it as a configure-time dependency.
Subject: | Text-Quoted-2.09-Fix-building-on-Perl-without-.-in-INC.patch |
From db550fb42416834966d02fad375ffbb403869a6c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Tue, 16 May 2017 11:51:02 +0200
Subject: [PATCH] Fix building on Perl without "." in @INC
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Petr PÃsaÅ <ppisar@redhat.com>
---
Makefile.PL | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile.PL b/Makefile.PL
index 8d78582..3ae343d 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,4 +1,5 @@
use 5.006;
+BEGIN { push @INC, '.'; }
use inc::Module::Install;
all_from 'lib/Text/Quoted.pm';
--
2.9.4