summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/bash
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2024-08-22 11:34:52 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-08-23 09:12:37 +0100
commit5fc95799406a61c574f80648b525b7894fdb8f0f (patch)
treed29956a7837dc479e944875b880514b88fc19317 /meta/recipes-extended/bash
parent468438284410d6001734b4b82cd789a467eabad0 (diff)
downloadpoky-5fc95799406a61c574f80648b525b7894fdb8f0f.tar.gz
bash: upgrade 5.2.21 -> 5.2.32
(From OE-Core rev: f70eebdf5b60d0ee7b1bbcdff1135801b2654a08) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/bash')
-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/0001-fix-c99.patch2
-rw-r--r--meta/recipes-extended/bash/bash/build-tests.patch7
-rw-r--r--meta/recipes-extended/bash/bash/fix-filesubst-errexit.patch7
-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.patch3
-rw-r--r--meta/recipes-extended/bash/bash_5.2.32.bb (renamed from meta/recipes-extended/bash/bash_5.2.21.bb)2
9 files changed, 38 insertions, 42 deletions
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/0001-fix-c99.patch b/meta/recipes-extended/bash/bash/0001-fix-c99.patch
index aa810f7d4e..abd83d09af 100644
--- a/meta/recipes-extended/bash/bash/0001-fix-c99.patch
+++ b/meta/recipes-extended/bash/bash/0001-fix-c99.patch
@@ -1,4 +1,4 @@
1From e9ed388e760ec33dcf9e72c639946c0d0abeec26 Mon Sep 17 00:00:00 2001 1From e8ec2d75a52bdc93c83a679a71a68f4033033b8b Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com> 2From: Ross Burton <ross.burton@arm.com>
3Date: Wed, 19 Jun 2024 12:57:39 +0000 3Date: Wed, 19 Jun 2024 12:57:39 +0000
4Subject: [PATCH] Fix C99 problems 4Subject: [PATCH] Fix C99 problems
diff --git a/meta/recipes-extended/bash/bash/build-tests.patch b/meta/recipes-extended/bash/bash/build-tests.patch
index c1b9b8261f..4cce1ba993 100644
--- a/meta/recipes-extended/bash/bash/build-tests.patch
+++ b/meta/recipes-extended/bash/bash/build-tests.patch
@@ -1,4 +1,4 @@
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
@@ -9,16 +9,15 @@ Signed-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
index 60f1852316..c5082ee355 100644
--- a/meta/recipes-extended/bash/bash/fix-filesubst-errexit.patch
+++ b/meta/recipes-extended/bash/bash/fix-filesubst-errexit.patch
@@ -1,4 +1,4 @@
1From 59ddfda14e3c9aa6286bb4c4c0748f7c1324a65a Mon Sep 17 00:00:00 2001 1From 16951b74971c7fd38fd036dac1410a9e53cbe736 Mon Sep 17 00:00:00 2001
2From: Chet Ramey <chet.ramey@case.edu> 2From: Chet Ramey <chet.ramey@case.edu>
3Date: Fri, 7 Apr 2023 00:28:46 -0700 3Date: Fri, 7 Apr 2023 00:28:46 -0700
4Subject: [PATCH] $(<nosuchfile) is no longer a fatal error with errexit 4Subject: [PATCH] $(<nosuchfile) is no longer a fatal error with errexit
@@ -17,7 +17,7 @@ Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
17 1 file changed, 1 insertion(+), 1 deletion(-) 17 1 file changed, 1 insertion(+), 1 deletion(-)
18 18
19diff --git a/builtins/evalstring.c b/builtins/evalstring.c 19diff --git a/builtins/evalstring.c b/builtins/evalstring.c
20index df3dd68e2a7e..6612081cd646 100644 20index 53a7c0b..c5075cc 100644
21--- a/builtins/evalstring.c 21--- a/builtins/evalstring.c
22+++ b/builtins/evalstring.c 22+++ b/builtins/evalstring.c
23@@ -753,7 +753,7 @@ open_redir_file (r, fnp) 23@@ -753,7 +753,7 @@ open_redir_file (r, fnp)
@@ -29,6 +29,3 @@ index df3dd68e2a7e..6612081cd646 100644
29 free (fn); 29 free (fn);
30 if (fnp) 30 if (fnp)
31 *fnp = 0; 31 *fnp = 0;
32--
332.40.0
34
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
index bd6870b386..e966b037a2 100644
--- a/meta/recipes-extended/bash/bash/use_aclocal.patch
+++ b/meta/recipes-extended/bash/bash/use_aclocal.patch
@@ -1,4 +1,4 @@
1From d1bf23817afffd5917b74da6946e0c3b7e63e336 Mon Sep 17 00:00:00 2001 1From b3a64702fa1978463c01bd5d9fe711e4628aba1e Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Mon, 28 Dec 2020 21:04:27 +0100 3Date: Mon, 28 Dec 2020 21:04:27 +0100
4Subject: [PATCH] bash: update 5.0 -> 5.1 4Subject: [PATCH] bash: update 5.0 -> 5.1
@@ -9,7 +9,6 @@ as needed instead making it work like other autotools based projects.
9 9
10Upstream-Status: Inappropriate [OE configuration specific] 10Upstream-Status: Inappropriate [OE configuration specific]
11RP 2021/1/20 11RP 2021/1/20
12
13--- 12---
14 configure.ac | 43 ------------------------------------------- 13 configure.ac | 43 -------------------------------------------
15 1 file changed, 43 deletions(-) 14 1 file changed, 43 deletions(-)
diff --git a/meta/recipes-extended/bash/bash_5.2.21.bb b/meta/recipes-extended/bash/bash_5.2.32.bb
index ccfe5c47a7..b159c0232f 100644
--- a/meta/recipes-extended/bash/bash_5.2.21.bb
+++ b/meta/recipes-extended/bash/bash_5.2.32.bb
@@ -17,7 +17,7 @@ SRC_URI = "${GNU_MIRROR}/bash/${BP}.tar.gz;name=tarball \
17 file://0001-fix-c99.patch \ 17 file://0001-fix-c99.patch \
18 " 18 "
19 19
20SRC_URI[tarball.sha256sum] = "c8e31bdc59b69aaffc5b36509905ba3e5cbb12747091d27b4b977f078560d5b8" 20SRC_URI[tarball.sha256sum] = "d3ef80d2b67d8cbbe4d3265c63a72c46f9b278ead6e0e06d61801b58f23f50b5"
21 21
22DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" 22DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}"
23DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" 23DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}"