dev-perl/AnyEvent: Fix for '.' in @INC re bug #614640
authorKent Fredric <kentnl@gentoo.org>
Wed, 14 Jun 2017 08:04:15 +0000 (20:04 +1200)
committerKent Fredric <kentnl@gentoo.org>
Wed, 14 Jun 2017 08:04:47 +0000 (20:04 +1200)
Force 'do' to use a relative path for compile time resolution
instead of searching @INC and failing on Perl 5.26

Bug: https://bugs.gentoo.org/614640
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-perl/AnyEvent/AnyEvent-7.120.0.ebuild
dev-perl/AnyEvent/AnyEvent-7.130.0.ebuild
dev-perl/AnyEvent/files/no-dot-inc.patch [new file with mode: 0644]

index 2fcf1ab63f82f322cfedac801589a5b945cb5f77..c62813ecd1f230bc9133fdf0f9e4319c0308e18c 100644 (file)
@@ -18,3 +18,4 @@ DEPEND="${RDEPEND}
        >=virtual/perl-ExtUtils-MakeMaker-6.520.0
        dev-perl/Canary-Stability
 "
+PATCHES=("${FILESDIR}/no-dot-inc.patch")
index f0d5fd6fbd57a5a6cf417ef3431462703f17ae5f..3d12dacaf2b341bf6a3f7694898dd6c33ae1143e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -18,3 +18,4 @@ DEPEND="${RDEPEND}
        >=virtual/perl-ExtUtils-MakeMaker-6.520.0
        dev-perl/Canary-Stability
 "
+PATCHES=("${FILESDIR}/no-dot-inc.patch")
diff --git a/dev-perl/AnyEvent/files/no-dot-inc.patch b/dev-perl/AnyEvent/files/no-dot-inc.patch
new file mode 100644 (file)
index 0000000..ce0efa5
--- /dev/null
@@ -0,0 +1,28 @@
+From 6fec7931344cc37c9532e8c455ee7f7bf62b9419 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentfredric@gmail.com>
+Date: Wed, 14 Jun 2017 19:56:48 +1200
+Subject: [PATCH] Fix "do" for '.' in @INC removal
+
+Trivial fix for:
+
+- http://lists.schmorp.de/pipermail/anyevent/2017q1/000859.html
+---
+ Makefile.PL | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index ef2ab4a..70b30b0 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -22,7 +22,7 @@ print <<EOF;
+ 
+ EOF
+ 
+-do "constants.pl.PL"
++do "./constants.pl.PL"
+    or die "cannot execute constants.pl.PL: $@";
+ 
+ WriteMakefile(
+-- 
+2.13.1
+