diff options
| -rw-r--r-- | meta/recipes-extended/gawk/gawk/0001-Add-parameter-signatures-for-getenv-and-getopt.patch | 54 | ||||
| -rw-r--r-- | meta/recipes-extended/gawk/gawk/0001-configure.ac-re-enable-disabled-printf-features.patch | 8 | ||||
| -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 @@ | |||
| 1 | From 4a8352eeaa99bbea3461696855c973447e87abdd Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sat, 22 Mar 2025 15:14:16 -0700 | ||
| 4 | Subject: [PATCH] Add parameter signatures for getenv() and getopt() | ||
| 5 | |||
| 6 | GCC-15 complains about it when building for musl C library | ||
| 7 | |||
| 8 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-gawk/2025-03/msg00027.html] | ||
| 9 | Signed-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 | |||
| 16 | diff --git a/missing_d/fnmatch.c b/missing_d/fnmatch.c | ||
| 17 | index 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 | ||
| 29 | diff --git a/support/getopt.c b/support/getopt.c | ||
| 30 | index 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__ */ | ||
| 42 | diff --git a/support/getopt.h b/support/getopt.h | ||
| 43 | index 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 @@ | |||
| 1 | From 879fb11c7c006a8533a092fb75b38d84cc570d83 Mon Sep 17 00:00:00 2001 | 1 | From 9ce3184188e3fa275fde0258a165f4446a6e80f7 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex@linutronix.de> | 2 | From: Alexander Kanavin <alex@linutronix.de> |
| 3 | Date: Fri, 22 Nov 2024 12:13:58 +0100 | 3 | Date: Fri, 22 Nov 2024 12:13:58 +0100 |
| 4 | Subject: [PATCH] configure.ac: re-enable disabled printf features | 4 | Subject: [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 | ||
| 14 | diff --git a/configure.ac b/configure.ac | 14 | diff --git a/configure.ac b/configure.ac |
| 15 | index cb99ffe..5fe792f 100644 | 15 | index 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" | |||
| 18 | SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \ | 18 | SRC_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 | ||
| 24 | SRC_URI[sha256sum] = "fa41b3a85413af87fb5e3a7d9c8fa8d4a20728c67651185bb49c38a7f9382b1e" | 23 | SRC_URI[sha256sum] = "8639a1a88fb411a1be02663739d03e902a6d313b5c6fe024d0bfeb3341a19a11" |
| 25 | 24 | ||
| 26 | inherit autotools gettext texinfo update-alternatives | 25 | inherit autotools gettext texinfo update-alternatives |
| 27 | 26 | ||
