1 |
commit: 404cb8afa526bfbab581e14e46252a733de08268 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 26 07:54:21 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 26 07:57:00 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=404cb8af |
7 |
|
8 |
dev-perl/File-NFSLock: Fix for '.' in @INC re bug #615094 |
9 |
|
10 |
Fix use of 'do q[relativepath]' for 5.26 changes. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/615094 |
13 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
14 |
|
15 |
dev-perl/File-NFSLock/File-NFSLock-1.270.0.ebuild | 4 +-- |
16 |
.../files/File-NFSLock-1.27-no-dot-inc.patch | 34 ++++++++++++++++++++++ |
17 |
2 files changed, 36 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/dev-perl/File-NFSLock/File-NFSLock-1.270.0.ebuild b/dev-perl/File-NFSLock/File-NFSLock-1.270.0.ebuild |
20 |
index dcdb074d3fc..6496e7a37fb 100644 |
21 |
--- a/dev-perl/File-NFSLock/File-NFSLock-1.270.0.ebuild |
22 |
+++ b/dev-perl/File-NFSLock/File-NFSLock-1.270.0.ebuild |
23 |
@@ -1,4 +1,4 @@ |
24 |
-# Copyright 1999-2015 Gentoo Foundation |
25 |
+# Copyright 1999-2017 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
EAPI=5 |
29 |
@@ -14,5 +14,5 @@ KEYWORDS="amd64 x86" |
30 |
IUSE="" |
31 |
|
32 |
DEPEND="virtual/perl-ExtUtils-MakeMaker" |
33 |
- |
34 |
+PATCHES=( "${FILESDIR}/${PN}"-1.27-no-dot-inc.patch ) |
35 |
SRC_TEST="do" |
36 |
|
37 |
diff --git a/dev-perl/File-NFSLock/files/File-NFSLock-1.27-no-dot-inc.patch b/dev-perl/File-NFSLock/files/File-NFSLock-1.27-no-dot-inc.patch |
38 |
new file mode 100644 |
39 |
index 00000000000..9b67d24d10d |
40 |
--- /dev/null |
41 |
+++ b/dev-perl/File-NFSLock/files/File-NFSLock-1.27-no-dot-inc.patch |
42 |
@@ -0,0 +1,34 @@ |
43 |
+From 08deb6590eecd9d92a38edf1b22d615175e1d8d3 Mon Sep 17 00:00:00 2001 |
44 |
+From: Kent Fredric <kentfredric@×××××.com> |
45 |
+Date: Mon, 26 Jun 2017 19:43:14 +1200 |
46 |
+Subject: [PATCH] Fix for '.' removal from Perl 5.26 @INC |
47 |
+ |
48 |
+--- |
49 |
+ File-NFSLock.spec.PL | 4 ++-- |
50 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
51 |
+ |
52 |
+diff --git a/File-NFSLock.spec.PL b/File-NFSLock.spec.PL |
53 |
+index fdf9fdf..f5586c1 100644 |
54 |
+--- a/File-NFSLock.spec.PL |
55 |
++++ b/File-NFSLock.spec.PL |
56 |
+@@ -18,7 +18,7 @@ sub WriteMakefile { |
57 |
+ } elsif (my $version_from = $props{VERSION_FROM}) { |
58 |
+ $@ = ""; |
59 |
+ $version = eval qq{ |
60 |
+- do "$version_from"; |
61 |
++ do "./$version_from"; |
62 |
+ \$$name\::VERSION || die "$version_from: Missing VERSION"; |
63 |
+ }; |
64 |
+ die $@ if $@; |
65 |
+@@ -29,7 +29,7 @@ sub WriteMakefile { |
66 |
+ die "Makefile.PL: Could not determine version!"; |
67 |
+ } |
68 |
+ } |
69 |
+-do "Makefile.PL"; |
70 |
++do "./Makefile.PL"; |
71 |
+ if ($name) { |
72 |
+ $name =~ s/::/-/g; |
73 |
+ } else { |
74 |
+-- |
75 |
+2.13.1 |
76 |
+ |