commit: 8d448f8fb30272100ea115f7a55fe917b38d9ccd
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 29 16:06:59 2020 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Dec 29 16:06:59 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d448f8f
sys-devel/autoconf: Revbump to fix c99 check
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
.../{autoconf-2.70.ebuild => autoconf-2.70-r1.ebuild} | 4 ++++
.../autoconf/files/autoconf-2.70-fix_c99_check.patch | 15 +++++++++++++++
2 files changed, 19 insertions(+)
diff --git a/sys-devel/autoconf/autoconf-2.70.ebuild
b/sys-devel/autoconf/autoconf-2.70-r1.ebuild
similarity index 97%
rename from sys-devel/autoconf/autoconf-2.70.ebuild
rename to sys-devel/autoconf/autoconf-2.70-r1.ebuild
index c2764bdae35..ce4adc5321b 100644
--- a/sys-devel/autoconf/autoconf-2.70.ebuild
+++ b/sys-devel/autoconf/autoconf-2.70-r1.ebuild
@@ -35,6 +35,10 @@ RDEPEND="${BDEPEND}
[[ ${PV} == "9999" ]] && BDEPEND+=" >=sys-apps/texinfo-4.3"
PDEPEND="emacs? ( app-emacs/autoconf-mode )"
+PATCHES=(
+ "${FILESDIR}/${P}-fix_c99_check.patch"
+)
+
src_prepare() {
# usr/bin/libtool is provided by binutils-apple, need gnu libtool
if [[ ${CHOST} == *-darwin* ]] ; then
diff --git a/sys-devel/autoconf/files/autoconf-2.70-fix_c99_check.patch
b/sys-devel/autoconf/files/autoconf-2.70-fix_c99_check.patch
new file mode 100644
index 00000000000..2174e75afeb
--- /dev/null
+++ b/sys-devel/autoconf/files/autoconf-2.70-fix_c99_check.patch
@@ -0,0 +1,15 @@
+X-Git-Url:
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blobdiff_plain;f=lib%2Fautoconf%2Fc.m4;h=601c2df41bd4ee602065ce041a1173aca8a0f52e;hp=fe217cad679f2f4506c3e20dee64e7e3e3b83a24;hb=efc940dc82763b7b2d6e65f04d15d5972d829c0a;hpb=b693e208691c54fbe07cdf49b9a98358baadcfe2
+
+diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
+index fe217ca..601c2df 100644
+--- a/lib/autoconf/c.m4
++++ b/lib/autoconf/c.m4
+@@ -1559,7 +1559,7 @@ dnl SVR4 -Xc -D__EXTENSIONS__
+ # option to output variable CC to make it so.
+ AC_DEFUN([_AC_PROG_CC_C99],
+ [AC_REQUIRE([_AC_C_C99_TEST_PROGRAM])]dnl
+-[_AC_C_STD_TRY([c99], [ac_c_conftest_c89_program],
++[_AC_C_STD_TRY([c99], [ac_c_conftest_c99_program],
+ dnl Try
+ dnl GCC -std=gnu99 (unused restrictive modes: -std=c99
-std=iso9899:1999)
+ dnl IBM XL C -qlanglvl=extc1x (V12.1; does not pass C11 test)