commit:     1fa1484fc28a0628b79918e6984a3d20faf0a1d1
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 14 23:39:14 2017 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Wed Jun 14 23:39:42 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fa1484f

dev-perl/App-perlbrew: Fix for '.' in @INC re bug #614670

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 |  1 +
 dev-perl/App-perlbrew/files/no-dot-inc.patch      | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/dev-perl/App-perlbrew/App-perlbrew-0.780.0.ebuild 
b/dev-perl/App-perlbrew/App-perlbrew-0.780.0.ebuild
index 6c47d777352..560e9b7c9b6 100644
--- a/dev-perl/App-perlbrew/App-perlbrew-0.780.0.ebuild
+++ b/dev-perl/App-perlbrew/App-perlbrew-0.780.0.ebuild
@@ -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
index 00000000000..872ec138ca1
--- /dev/null
+++ b/dev-perl/App-perlbrew/files/no-dot-inc.patch
@@ -0,0 +1,21 @@
+From de281151995a2f83ead0c272c6a7c35db2d824ca Mon Sep 17 00:00:00 2001
+From: Kang-min Liu <gu...@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';

Reply via email to