diff options
| -rw-r--r-- | meta/recipes-extended/bash/bash/0001-fix-c99.patch | 41 | ||||
| -rw-r--r-- | meta/recipes-extended/bash/bash_5.2.21.bb | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-extended/bash/bash/0001-fix-c99.patch b/meta/recipes-extended/bash/bash/0001-fix-c99.patch new file mode 100644 index 0000000000..aa810f7d4e --- /dev/null +++ b/meta/recipes-extended/bash/bash/0001-fix-c99.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From e9ed388e760ec33dcf9e72c639946c0d0abeec26 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ross Burton <ross.burton@arm.com> | ||
| 3 | Date: Wed, 19 Jun 2024 12:57:39 +0000 | ||
| 4 | Subject: [PATCH] Fix C99 problems | ||
| 5 | |||
| 6 | Backport some fixes from upstream to fix configure checks that fail with GCC 14.1. | ||
| 7 | |||
| 8 | Upstream-Status: Backport [devel branch] | ||
| 9 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 10 | --- | ||
| 11 | aclocal.m4 | 3 +++ | ||
| 12 | configure.ac | 2 +- | ||
| 13 | 2 files changed, 4 insertions(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/aclocal.m4 b/aclocal.m4 | ||
| 16 | index cc97bd4..7423b99 100644 | ||
| 17 | --- a/aclocal.m4 | ||
| 18 | +++ b/aclocal.m4 | ||
| 19 | @@ -238,6 +238,9 @@ AC_CACHE_VAL(bash_cv_dup2_broken, | ||
| 20 | #include <sys/types.h> | ||
| 21 | #include <fcntl.h> | ||
| 22 | #include <stdlib.h> | ||
| 23 | +#ifdef HAVE_UNISTD_H | ||
| 24 | +# include <unistd.h> | ||
| 25 | +#endif /* HAVE_UNISTD_H */ | ||
| 26 | int | ||
| 27 | main() | ||
| 28 | { | ||
| 29 | diff --git a/configure.ac b/configure.ac | ||
| 30 | index a3b5bd7..2a38c6b 100644 | ||
| 31 | --- a/configure.ac | ||
| 32 | +++ b/configure.ac | ||
| 33 | @@ -842,7 +842,7 @@ AC_CHECK_DECLS([strtold], [ | ||
| 34 | [AC_COMPILE_IFELSE( | ||
| 35 | [AC_LANG_PROGRAM( | ||
| 36 | [[#include <stdlib.h>]], | ||
| 37 | - [[long double r; char *foo, bar; r = strtold(foo, &bar);]] | ||
| 38 | + [[long double r; char *foo, *bar; r = strtold(foo, &bar);]] | ||
| 39 | )], | ||
| 40 | [bash_cv_strtold_broken=no],[bash_cv_strtold_broken=yes]) | ||
| 41 | ] | ||
diff --git a/meta/recipes-extended/bash/bash_5.2.21.bb b/meta/recipes-extended/bash/bash_5.2.21.bb index 532adf4c1a..ccfe5c47a7 100644 --- a/meta/recipes-extended/bash/bash_5.2.21.bb +++ b/meta/recipes-extended/bash/bash_5.2.21.bb | |||
| @@ -14,6 +14,7 @@ SRC_URI = "${GNU_MIRROR}/bash/${BP}.tar.gz;name=tarball \ | |||
| 14 | file://use_aclocal.patch \ | 14 | file://use_aclocal.patch \ |
| 15 | file://0001-changes-to-SIGINT-handler-while-waiting-for-a-child-.patch \ | 15 | file://0001-changes-to-SIGINT-handler-while-waiting-for-a-child-.patch \ |
| 16 | file://fix-filesubst-errexit.patch \ | 16 | file://fix-filesubst-errexit.patch \ |
| 17 | file://0001-fix-c99.patch \ | ||
| 17 | " | 18 | " |
| 18 | 19 | ||
| 19 | SRC_URI[tarball.sha256sum] = "c8e31bdc59b69aaffc5b36509905ba3e5cbb12747091d27b4b977f078560d5b8" | 20 | SRC_URI[tarball.sha256sum] = "c8e31bdc59b69aaffc5b36509905ba3e5cbb12747091d27b4b977f078560d5b8" |
