sys-devel/autoconf: Revbump to add another perl-5.26 fix (bug #625576).
authorLars Wendler <polynomial-c@gentoo.org>
Fri, 4 Aug 2017 15:17:17 +0000 (17:17 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Fri, 4 Aug 2017 15:17:39 +0000 (17:17 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.3

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

similarity index 94%
rename from sys-devel/autoconf/autoconf-2.69-r3.ebuild
rename to sys-devel/autoconf/autoconf-2.69-r4.ebuild
index 54b5079415c2481f6b6a75907abb52ae37631acb..eac2529393677a2c13d9a6c7d462e97354a3dc0e 100644 (file)
@@ -1,14 +1,14 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="5"
+EAPI=6
 
 if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="git://git.savannah.gnu.org/${PN}.git
                http://git.savannah.gnu.org/r/${PN}.git"
        # We need all the tags in order to figure out the right version.
        # The git-r3 eclass doesn't support that, so have to stick to 2.
-       inherit git-2
+       inherit git-r3
 else
        SRC_URI="mirror://gnu/${PN}/${P}.tar.xz
                ftp://alpha.gnu.org/pub/gnu/${PN}/${P}.tar.xz"
@@ -39,6 +39,8 @@ src_prepare()   {
        PATCHES+=(
                "${FILESDIR}"/${PN}-2.69-perl-5.26.patch
                "${FILESDIR}"/${P}-fix-libtool-test.patch
+               "${FILESDIR}"/${PN}-2.69-perl-5.26-2.patch
        )
        toolchain-autoconf_src_prepare
+       eapply_user
 }
diff --git a/sys-devel/autoconf/files/autoconf-2.69-perl-5.26-2.patch b/sys-devel/autoconf/files/autoconf-2.69-perl-5.26-2.patch
new file mode 100644 (file)
index 0000000..6becf80
--- /dev/null
@@ -0,0 +1,30 @@
+https://bugs.gentoo.org/625576
+
+--- autoconf-2.69/bin/autoheader.in
++++ autoconf-2.69/bin/autoheader.in
+@@ -173,6 +173,12 @@
+ # Source what the traces are trying to tell us.
+ verb "$me: running $autoconf to trace from $ARGV[0]";
+ my $quoted_tmp = shell_quote ($tmp);
++my $perl_tmp;
++if ( $tmp =~ /^\// ) {
++  $perl_tmp=$tmp;
++} else {
++  $perl_tmp="./".$tmp;
++}
+ xsystem ("$autoconf"
+        # If you change this list, update the
+        # `Autoheader-preselections' section of autom4te.in.
+@@ -182,9 +188,9 @@
+        . " " . shell_quote ($ARGV[0]) . " >$quoted_tmp/traces.pl");
+ local (%verbatim, %symbol);
+-debug "$me: \`do'ing $tmp/traces.pl:\n" . `sed 's/^/| /' $quoted_tmp/traces.pl`;
+-do "$tmp/traces.pl";
+-warn "couldn't parse $tmp/traces.pl: $@" if $@;
++debug "$me: \`do'ing $perl_tmp/traces.pl:\n" . `sed 's/^/| /' $quoted_tmp/traces.pl`;
++do "$perl_tmp/traces.pl";
++warn "couldn't parse $perl_tmp/traces.pl: $@" if $@;
+ unless ($config_h)
+   {
+     error "error: AC_CONFIG_HEADERS not found in $ARGV[0]";