dev-perl/App-perlbrew: Fix for '.' in @INC re bug #614670
authorKent Fredric <kentnl@gentoo.org>
Wed, 14 Jun 2017 23:39:14 +0000 (11:39 +1200)
committerKent Fredric <kentnl@gentoo.org>
Wed, 14 Jun 2017 23:39:42 +0000 (11:39 +1200)
Upstream have patched this themselves, but a release is still
pending, so their fix is backported verbatim.

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

dev-perl/App-perlbrew/App-perlbrew-0.780.0.ebuild
dev-perl/App-perlbrew/files/no-dot-inc.patch [new file with mode: 0644]

index 6c47d777352b0ff13b7a8c28a3f3bd1f3e73892b..560e9b7c9b6dabf1d17defebb91c7a022fc8ec19 100644 (file)
@@ -34,3 +34,4 @@ DEPEND="${RDEPEND}
        )
 "
 mydoc=("doc/notes.org")
+PATCHES=("${FILESDIR}/no-dot-inc.patch")
diff --git a/dev-perl/App-perlbrew/files/no-dot-inc.patch b/dev-perl/App-perlbrew/files/no-dot-inc.patch
new file mode 100644 (file)
index 0000000..872ec13
--- /dev/null
@@ -0,0 +1,21 @@
+From de281151995a2f83ead0c272c6a7c35db2d824ca Mon Sep 17 00:00:00 2001
+From: Kang-min Liu <gugod@gugod.org>
+Date: Sat, 10 Jun 2017 16:12:44 +0200
+Subject: [PATCH] deal with the removal of "." in @INC.
+
+---
+ Makefile.PL | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index fce95a70..279c3c09 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -1,3 +1,7 @@
++
++use FindBin '$Bin';
++BEGIN { push @INC, $Bin; }
++
+ use inc::Module::Install;
+ 
+ license 'mit';