1 |
commit: 8d448f8fb30272100ea115f7a55fe917b38d9ccd |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 29 16:06:59 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 29 16:06:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d448f8f |
7 |
|
8 |
sys-devel/autoconf: Revbump to fix c99 check |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
.../{autoconf-2.70.ebuild => autoconf-2.70-r1.ebuild} | 4 ++++ |
14 |
.../autoconf/files/autoconf-2.70-fix_c99_check.patch | 15 +++++++++++++++ |
15 |
2 files changed, 19 insertions(+) |
16 |
|
17 |
diff --git a/sys-devel/autoconf/autoconf-2.70.ebuild b/sys-devel/autoconf/autoconf-2.70-r1.ebuild |
18 |
similarity index 97% |
19 |
rename from sys-devel/autoconf/autoconf-2.70.ebuild |
20 |
rename to sys-devel/autoconf/autoconf-2.70-r1.ebuild |
21 |
index c2764bdae35..ce4adc5321b 100644 |
22 |
--- a/sys-devel/autoconf/autoconf-2.70.ebuild |
23 |
+++ b/sys-devel/autoconf/autoconf-2.70-r1.ebuild |
24 |
@@ -35,6 +35,10 @@ RDEPEND="${BDEPEND} |
25 |
[[ ${PV} == "9999" ]] && BDEPEND+=" >=sys-apps/texinfo-4.3" |
26 |
PDEPEND="emacs? ( app-emacs/autoconf-mode )" |
27 |
|
28 |
+PATCHES=( |
29 |
+ "${FILESDIR}/${P}-fix_c99_check.patch" |
30 |
+) |
31 |
+ |
32 |
src_prepare() { |
33 |
# usr/bin/libtool is provided by binutils-apple, need gnu libtool |
34 |
if [[ ${CHOST} == *-darwin* ]] ; then |
35 |
|
36 |
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 |
37 |
new file mode 100644 |
38 |
index 00000000000..2174e75afeb |
39 |
--- /dev/null |
40 |
+++ b/sys-devel/autoconf/files/autoconf-2.70-fix_c99_check.patch |
41 |
@@ -0,0 +1,15 @@ |
42 |
+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 |
43 |
+ |
44 |
+diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 |
45 |
+index fe217ca..601c2df 100644 |
46 |
+--- a/lib/autoconf/c.m4 |
47 |
++++ b/lib/autoconf/c.m4 |
48 |
+@@ -1559,7 +1559,7 @@ dnl SVR4 -Xc -D__EXTENSIONS__ |
49 |
+ # option to output variable CC to make it so. |
50 |
+ AC_DEFUN([_AC_PROG_CC_C99], |
51 |
+ [AC_REQUIRE([_AC_C_C99_TEST_PROGRAM])]dnl |
52 |
+-[_AC_C_STD_TRY([c99], [ac_c_conftest_c89_program], |
53 |
++[_AC_C_STD_TRY([c99], [ac_c_conftest_c99_program], |
54 |
+ dnl Try |
55 |
+ dnl GCC -std=gnu99 (unused restrictive modes: -std=c99 -std=iso9899:1999) |
56 |
+ dnl IBM XL C -qlanglvl=extc1x (V12.1; does not pass C11 test) |