sys-devel/autoconf: Add perl-5.26 patch re bug #613790
authorKent Fredric <kentnl@gentoo.org>
Thu, 27 Apr 2017 11:40:02 +0000 (23:40 +1200)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 27 Apr 2017 13:42:18 +0000 (15:42 +0200)
This fixes the unescaped "{" issue.

-r1 bump necessary as end users must have this patch applied to
their installs otherwise autoscan will be broken after upgrading
perl.

autoconf does not subslot dep on perl, so there are no guarantees
that a rebuild will happen to propagate this patch

Hence, -r1 fix

Bug: https://bugs.gentoo.org/613790

Package-Manager: Portage-2.3.4, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4500

sys-devel/autoconf/autoconf-2.69-r3.ebuild [moved from sys-devel/autoconf/autoconf-2.69-r2.ebuild with 96% similarity]
sys-devel/autoconf/files/autoconf-2.69-perl-5.26.patch [new file with mode: 0644]

similarity index 96%
rename from sys-devel/autoconf/autoconf-2.69-r2.ebuild
rename to sys-devel/autoconf/autoconf-2.69-r3.ebuild
index 0acd57e4e7780cbbc748db5ee5f54d5115671fea..37354a400d9c6ce70558cdf1d7322102a6800003 100644 (file)
@@ -36,5 +36,6 @@ src_prepare()   {
        # usr/bin/libtool is provided by binutils-apple, need gnu libtool
        [[ ${CHOST} == *-darwin* ]] && \
                PATCHES+=( "${FILESDIR}"/${PN}-2.61-darwin.patch )
+       PATCHES+=( "${FILESDIR}"/${PN}-2.69-perl-5.26.patch )
        toolchain-autoconf_src_prepare
 }
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
new file mode 100644 (file)
index 0000000..b3d7888
--- /dev/null
@@ -0,0 +1,28 @@
+From e5654a5591884b92633c7785f325626711e7f7aa Mon Sep 17 00:00:00 2001
+From: Paul Eggert <eggert@cs.ucla.edu>
+Date: Tue, 29 Jan 2013 13:46:48 -0800
+Subject: [PATCH] autoscan: port to perl 5.17
+
+* bin/autoscan.in (scan_sh_file): Escape '{'.  This avoids a
+feature that is deprecated in Perl 5.17.  Reported by Ray Lauff in
+<http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00059.html>.
+---
+ bin/autoscan.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/bin/autoscan.in b/bin/autoscan.in
+index 993a750..db1df79 100644
+--- a/bin/autoscan.in
++++ b/bin/autoscan.in
+@@ -358,7 +358,7 @@ sub scan_sh_file ($)
+     {
+       # Strip out comments and variable references.
+       s/#.*//;
+-      s/\${[^\}]*}//g;
++      s/\$\{[^\}]*}//g;
+       s/@[^@]*@//g;
+ 
+       # Tokens in the code.
+-- 
+1.9.1
+