summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/bash
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/bash')
-rw-r--r--meta/recipes-extended/bash/bash.inc10
-rw-r--r--meta/recipes-extended/bash/bash/0001-changes-to-SIGINT-handler-while-waiting-for-a-child-.patch21
-rw-r--r--meta/recipes-extended/bash/bash/build-tests.patch9
-rw-r--r--meta/recipes-extended/bash/bash/fix-filesubst-errexit.patch31
-rw-r--r--meta/recipes-extended/bash/bash/fix-run-builtins.patch9
-rw-r--r--meta/recipes-extended/bash/bash/mkbuiltins_have_stringize.patch18
-rw-r--r--meta/recipes-extended/bash/bash/test-output.patch11
-rw-r--r--meta/recipes-extended/bash/bash/use_aclocal.patch70
-rw-r--r--meta/recipes-extended/bash/bash_5.2.37.bb (renamed from meta/recipes-extended/bash/bash_5.2.21.bb)9
9 files changed, 74 insertions, 114 deletions
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
index e541161c75..634209c911 100644
--- a/meta/recipes-extended/bash/bash.inc
+++ b/meta/recipes-extended/bash/bash.inc
@@ -7,7 +7,7 @@ DEPENDS = "ncurses bison-native virtual/libiconv"
7 7
8inherit autotools gettext texinfo update-alternatives ptest 8inherit autotools gettext texinfo update-alternatives ptest
9 9
10EXTRA_AUTORECONF += "--exclude=autoheader" 10EXTRA_AUTORECONF += "--exclude=autoheader,aclocal"
11EXTRA_OECONF = "--enable-job-control --without-bash-malloc bash_cv_wexitstatus_offset=8" 11EXTRA_OECONF = "--enable-job-control --without-bash-malloc bash_cv_wexitstatus_offset=8"
12 12
13# If NON_INTERACTIVE_LOGIN_SHELLS is defined, all login shells read the 13# If NON_INTERACTIVE_LOGIN_SHELLS is defined, all login shells read the
@@ -46,12 +46,6 @@ RDEPENDS:${PN}-ptest:append:libc-glibc = " \
46 46
47CACHED_CONFIGUREVARS += "headersdir=${includedir}/${PN}" 47CACHED_CONFIGUREVARS += "headersdir=${includedir}/${PN}"
48 48
49do_configure:prepend () {
50 if [ ! -e ${S}/acinclude.m4 ]; then
51 cat ${S}/aclocal.m4 > ${S}/acinclude.m4
52 fi
53}
54
55do_compile:prepend() { 49do_compile:prepend() {
56 # Remove any leftover .build files. This ensures that bash always has the 50 # Remove any leftover .build files. This ensures that bash always has the
57 # same version number and keeps builds reproducible 51 # same version number and keeps builds reproducible
@@ -108,7 +102,7 @@ do_install_ptest () {
108 cp ${B}/config.h ${D}${PTEST_PATH} 102 cp ${B}/config.h ${D}${PTEST_PATH}
109 cp ${B}/version.h ${D}${PTEST_PATH} 103 cp ${B}/version.h ${D}${PTEST_PATH}
110 cp ${S}/y.tab.[ch] ${D}${PTEST_PATH} 104 cp ${S}/y.tab.[ch] ${D}${PTEST_PATH}
111 install -D ${WORKDIR}/run-bash-ptests ${D}${PTEST_PATH}/run-bash-ptests 105 install -D ${UNPACKDIR}/run-bash-ptests ${D}${PTEST_PATH}/run-bash-ptests
112 sed -i -e 's/^Makefile/_Makefile/' -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \ 106 sed -i -e 's/^Makefile/_Makefile/' -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \
113 -e 's|${DEBUG_PREFIX_MAP}||g' \ 107 -e 's|${DEBUG_PREFIX_MAP}||g' \
114 -e 's|${BUILD_LDFLAGS}||g' \ 108 -e 's|${BUILD_LDFLAGS}||g' \
diff --git a/meta/recipes-extended/bash/bash/0001-changes-to-SIGINT-handler-while-waiting-for-a-child-.patch b/meta/recipes-extended/bash/bash/0001-changes-to-SIGINT-handler-while-waiting-for-a-child-.patch
index 77d770b364..4e73edb9b3 100644
--- a/meta/recipes-extended/bash/bash/0001-changes-to-SIGINT-handler-while-waiting-for-a-child-.patch
+++ b/meta/recipes-extended/bash/bash/0001-changes-to-SIGINT-handler-while-waiting-for-a-child-.patch
@@ -1,4 +1,4 @@
1From 721d5be99eb37d31e48bd66d61808a66a4c5ab84 Mon Sep 17 00:00:00 2001 1From e4b9493ae4923595ec3ca67f85322129fb3056cf Mon Sep 17 00:00:00 2001
2From: Chet Ramey <chet.ramey@case.edu> 2From: Chet Ramey <chet.ramey@case.edu>
3Date: Mon, 30 Oct 2023 12:16:07 -0400 3Date: Mon, 30 Oct 2023 12:16:07 -0400
4Subject: [PATCH] changes to SIGINT handler while waiting for a child; skip 4Subject: [PATCH] changes to SIGINT handler while waiting for a child; skip
@@ -20,10 +20,10 @@ Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
20 6 files changed, 43 insertions(+), 32 deletions(-) 20 6 files changed, 43 insertions(+), 32 deletions(-)
21 21
22diff --git a/general.c b/general.c 22diff --git a/general.c b/general.c
23index 85c5a8b6..65e2ee06 100644 23index bda39f4..94a5339 100644
24--- a/general.c 24--- a/general.c
25+++ b/general.c 25+++ b/general.c
26@@ -262,8 +262,9 @@ legal_number (string, result) 26@@ -264,8 +264,9 @@ legal_number (string, result)
27 if (errno || ep == string) 27 if (errno || ep == string)
28 return 0; /* errno is set on overflow or underflow */ 28 return 0; /* errno is set on overflow or underflow */
29 29
@@ -36,7 +36,7 @@ index 85c5a8b6..65e2ee06 100644
36 36
37 /* If *string is not '\0' but *ep is '\0' on return, the entire string 37 /* If *string is not '\0' but *ep is '\0' on return, the entire string
38diff --git a/jobs.c b/jobs.c 38diff --git a/jobs.c b/jobs.c
39index 6b986ed7..262d78de 100644 39index d3e4ab0..903cf9c 100644
40--- a/jobs.c 40--- a/jobs.c
41+++ b/jobs.c 41+++ b/jobs.c
42@@ -2718,6 +2718,10 @@ wait_for_background_pids (ps) 42@@ -2718,6 +2718,10 @@ wait_for_background_pids (ps)
@@ -96,7 +96,7 @@ index 6b986ed7..262d78de 100644
96 waiting_for_child = 0; 96 waiting_for_child = 0;
97 if (old_sigint_handler == SIG_IGN) 97 if (old_sigint_handler == SIG_IGN)
98 set_signal_handler (SIGINT, old_sigint_handler); 98 set_signal_handler (SIGINT, old_sigint_handler);
99@@ -4136,7 +4144,7 @@ set_job_status_and_cleanup (job) 99@@ -4141,7 +4149,7 @@ set_job_status_and_cleanup (job)
100 SIGINT (if we reset the sighandler to the default). 100 SIGINT (if we reset the sighandler to the default).
101 In this case, we have to fix things up. What a crock. */ 101 In this case, we have to fix things up. What a crock. */
102 if (temp_handler == trap_handler && signal_is_trapped (SIGINT) == 0) 102 if (temp_handler == trap_handler && signal_is_trapped (SIGINT) == 0)
@@ -106,7 +106,7 @@ index 6b986ed7..262d78de 100644
106 if (temp_handler == SIG_DFL) 106 if (temp_handler == SIG_DFL)
107 termsig_handler (SIGINT); /* XXX */ 107 termsig_handler (SIGINT); /* XXX */
108diff --git a/tests/redir.right b/tests/redir.right 108diff --git a/tests/redir.right b/tests/redir.right
109index 8db10414..9e1403c8 100644 109index 8db1041..9e1403c 100644
110--- a/tests/redir.right 110--- a/tests/redir.right
111+++ b/tests/redir.right 111+++ b/tests/redir.right
112@@ -154,10 +154,10 @@ foo 112@@ -154,10 +154,10 @@ foo
@@ -123,7 +123,7 @@ index 8db10414..9e1403c8 100644
123+./redir11.sub: line 77: 42: No such file or directory 123+./redir11.sub: line 77: 42: No such file or directory
124 42 124 42
125diff --git a/tests/redir11.sub b/tests/redir11.sub 125diff --git a/tests/redir11.sub b/tests/redir11.sub
126index d417cdb6..ca9854cd 100644 126index d417cdb..ca9854c 100644
127--- a/tests/redir11.sub 127--- a/tests/redir11.sub
128+++ b/tests/redir11.sub 128+++ b/tests/redir11.sub
129@@ -34,6 +34,8 @@ a=4 b=7 ss=4 declare -i ss 129@@ -34,6 +34,8 @@ a=4 b=7 ss=4 declare -i ss
@@ -136,7 +136,7 @@ index d417cdb6..ca9854cd 100644
136 a=4 echo foo 2>&1 >&$(foo) | { grep -q 'Bad file' || echo 'redir11 bad 3'; } 136 a=4 echo foo 2>&1 >&$(foo) | { grep -q 'Bad file' || echo 'redir11 bad 3'; }
137 a=1 echo foo 2>&1 >&$(foo) | { grep -q 'Bad file' || echo 'redir11 bad 4'; } 137 a=1 echo foo 2>&1 >&$(foo) | { grep -q 'Bad file' || echo 'redir11 bad 4'; }
138diff --git a/tests/type.right b/tests/type.right 138diff --git a/tests/type.right b/tests/type.right
139index bbc228e8..e0a66745 100644 139index bbc228e..c0c1c8b 100644
140--- a/tests/type.right 140--- a/tests/type.right
141+++ b/tests/type.right 141+++ b/tests/type.right
142@@ -24,15 +24,15 @@ func () 142@@ -24,15 +24,15 @@ func ()
@@ -164,7 +164,7 @@ index bbc228e8..e0a66745 100644
164 builtin is a shell builtin 164 builtin is a shell builtin
165 /bin/sh 165 /bin/sh
166diff --git a/tests/type.tests b/tests/type.tests 166diff --git a/tests/type.tests b/tests/type.tests
167index fd39c18a..ddc15407 100644 167index fd39c18..ddc1540 100644
168--- a/tests/type.tests 168--- a/tests/type.tests
169+++ b/tests/type.tests 169+++ b/tests/type.tests
170@@ -25,8 +25,6 @@ type -r ${THIS_SH} 170@@ -25,8 +25,6 @@ type -r ${THIS_SH}
@@ -221,6 +221,3 @@ index fd39c18a..ddc15407 100644
221 type m 221 type m
222 222
223 hash -r 223 hash -r
224--
2252.35.5
226
diff --git a/meta/recipes-extended/bash/bash/build-tests.patch b/meta/recipes-extended/bash/bash/build-tests.patch
index ea38bace9b..4cce1ba993 100644
--- a/meta/recipes-extended/bash/bash/build-tests.patch
+++ b/meta/recipes-extended/bash/bash/build-tests.patch
@@ -1,24 +1,23 @@
1From 318b762837c2ad25319caeaf0320eff613b64daf Mon Sep 17 00:00:00 2001 1From c3f58f8b4f7a359b9d9dd97a45bcaab50a89d224 Mon Sep 17 00:00:00 2001
2From: Anders Roxell <anders.roxell@enea.com> 2From: Anders Roxell <anders.roxell@enea.com>
3Date: Wed, 19 Dec 2012 17:18:31 +0100 3Date: Wed, 19 Dec 2012 17:18:31 +0100
4Subject: [PATCH] Add 'ptest' target to Makefile, to run tests without checking 4Subject: [PATCH] Add 'ptest' target to Makefile, to run tests without checking
5 dependencies. 5 dependencies.
6 6
7Upstream-Status: Pending 7Upstream-Status: Inappropriate [ptest specific]
8Signed-off-by: Anders Roxell <anders.roxell@enea.com> 8Signed-off-by: Anders Roxell <anders.roxell@enea.com>
9 9
10Rebase to 5.0 10Rebase to 5.0
11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
12
13--- 12---
14 Makefile.in | 24 +++++++++++++++++++----- 13 Makefile.in | 24 +++++++++++++++++++-----
15 1 file changed, 19 insertions(+), 5 deletions(-) 14 1 file changed, 19 insertions(+), 5 deletions(-)
16 15
17diff --git a/Makefile.in b/Makefile.in 16diff --git a/Makefile.in b/Makefile.in
18index bc97049..937ce39 100644 17index 0b4df73..7e2a34e 100644
19--- a/Makefile.in 18--- a/Makefile.in
20+++ b/Makefile.in 19+++ b/Makefile.in
21@@ -943,20 +943,34 @@ maybe-clean: 20@@ -958,20 +958,34 @@ maybe-clean:
22 fi 21 fi
23 22
24 recho$(EXEEXT): $(SUPPORT_SRC)recho.c 23 recho$(EXEEXT): $(SUPPORT_SRC)recho.c
diff --git a/meta/recipes-extended/bash/bash/fix-filesubst-errexit.patch b/meta/recipes-extended/bash/bash/fix-filesubst-errexit.patch
new file mode 100644
index 0000000000..c5082ee355
--- /dev/null
+++ b/meta/recipes-extended/bash/bash/fix-filesubst-errexit.patch
@@ -0,0 +1,31 @@
1From 16951b74971c7fd38fd036dac1410a9e53cbe736 Mon Sep 17 00:00:00 2001
2From: Chet Ramey <chet.ramey@case.edu>
3Date: Fri, 7 Apr 2023 00:28:46 -0700
4Subject: [PATCH] $(<nosuchfile) is no longer a fatal error with errexit
5 enabled
6
7This is a trimmed-down version of a commit in the bash 'devel' branch
8[1] that contains this fix as well as other unrelated ones.
9
10[1] https://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=ec9447ce9392a0f93d96789c3741285fede8a150
11
12Upstream-Status: Backport
13
14Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
15---
16 builtins/evalstring.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/builtins/evalstring.c b/builtins/evalstring.c
20index 53a7c0b..c5075cc 100644
21--- a/builtins/evalstring.c
22+++ b/builtins/evalstring.c
23@@ -753,7 +753,7 @@ open_redir_file (r, fnp)
24 fd = open(fn, O_RDONLY);
25 if (fd < 0)
26 {
27- file_error (fn);
28+ internal_error ("%s: %s", fn, strerror (errno));
29 free (fn);
30 if (fnp)
31 *fnp = 0;
diff --git a/meta/recipes-extended/bash/bash/fix-run-builtins.patch b/meta/recipes-extended/bash/bash/fix-run-builtins.patch
index 2fa388302e..05d0859821 100644
--- a/meta/recipes-extended/bash/bash/fix-run-builtins.patch
+++ b/meta/recipes-extended/bash/bash/fix-run-builtins.patch
@@ -1,4 +1,4 @@
1From 0c4cab9594c96c2dc435a8d9724605824bcbf917 Mon Sep 17 00:00:00 2001 1From 15601c71b073a604ccda25c7f14f0bb12e9a3b28 Mon Sep 17 00:00:00 2001
2From: Dengke Du <dengke.du@windriver.com> 2From: Dengke Du <dengke.du@windriver.com>
3Date: Tue, 19 Apr 2016 02:57:45 -0400 3Date: Tue, 19 Apr 2016 02:57:45 -0400
4Subject: [PATCH] fix run-builtins failed 4Subject: [PATCH] fix run-builtins failed
@@ -16,10 +16,10 @@ Signed-off-by: Dengke Du <dengke.du@windriver.com>
16 1 file changed, 1 insertion(+), 1 deletion(-) 16 1 file changed, 1 insertion(+), 1 deletion(-)
17 17
18diff --git a/tests/builtins.tests b/tests/builtins.tests 18diff --git a/tests/builtins.tests b/tests/builtins.tests
19index 9d77520..63f3af8 100644 19index 8eee43e..71c9eee 100644
20--- a/tests/builtins.tests 20--- a/tests/builtins.tests
21+++ b/tests/builtins.tests 21+++ b/tests/builtins.tests
22@@ -109,7 +109,7 @@ esac 22@@ -124,7 +124,7 @@ esac
23 23
24 # test options to exec 24 # test options to exec
25 (exec -a specialname ${THIS_SH} -c 'echo $0' ) 25 (exec -a specialname ${THIS_SH} -c 'echo $0' )
@@ -28,6 +28,3 @@ index 9d77520..63f3af8 100644
28 # test `clean' environment. if /bin/sh is bash, and the script version of 28 # test `clean' environment. if /bin/sh is bash, and the script version of
29 # printenv is run, there will be variables in the environment that bash 29 # printenv is run, there will be variables in the environment that bash
30 # sets on startup. Also test code that prefixes argv[0] with a dash. 30 # sets on startup. Also test code that prefixes argv[0] with a dash.
31--
322.8.1
33
diff --git a/meta/recipes-extended/bash/bash/mkbuiltins_have_stringize.patch b/meta/recipes-extended/bash/bash/mkbuiltins_have_stringize.patch
index a9391d6cac..eb29e7d836 100644
--- a/meta/recipes-extended/bash/bash/mkbuiltins_have_stringize.patch
+++ b/meta/recipes-extended/bash/bash/mkbuiltins_have_stringize.patch
@@ -1,3 +1,8 @@
1From d11685286144c2e5630545e435d11387b2908fd0 Mon Sep 17 00:00:00 2001
2From: Christopher Larson <chris_larson@mentor.com>
3Date: Wed, 14 Nov 2012 07:55:09 -0700
4Subject: [PATCH] bash: fix mkbuiltins build failure
5
1On hosts with FORTIFY_SOURCES, stringize support is required, as it's used by 6On hosts with FORTIFY_SOURCES, stringize support is required, as it's used by
2the macros to wrap functions (e.g. read and open in unistd.h). Those wrappers 7the macros to wrap functions (e.g. read and open in unistd.h). Those wrappers
3use the STRING() macro from unistd.h. A header in the bash sources overrides 8use the STRING() macro from unistd.h. A header in the bash sources overrides
@@ -13,14 +18,19 @@ stringize support, or to not define STRING() at all when FORTIFY_SOURCES is
13defined, letting the unistd.h one be used, instead. 18defined, letting the unistd.h one be used, instead.
14 19
15Upstream-Status: Pending 20Upstream-Status: Pending
21---
22 builtins/mkbuiltins.c | 1 +
23 1 file changed, 1 insertion(+)
16 24
17--- bash-4.2.orig/builtins/mkbuiltins.c 25diff --git a/builtins/mkbuiltins.c b/builtins/mkbuiltins.c
18+++ bash-4.2/builtins/mkbuiltins.c 26index f505ebd..b5b2eed 100644
27--- a/builtins/mkbuiltins.c
28+++ b/builtins/mkbuiltins.c
19@@ -28,6 +28,7 @@ 29@@ -28,6 +28,7 @@
20 # define HAVE_STDLIB_H 30 # define HAVE_STDLIB_H
21 31
22 # define HAVE_RENAME 32 # define HAVE_RENAME
23+# define HAVE_STRINGIZE 33+# define HAVE_STRINGIZE
24 #endif /* CROSS_COMPILING */ 34 #endif /* CROSS_COMPILING */
25 35
26 #if defined (HAVE_UNISTD_H) 36 #if defined (HAVE_UNISTD_H)
diff --git a/meta/recipes-extended/bash/bash/test-output.patch b/meta/recipes-extended/bash/bash/test-output.patch
index 0ffcc24587..3225907b66 100644
--- a/meta/recipes-extended/bash/bash/test-output.patch
+++ b/meta/recipes-extended/bash/bash/test-output.patch
@@ -1,7 +1,7 @@
1From 28eb06047ebd2deaa8c7cd2bf6655ef6a469dc14 Mon Sep 17 00:00:00 2001 1From f5cbd5a4954b89857c9e397cacceda552484f5d5 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 15 Aug 2017 10:01:56 +0800 3Date: Tue, 15 Aug 2017 10:01:56 +0800
4Subject: [PATCH 1/2] Add FAIL/PASS output to test output. 4Subject: [PATCH] Add FAIL/PASS output to test output.
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -16,10 +16,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
16 1 file changed, 10 insertions(+), 1 deletion(-) 16 1 file changed, 10 insertions(+), 1 deletion(-)
17 17
18diff --git a/tests/run-all b/tests/run-all 18diff --git a/tests/run-all b/tests/run-all
19index 2882fe0..e21d026 100644 19index 1f74923..ba36a1f 100644
20--- a/tests/run-all 20--- a/tests/run-all
21+++ b/tests/run-all 21+++ b/tests/run-all
22@@ -33,7 +33,16 @@ do 22@@ -57,7 +57,16 @@ do
23 case $x in 23 case $x in
24 $0|run-minimal|run-gprof) ;; 24 $0|run-minimal|run-gprof) ;;
25 *.orig|*~) ;; 25 *.orig|*~) ;;
@@ -37,6 +37,3 @@ index 2882fe0..e21d026 100644
37 esac 37 esac
38 done 38 done
39 39
40--
411.8.3.1
42
diff --git a/meta/recipes-extended/bash/bash/use_aclocal.patch b/meta/recipes-extended/bash/bash/use_aclocal.patch
deleted file mode 100644
index bd6870b386..0000000000
--- a/meta/recipes-extended/bash/bash/use_aclocal.patch
+++ /dev/null
@@ -1,70 +0,0 @@
1From d1bf23817afffd5917b74da6946e0c3b7e63e336 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Mon, 28 Dec 2020 21:04:27 +0100
4Subject: [PATCH] bash: update 5.0 -> 5.1
5
6Including m4 files directly like this confuses autotools.bbclass, remove
7the references and rely upon aclocal to collect the m4 files together
8as needed instead making it work like other autotools based projects.
9
10Upstream-Status: Inappropriate [OE configuration specific]
11RP 2021/1/20
12
13---
14 configure.ac | 43 -------------------------------------------
15 1 file changed, 43 deletions(-)
16
17diff --git a/configure.ac b/configure.ac
18index 50a6e20..a3b5bd7 100644
19--- a/configure.ac
20+++ b/configure.ac
21@@ -710,49 +710,6 @@ if test x$SIZE = x; then
22 fi
23 AC_SUBST(SIZE)
24
25-m4_include([m4/stat-time.m4])
26-m4_include([m4/timespec.m4])
27-
28-m4_include([m4/strtoimax.m4])
29-
30-dnl include files for gettext
31-
32-m4_include([m4/codeset.m4])
33-m4_include([m4/extern-inline.m4])
34-m4_include([m4/fcntl-o.m4])
35-m4_include([m4/gettext.m4])
36-m4_include([m4/glibc2.m4])
37-m4_include([m4/glibc21.m4])
38-m4_include([m4/host-cpu-c-abi.m4])
39-m4_include([m4/iconv.m4])
40-m4_include([m4/intdiv0.m4])
41-m4_include([m4/intl.m4])
42-m4_include([m4/intlmacosx.m4])
43-m4_include([m4/intl-thread-locale.m4])
44-m4_include([m4/intmax.m4])
45-m4_include([m4/inttypes-pri.m4])
46-m4_include([m4/inttypes.m4])
47-m4_include([m4/inttypes_h.m4])
48-m4_include([m4/lcmessage.m4])
49-m4_include([m4/lib-ld.m4])
50-m4_include([m4/lib-link.m4])
51-m4_include([m4/lib-prefix.m4])
52-m4_include([m4/lock.m4])
53-m4_include([m4/nls.m4])
54-m4_include([m4/po.m4])
55-m4_include([m4/printf-posix.m4])
56-m4_include([m4/progtest.m4])
57-m4_include([m4/pthread_rwlock_rdlock.m4])
58-m4_include([m4/size_max.m4])
59-m4_include([m4/stdint_h.m4])
60-m4_include([m4/threadlib.m4])
61-m4_include([m4/uintmax_t.m4])
62-m4_include([m4/ulonglong.m4])
63-m4_include([m4/visibility.m4])
64-m4_include([m4/wchar_t.m4])
65-m4_include([m4/wint_t.m4])
66-m4_include([m4/xsize.m4])
67-
68 dnl C compiler characteristics
69 AC_C_CONST
70 AC_C_INLINE
diff --git a/meta/recipes-extended/bash/bash_5.2.21.bb b/meta/recipes-extended/bash/bash_5.2.37.bb
index 46d921bbe6..2c0645cbd9 100644
--- a/meta/recipes-extended/bash/bash_5.2.21.bb
+++ b/meta/recipes-extended/bash/bash_5.2.37.bb
@@ -11,13 +11,18 @@ SRC_URI = "${GNU_MIRROR}/bash/${BP}.tar.gz;name=tarball \
11 file://run-ptest \ 11 file://run-ptest \
12 file://run-bash-ptests \ 12 file://run-bash-ptests \
13 file://fix-run-builtins.patch \ 13 file://fix-run-builtins.patch \
14 file://use_aclocal.patch \
15 file://0001-changes-to-SIGINT-handler-while-waiting-for-a-child-.patch \ 14 file://0001-changes-to-SIGINT-handler-while-waiting-for-a-child-.patch \
15 file://fix-filesubst-errexit.patch \
16 " 16 "
17 17
18SRC_URI[tarball.sha256sum] = "c8e31bdc59b69aaffc5b36509905ba3e5cbb12747091d27b4b977f078560d5b8" 18SRC_URI[tarball.sha256sum] = "9599b22ecd1d5787ad7d3b7bf0c59f312b3396d1e281175dd1f8a4014da621ff"
19 19
20DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" 20DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}"
21DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" 21DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}"
22 22
23CFLAGS += "-std=gnu17"
24# mkbuiltins.c is built with native toolchain and needs gnu17 as well:
25# http://errors.yoctoproject.org/Errors/Details/853016/
26BUILD_CFLAGS += "-std=gnu17"
27
23BBCLASSEXTEND = "nativesdk" 28BBCLASSEXTEND = "nativesdk"