summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2024-06-19 14:36:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-06-24 12:43:41 +0100
commitd5e42cf9b6b2dbea340883bc015e06e51e6fc5f3 (patch)
tree6f180d98b6180a91b0fb1880f4390c0239ccb91d /meta/recipes-extended
parent28def3edbaad2fab478185ee6cf3399b26a3be4b (diff)
downloadpoky-d5e42cf9b6b2dbea340883bc015e06e51e6fc5f3.tar.gz
bash: fix configure checks that fail with GCC 14.1
These configure checks cause compiler errors with GCC 14.1, so they always fail. Backport fixes from upstream to solve this. (From OE-Core rev: 921479032720707f4817e3398e516724bc48b33c) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/bash/bash/0001-fix-c99.patch41
-rw-r--r--meta/recipes-extended/bash/bash_5.2.21.bb1
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 @@
1From e9ed388e760ec33dcf9e72c639946c0d0abeec26 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com>
3Date: Wed, 19 Jun 2024 12:57:39 +0000
4Subject: [PATCH] Fix C99 problems
5
6Backport some fixes from upstream to fix configure checks that fail with GCC 14.1.
7
8Upstream-Status: Backport [devel branch]
9Signed-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
15diff --git a/aclocal.m4 b/aclocal.m4
16index 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 {
29diff --git a/configure.ac b/configure.ac
30index 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
19SRC_URI[tarball.sha256sum] = "c8e31bdc59b69aaffc5b36509905ba3e5cbb12747091d27b4b977f078560d5b8" 20SRC_URI[tarball.sha256sum] = "c8e31bdc59b69aaffc5b36509905ba3e5cbb12747091d27b4b977f078560d5b8"