1 |
commit: 50932475bceaaa0499b1d1e0daf78e5e8f7c1446 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 27 11:40:02 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 27 13:42:18 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50932475 |
7 |
|
8 |
sys-devel/autoconf: Add perl-5.26 patch re bug #613790 |
9 |
|
10 |
This fixes the unescaped "{" issue. |
11 |
|
12 |
-r1 bump necessary as end users must have this patch applied to |
13 |
their installs otherwise autoscan will be broken after upgrading |
14 |
perl. |
15 |
|
16 |
autoconf does not subslot dep on perl, so there are no guarantees |
17 |
that a rebuild will happen to propagate this patch |
18 |
|
19 |
Hence, -r1 fix |
20 |
|
21 |
Bug: https://bugs.gentoo.org/613790 |
22 |
|
23 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
24 |
Closes: https://github.com/gentoo/gentoo/pull/4500 |
25 |
|
26 |
...conf-2.69-r2.ebuild => autoconf-2.69-r3.ebuild} | 1 + |
27 |
.../autoconf/files/autoconf-2.69-perl-5.26.patch | 28 ++++++++++++++++++++++ |
28 |
2 files changed, 29 insertions(+) |
29 |
|
30 |
diff --git a/sys-devel/autoconf/autoconf-2.69-r2.ebuild b/sys-devel/autoconf/autoconf-2.69-r3.ebuild |
31 |
similarity index 96% |
32 |
rename from sys-devel/autoconf/autoconf-2.69-r2.ebuild |
33 |
rename to sys-devel/autoconf/autoconf-2.69-r3.ebuild |
34 |
index 0acd57e4e77..37354a400d9 100644 |
35 |
--- a/sys-devel/autoconf/autoconf-2.69-r2.ebuild |
36 |
+++ b/sys-devel/autoconf/autoconf-2.69-r3.ebuild |
37 |
@@ -36,5 +36,6 @@ src_prepare() { |
38 |
# usr/bin/libtool is provided by binutils-apple, need gnu libtool |
39 |
[[ ${CHOST} == *-darwin* ]] && \ |
40 |
PATCHES+=( "${FILESDIR}"/${PN}-2.61-darwin.patch ) |
41 |
+ PATCHES+=( "${FILESDIR}"/${PN}-2.69-perl-5.26.patch ) |
42 |
toolchain-autoconf_src_prepare |
43 |
} |
44 |
|
45 |
diff --git a/sys-devel/autoconf/files/autoconf-2.69-perl-5.26.patch b/sys-devel/autoconf/files/autoconf-2.69-perl-5.26.patch |
46 |
new file mode 100644 |
47 |
index 00000000000..b3d7888ca72 |
48 |
--- /dev/null |
49 |
+++ b/sys-devel/autoconf/files/autoconf-2.69-perl-5.26.patch |
50 |
@@ -0,0 +1,28 @@ |
51 |
+From e5654a5591884b92633c7785f325626711e7f7aa Mon Sep 17 00:00:00 2001 |
52 |
+From: Paul Eggert <eggert@×××××××.edu> |
53 |
+Date: Tue, 29 Jan 2013 13:46:48 -0800 |
54 |
+Subject: [PATCH] autoscan: port to perl 5.17 |
55 |
+ |
56 |
+* bin/autoscan.in (scan_sh_file): Escape '{'. This avoids a |
57 |
+feature that is deprecated in Perl 5.17. Reported by Ray Lauff in |
58 |
+<http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00059.html>. |
59 |
+--- |
60 |
+ bin/autoscan.in | 2 +- |
61 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
62 |
+ |
63 |
+diff --git a/bin/autoscan.in b/bin/autoscan.in |
64 |
+index 993a750..db1df79 100644 |
65 |
+--- a/bin/autoscan.in |
66 |
++++ b/bin/autoscan.in |
67 |
+@@ -358,7 +358,7 @@ sub scan_sh_file ($) |
68 |
+ { |
69 |
+ # Strip out comments and variable references. |
70 |
+ s/#.*//; |
71 |
+- s/\${[^\}]*}//g; |
72 |
++ s/\$\{[^\}]*}//g; |
73 |
+ s/@[^@]*@//g; |
74 |
+ |
75 |
+ # Tokens in the code. |
76 |
+-- |
77 |
+1.9.1 |
78 |
+ |