summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/autoconf
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-07-27 20:47:55 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-07-30 07:54:44 +0100
commitf35b5f5d20f99dca06f579bccaceb5d7c2f9cf3f (patch)
treec5ebd71d03a6d2a26ea16ce9eb2f7a4b6858149e /meta/recipes-devtools/autoconf
parent231b7099e5979ac31b8c178de4e68f7a7269b404 (diff)
downloadpoky-f35b5f5d20f99dca06f579bccaceb5d7c2f9cf3f.tar.gz
autoconf: Upgrade to 2.72c
2.72c is a prerelease version of autoconf 2.73. It contains largefile and y2038 64 bit time_t improvements for 32 bit architectures. Rather than work on the older codebase, this brings us to work with the recent autoconf upstream with the 64 bit changes. It is unclear when upstream will release 2.73 but it is easier for us to be aligned now we've done the bulk of the work needed to update. Upstream added several patches which fixed several common failures OE builds ran into (backported in the next commit). In general testing has otherwise been good for us. There is an unfortunate gnulib largefile.m4 bug. This change patches various software to workaround it, next time they update new versions of the gnulib code will be pulled in which address the issue with the official fix. There are also a couple of ordering related fixes for apr and libarchive. (From OE-Core rev: bb74a03e927b4867d885ad3539b097f0e7ed108c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/autoconf')
-rw-r--r--meta/recipes-devtools/autoconf/autoconf/0001-Port-to-compilers-that-moan-about-K-R-func-decls.patch138
-rw-r--r--meta/recipes-devtools/autoconf/autoconf_2.72c.bb (renamed from meta/recipes-devtools/autoconf/autoconf_2.71.bb)6
2 files changed, 3 insertions, 141 deletions
diff --git a/meta/recipes-devtools/autoconf/autoconf/0001-Port-to-compilers-that-moan-about-K-R-func-decls.patch b/meta/recipes-devtools/autoconf/autoconf/0001-Port-to-compilers-that-moan-about-K-R-func-decls.patch
deleted file mode 100644
index 4f15bf96c3..0000000000
--- a/meta/recipes-devtools/autoconf/autoconf/0001-Port-to-compilers-that-moan-about-K-R-func-decls.patch
+++ /dev/null
@@ -1,138 +0,0 @@
1From 7a3bbca81b803ba116b83c82de378e840cc35f81 Mon Sep 17 00:00:00 2001
2From: Paul Eggert <eggert@cs.ucla.edu>
3Date: Thu, 1 Sep 2022 16:19:50 -0500
4Subject: [PATCH] Port to compilers that moan about K&R func decls
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9* lib/autoconf/c.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
10Use '(void)' rather than '()' in function prototypes, as the latter
11provokes fatal errors in some compilers nowadays.
12* lib/autoconf/functions.m4 (AC_FUNC_STRTOD):
13* tests/fortran.at (AC_F77_DUMMY_MAIN usage):
14* tests/semantics.at (AC_CHECK_DECLS):
15Don’t use () in a function decl.
16
17Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=8b5e2016c7ed2d67f31b03a3d2e361858ff5299b]
18Signed-off-by: Khem Raj <raj.khem@gmail.com>
19---
20 doc/autoconf.texi | 7 +++----
21 lib/autoconf/c.m4 | 6 +++---
22 lib/autoconf/functions.m4 | 3 ---
23 tests/fortran.at | 8 ++++----
24 tests/semantics.at | 2 +-
25 5 files changed, 11 insertions(+), 15 deletions(-)
26
27--- a/doc/autoconf.texi
28+++ b/doc/autoconf.texi
29@@ -5465,9 +5465,7 @@ the @samp{#undef malloc}):
30 #include <config.h>
31 #undef malloc
32
33-#include <sys/types.h>
34-
35-void *malloc ();
36+#include <stdlib.h>
37
38 /* Allocate an N-byte block of memory from the heap.
39 If N is zero, allocate a 1-byte block. */
40@@ -8295,7 +8293,7 @@ needed:
41 # ifdef __cplusplus
42 extern "C"
43 # endif
44- int F77_DUMMY_MAIN () @{ return 1; @}
45+ int F77_DUMMY_MAIN (void) @{ return 1; @}
46 #endif
47 @end example
48
49--- a/lib/autoconf/c.m4
50+++ b/lib/autoconf/c.m4
51@@ -127,7 +127,7 @@ m4_if([$2], [main], ,
52 [/* Override any GCC internal prototype to avoid an error.
53 Use char because int might match the return type of a GCC
54 builtin and then its argument prototype would still apply. */
55-char $2 ();])], [return $2 ();])])
56+char $2 (void);])], [return $2 ();])])
57
58
59 # AC_LANG_FUNC_LINK_TRY(C)(FUNCTION)
60@@ -151,7 +151,7 @@ m4_define([AC_LANG_FUNC_LINK_TRY(C)],
61 #define $1 innocuous_$1
62
63 /* System header to define __stub macros and hopefully few prototypes,
64- which can conflict with char $1 (); below. */
65+ which can conflict with char $1 (void); below. */
66
67 #include <limits.h>
68 #undef $1
69@@ -162,7 +162,7 @@ m4_define([AC_LANG_FUNC_LINK_TRY(C)],
70 #ifdef __cplusplus
71 extern "C"
72 #endif
73-char $1 ();
74+char $1 (void);
75 /* The GNU C library defines this for functions which it implements
76 to always fail with ENOSYS. Some functions are actually named
77 something starting with __ and the normal name is an alias. */
78--- a/lib/autoconf/functions.m4
79+++ b/lib/autoconf/functions.m4
80@@ -1601,9 +1601,6 @@ AC_DEFUN([AC_FUNC_STRTOD],
81 AC_CACHE_CHECK(for working strtod, ac_cv_func_strtod,
82 [AC_RUN_IFELSE([AC_LANG_SOURCE([[
83 ]AC_INCLUDES_DEFAULT[
84-#ifndef strtod
85-double strtod ();
86-#endif
87 int
88 main (void)
89 {
90--- a/tests/fortran.at
91+++ b/tests/fortran.at
92@@ -233,7 +233,7 @@ void FOOBAR_F77 (double *x, double *y);
93 # ifdef __cplusplus
94 extern "C"
95 # endif
96- int F77_DUMMY_MAIN () { return 1; }
97+ int F77_DUMMY_MAIN (void) { return 1; }
98 #endif
99
100 int main(int argc, char *argv[])
101@@ -315,7 +315,7 @@ void FOOBAR_FC(double *x, double *y);
102 # ifdef __cplusplus
103 extern "C"
104 # endif
105- int FC_DUMMY_MAIN () { return 1; }
106+ int FC_DUMMY_MAIN (void) { return 1; }
107 #endif
108
109 int main (int argc, char *argv[])
110@@ -561,7 +561,7 @@ void @foobar@ (int *x);
111 # ifdef __cplusplus
112 extern "C"
113 # endif
114- int F77_DUMMY_MAIN () { return 1; }
115+ int F77_DUMMY_MAIN (void) { return 1; }
116 #endif
117
118 int main(int argc, char *argv[])
119@@ -637,7 +637,7 @@ void @foobar@ (int *x);
120 # ifdef __cplusplus
121 extern "C"
122 # endif
123- int FC_DUMMY_MAIN () { return 1; }
124+ int FC_DUMMY_MAIN (void) { return 1; }
125 #endif
126
127 int main(int argc, char *argv[])
128--- a/tests/semantics.at
129+++ b/tests/semantics.at
130@@ -207,7 +207,7 @@ AT_CHECK_MACRO([AC_CHECK_DECLS],
131 [[extern int yes;
132 enum { myenum };
133 extern struct mystruct_s { int x[20]; } mystruct;
134- extern int myfunc();
135+ extern int myfunc (int);
136 #define mymacro1(arg) arg
137 #define mymacro2]])
138 # Ensure we can detect missing declarations of functions whose
diff --git a/meta/recipes-devtools/autoconf/autoconf_2.71.bb b/meta/recipes-devtools/autoconf/autoconf_2.72c.bb
index 97c241a3f5..fe9779e4dd 100644
--- a/meta/recipes-devtools/autoconf/autoconf_2.71.bb
+++ b/meta/recipes-devtools/autoconf/autoconf_2.72c.bb
@@ -11,18 +11,18 @@ DEPENDS:remove:class-native = "autoconf-native automake-native help2man-native"
11LIC_FILES_CHKSUM = "file://COPYING;md5=cc3f3a7596cb558bbd9eb7fbaa3ef16c \ 11LIC_FILES_CHKSUM = "file://COPYING;md5=cc3f3a7596cb558bbd9eb7fbaa3ef16c \
12 file://COPYINGv3;md5=1ebbd3e34237af26da5dc08a4e440464" 12 file://COPYINGv3;md5=1ebbd3e34237af26da5dc08a4e440464"
13 13
14SRC_URI = "${GNU_MIRROR}/autoconf/${BP}.tar.gz \ 14SRC_URI = " \
15 https://alpha.gnu.org/gnu/autoconf/autoconf-2.72c.tar.gz \
15 file://program_prefix.patch \ 16 file://program_prefix.patch \
16 file://autoreconf-exclude.patch \ 17 file://autoreconf-exclude.patch \
17 file://remove-usr-local-lib-from-m4.patch \ 18 file://remove-usr-local-lib-from-m4.patch \
18 file://preferbash.patch \ 19 file://preferbash.patch \
19 file://autotest-automake-result-format.patch \ 20 file://autotest-automake-result-format.patch \
20 file://man-host-perl.patch \ 21 file://man-host-perl.patch \
21 file://0001-Port-to-compilers-that-moan-about-K-R-func-decls.patch \
22 " 22 "
23SRC_URI:append:class-native = " file://no-man.patch" 23SRC_URI:append:class-native = " file://no-man.patch"
24 24
25SRC_URI[sha256sum] = "431075ad0bf529ef13cb41e9042c542381103e80015686222b8a9d4abef42a1c" 25SRC_URI[sha256sum] = "21b64169c820c6cdf27fc981ca9c2fb615546e5dead92bccf8d92d0784cdd364"
26 26
27RDEPENDS:${PN} = "m4 gnu-config \ 27RDEPENDS:${PN} = "m4 gnu-config \
28 perl \ 28 perl \