summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-extended/gawk/gawk/0001-Add-parameter-signatures-for-getenv-and-getopt.patch54
-rw-r--r--meta/recipes-extended/gawk/gawk/0001-configure.ac-re-enable-disabled-printf-features.patch8
-rw-r--r--meta/recipes-extended/gawk/gawk_5.3.2.bb (renamed from meta/recipes-extended/gawk/gawk_5.3.1.bb)3
3 files changed, 5 insertions, 60 deletions
diff --git a/meta/recipes-extended/gawk/gawk/0001-Add-parameter-signatures-for-getenv-and-getopt.patch b/meta/recipes-extended/gawk/gawk/0001-Add-parameter-signatures-for-getenv-and-getopt.patch
deleted file mode 100644
index 7ed615a881..0000000000
--- a/meta/recipes-extended/gawk/gawk/0001-Add-parameter-signatures-for-getenv-and-getopt.patch
+++ /dev/null
@@ -1,54 +0,0 @@
1From 4a8352eeaa99bbea3461696855c973447e87abdd Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 22 Mar 2025 15:14:16 -0700
4Subject: [PATCH] Add parameter signatures for getenv() and getopt()
5
6GCC-15 complains about it when building for musl C library
7
8Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-gawk/2025-03/msg00027.html]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 missing_d/fnmatch.c | 2 +-
12 support/getopt.c | 2 +-
13 support/getopt.h | 2 +-
14 3 files changed, 3 insertions(+), 3 deletions(-)
15
16diff --git a/missing_d/fnmatch.c b/missing_d/fnmatch.c
17index ccb7e34..7f97fbf 100644
18--- a/missing_d/fnmatch.c
19+++ b/missing_d/fnmatch.c
20@@ -121,7 +121,7 @@ USA. */
21 whose names are inconsistent. */
22
23 # if !defined _LIBC && !defined getenv
24-extern char *getenv ();
25+extern char *getenv (const char*);
26 # endif
27
28 # ifndef errno
29diff --git a/support/getopt.c b/support/getopt.c
30index eeb71ba..e7ebd19 100644
31--- a/support/getopt.c
32+++ b/support/getopt.c
33@@ -152,7 +152,7 @@ static struct _getopt_data getopt_data;
34 whose names are inconsistent. */
35
36 #ifndef getenv
37-extern char *getenv ();
38+extern char *getenv (const char*);
39 #endif
40
41 #endif /* not __GNU_LIBRARY__ */
42diff --git a/support/getopt.h b/support/getopt.h
43index 8393569..06482cf 100644
44--- a/support/getopt.h
45+++ b/support/getopt.h
46@@ -181,7 +181,7 @@ extern int __posix_getopt (int ___argc, char *const *___argv,
47 # endif
48 # endif
49 #else /* not __GNU_LIBRARY__ */
50-extern int getopt ();
51+extern int getopt (int, char * const*, const char *);
52 #endif /* __GNU_LIBRARY__ */
53
54 #ifndef __need_getopt
diff --git a/meta/recipes-extended/gawk/gawk/0001-configure.ac-re-enable-disabled-printf-features.patch b/meta/recipes-extended/gawk/gawk/0001-configure.ac-re-enable-disabled-printf-features.patch
index 4fe60c7cb8..bcbc569531 100644
--- a/meta/recipes-extended/gawk/gawk/0001-configure.ac-re-enable-disabled-printf-features.patch
+++ b/meta/recipes-extended/gawk/gawk/0001-configure.ac-re-enable-disabled-printf-features.patch
@@ -1,4 +1,4 @@
1From 879fb11c7c006a8533a092fb75b38d84cc570d83 Mon Sep 17 00:00:00 2001 1From 9ce3184188e3fa275fde0258a165f4446a6e80f7 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de> 2From: Alexander Kanavin <alex@linutronix.de>
3Date: Fri, 22 Nov 2024 12:13:58 +0100 3Date: Fri, 22 Nov 2024 12:13:58 +0100
4Subject: [PATCH] configure.ac: re-enable disabled printf features 4Subject: [PATCH] configure.ac: re-enable disabled printf features
@@ -12,10 +12,10 @@ Signed-off-by: Alexander Kanavin <alex@linutronix.de>
12 1 file changed, 2 insertions(+), 2 deletions(-) 12 1 file changed, 2 insertions(+), 2 deletions(-)
13 13
14diff --git a/configure.ac b/configure.ac 14diff --git a/configure.ac b/configure.ac
15index cb99ffe..5fe792f 100644 15index 0ccd460..7df7e5b 100644
16--- a/configure.ac 16--- a/configure.ac
17+++ b/configure.ac 17+++ b/configure.ac
18@@ -398,7 +398,7 @@ int main() 18@@ -400,7 +400,7 @@ int main()
19 ])], 19 ])],
20 has_f_format=yes, 20 has_f_format=yes,
21 has_f_format=no, 21 has_f_format=no,
@@ -24,7 +24,7 @@ index cb99ffe..5fe792f 100644
24 ) 24 )
25 if test "$has_f_format" = yes 25 if test "$has_f_format" = yes
26 then 26 then
27@@ -427,7 +427,7 @@ int main() 27@@ -429,7 +429,7 @@ int main()
28 ])], 28 ])],
29 has_a_format=yes, 29 has_a_format=yes,
30 has_a_format=no, 30 has_a_format=no,
diff --git a/meta/recipes-extended/gawk/gawk_5.3.1.bb b/meta/recipes-extended/gawk/gawk_5.3.2.bb
index 1fe2f2b2a7..833fe78bf9 100644
--- a/meta/recipes-extended/gawk/gawk_5.3.1.bb
+++ b/meta/recipes-extended/gawk/gawk_5.3.2.bb
@@ -18,10 +18,9 @@ PACKAGECONFIG[mpfr] = "--with-mpfr,--without-mpfr, mpfr"
18SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \ 18SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \
19 file://run-ptest \ 19 file://run-ptest \
20 file://0001-configure.ac-re-enable-disabled-printf-features.patch \ 20 file://0001-configure.ac-re-enable-disabled-printf-features.patch \
21 file://0001-Add-parameter-signatures-for-getenv-and-getopt.patch \
22 " 21 "
23 22
24SRC_URI[sha256sum] = "fa41b3a85413af87fb5e3a7d9c8fa8d4a20728c67651185bb49c38a7f9382b1e" 23SRC_URI[sha256sum] = "8639a1a88fb411a1be02663739d03e902a6d313b5c6fe024d0bfeb3341a19a11"
25 24
26inherit autotools gettext texinfo update-alternatives 25inherit autotools gettext texinfo update-alternatives
27 26