diff options
| -rw-r--r-- | meta/recipes-extended/gawk/gawk/0001-configure.ac-re-enable-disabled-printf-features.patch | 35 | ||||
| -rw-r--r-- | meta/recipes-extended/gawk/gawk/0001-m4-readline-add-missing-includes.patch | 38 | ||||
| -rw-r--r-- | meta/recipes-extended/gawk/gawk_5.3.1.bb (renamed from meta/recipes-extended/gawk/gawk_5.3.0.bb) | 4 |
3 files changed, 37 insertions, 40 deletions
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 new file mode 100644 index 0000000000..4fe60c7cb8 --- /dev/null +++ b/meta/recipes-extended/gawk/gawk/0001-configure.ac-re-enable-disabled-printf-features.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From 879fb11c7c006a8533a092fb75b38d84cc570d83 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex@linutronix.de> | ||
| 3 | Date: Fri, 22 Nov 2024 12:13:58 +0100 | ||
| 4 | Subject: [PATCH] configure.ac: re-enable disabled printf features | ||
| 5 | |||
| 6 | This is needed for ptests to pass for one thing. | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [needs a config option] | ||
| 9 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
| 10 | --- | ||
| 11 | configure.ac | 4 ++-- | ||
| 12 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/configure.ac b/configure.ac | ||
| 15 | index cb99ffe..5fe792f 100644 | ||
| 16 | --- a/configure.ac | ||
| 17 | +++ b/configure.ac | ||
| 18 | @@ -398,7 +398,7 @@ int main() | ||
| 19 | ])], | ||
| 20 | has_f_format=yes, | ||
| 21 | has_f_format=no, | ||
| 22 | - has_f_format=no dnl Cross-compiling, assuming the worst. | ||
| 23 | + has_f_format=yes dnl Cross-compiling in oe-core | ||
| 24 | ) | ||
| 25 | if test "$has_f_format" = yes | ||
| 26 | then | ||
| 27 | @@ -427,7 +427,7 @@ int main() | ||
| 28 | ])], | ||
| 29 | has_a_format=yes, | ||
| 30 | has_a_format=no, | ||
| 31 | - has_a_format=no dnl Cross-compiling, assuming the worst. | ||
| 32 | + has_a_format=yes dnl Cross-compiling in oe-core | ||
| 33 | ) | ||
| 34 | if test "$has_a_format" = yes | ||
| 35 | then | ||
diff --git a/meta/recipes-extended/gawk/gawk/0001-m4-readline-add-missing-includes.patch b/meta/recipes-extended/gawk/gawk/0001-m4-readline-add-missing-includes.patch deleted file mode 100644 index 6fffd1f373..0000000000 --- a/meta/recipes-extended/gawk/gawk/0001-m4-readline-add-missing-includes.patch +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | From 4f4e84f139e2a8682f1374a592f2636c43ad857b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ross Burton <ross.burton@arm.com> | ||
| 3 | Date: Tue, 21 May 2024 15:10:11 +0000 | ||
| 4 | Subject: [PATCH] m4/readline: add missing includes | ||
| 5 | |||
| 6 | The cross-specific code fragment only includes stdio.h, where the native | ||
| 7 | fragment also includes fcntl.h and unistd.h. This is important because | ||
| 8 | GCC 14.1 has made the implicit definitions an error: | ||
| 9 | |||
| 10 | conftest.c: In function 'main': | ||
| 11 | conftest.c:144:9: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] | ||
| 12 | conftest.c:146:14: error: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] | ||
| 13 | |||
| 14 | Add the missing includes so that the check doesn't always fail due to | ||
| 15 | these errors. | ||
| 16 | |||
| 17 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/gawk.git/commit/?id=c1613c310d71b87f509458e0259ecd10eda2b140] | ||
| 18 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 19 | --- | ||
| 20 | m4/readline.m4 | 2 ++ | ||
| 21 | 1 file changed, 2 insertions(+) | ||
| 22 | |||
| 23 | diff --git a/m4/readline.m4 b/m4/readline.m4 | ||
| 24 | index 38f96326..efd52d4e 100644 | ||
| 25 | --- a/m4/readline.m4 | ||
| 26 | +++ b/m4/readline.m4 | ||
| 27 | @@ -66,6 +66,8 @@ dnl action if false: | ||
| 28 | dnl action if cross compiling: | ||
| 29 | [AC_LINK_IFELSE( | ||
| 30 | [AC_LANG_PROGRAM([[#include <stdio.h> | ||
| 31 | +#include <fcntl.h> | ||
| 32 | +#include <unistd.h> | ||
| 33 | #include <readline/readline.h> | ||
| 34 | #include <readline/history.h>]], dnl includes | ||
| 35 | dnl function body | ||
| 36 | -- | ||
| 37 | 2.34.1 | ||
| 38 | |||
diff --git a/meta/recipes-extended/gawk/gawk_5.3.0.bb b/meta/recipes-extended/gawk/gawk_5.3.1.bb index ac9d8500d6..bd72fbf280 100644 --- a/meta/recipes-extended/gawk/gawk_5.3.0.bb +++ b/meta/recipes-extended/gawk/gawk_5.3.1.bb | |||
| @@ -16,11 +16,11 @@ PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline" | |||
| 16 | PACKAGECONFIG[mpfr] = "--with-mpfr,--without-mpfr, mpfr" | 16 | PACKAGECONFIG[mpfr] = "--with-mpfr,--without-mpfr, mpfr" |
| 17 | 17 | ||
| 18 | SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \ | 18 | SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \ |
| 19 | file://0001-m4-readline-add-missing-includes.patch \ | ||
| 20 | file://run-ptest \ | 19 | file://run-ptest \ |
| 20 | file://0001-configure.ac-re-enable-disabled-printf-features.patch \ | ||
| 21 | " | 21 | " |
| 22 | 22 | ||
| 23 | SRC_URI[sha256sum] = "378f8864ec21cfceaa048f7e1869ac9b4597b449087caf1eb55e440d30273336" | 23 | SRC_URI[sha256sum] = "fa41b3a85413af87fb5e3a7d9c8fa8d4a20728c67651185bb49c38a7f9382b1e" |
| 24 | 24 | ||
| 25 | inherit autotools gettext texinfo update-alternatives | 25 | inherit autotools gettext texinfo update-alternatives |
| 26 | 26 | ||
