summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-09-19 17:18:35 +0100
committerSam James <sam@gentoo.org>2022-09-19 17:26:41 +0100
commit328f45c63cf1a7cfdba7060b2b757badb953bfa5 (patch)
tree952480a1557012ba9665d4740ca4f55960a335aa /sys-devel
parentsys-devel/autoconf: backport K&R decls fix to 2.13 (diff)
downloadgentoo-328f45c63cf1a7cfdba7060b2b757badb953bfa5.tar.gz
gentoo-328f45c63cf1a7cfdba7060b2b757badb953bfa5.tar.bz2
gentoo-328f45c63cf1a7cfdba7060b2b757badb953bfa5.zip
sys-devel/autoconf: drop texinfo hunks in patch for K&R decl fixes
We don't really want to re-generate the manuals just for this, but drop it from the patches in a separate commit for historical completeness. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/autoconf/files/autoconf-2.69-K-R-decls-clang.patch22
-rw-r--r--sys-devel/autoconf/files/autoconf-2.71-K-R-decls-clang.patch22
2 files changed, 0 insertions, 44 deletions
diff --git a/sys-devel/autoconf/files/autoconf-2.69-K-R-decls-clang.patch b/sys-devel/autoconf/files/autoconf-2.69-K-R-decls-clang.patch
index c0ae05540146..9f16bc93adba 100644
--- a/sys-devel/autoconf/files/autoconf-2.69-K-R-decls-clang.patch
+++ b/sys-devel/autoconf/files/autoconf-2.69-K-R-decls-clang.patch
@@ -11,28 +11,6 @@ From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= <arsen@aarsen.me>
Date: Mon, 19 Sep 2022 12:11:24 +0200
Subject: [PATCH] backport K&R decl fixes
---- a/doc/autoconf.texi
-+++ b/doc/autoconf.texi
-@@ -5201,9 +5201,7 @@ the @samp{#undef malloc}):
- #include <config.h>
- #undef malloc
-
--#include <sys/types.h>
--
--void *malloc ();
-+#include <stdlib.h>
-
- /* Allocate an N-byte block of memory from the heap.
- If N is zero, allocate a 1-byte block. */
-@@ -8057,7 +8055,7 @@ needed:
- # ifdef __cplusplus
- extern "C"
- # endif
-- int F77_DUMMY_MAIN () @{ return 1; @}
-+ int F77_DUMMY_MAIN (void) @{ return 1; @}
- #endif
- @end example
-
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -97,7 +97,7 @@ m4_define([AC_LANG_PROGRAM(C)],
diff --git a/sys-devel/autoconf/files/autoconf-2.71-K-R-decls-clang.patch b/sys-devel/autoconf/files/autoconf-2.71-K-R-decls-clang.patch
index 098d3b9c6033..33cb728695bb 100644
--- a/sys-devel/autoconf/files/autoconf-2.71-K-R-decls-clang.patch
+++ b/sys-devel/autoconf/files/autoconf-2.71-K-R-decls-clang.patch
@@ -21,28 +21,6 @@ provokes fatal errors in some compilers nowadays.
* tests/fortran.at (AC_F77_DUMMY_MAIN usage):
* tests/semantics.at (AC_CHECK_DECLS):
Don’t use () in a function decl.
---- a/doc/autoconf.texi
-+++ b/doc/autoconf.texi
-@@ -5460,9 +5460,7 @@ the @samp{#undef malloc}):
- #include <config.h>
- #undef malloc
-
--#include <sys/types.h>
--
--void *malloc ();
-+#include <stdlib.h>
-
- /* Allocate an N-byte block of memory from the heap.
- If N is zero, allocate a 1-byte block. */
-@@ -8297,7 +8295,7 @@ needed:
- # ifdef __cplusplus
- extern "C"
- # endif
-- int F77_DUMMY_MAIN () @{ return 1; @}
-+ int F77_DUMMY_MAIN (void) @{ return 1; @}
- #endif
- @end example
-
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -133,7 +133,7 @@ m4_if([$2], [main], ,