summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/bash/bash
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2019-05-12 16:16:24 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-12 17:55:11 +0100
commit777b33a77cc357dfe8c3adc3cd952dcd53cd8976 (patch)
treef22104d9d6467ea1e7108548b6774bc317a5cced /meta/recipes-extended/bash/bash
parent217d4d5660976ecc79aaf919ecaaedd080023f7d (diff)
downloadpoky-777b33a77cc357dfe8c3adc3cd952dcd53cd8976.tar.gz
bash: upgrade 4.4.18 -> 5.0
- Rebase build-tests.patch and execute_cmd.patch to 5.0 - Drop 0001-help-fix-printf-format-security-warning.patch and pathexp-dep.patch, upstream has fixed them in commit [d233b48 bash-5.0 distribution sources and documentation] (From OE-Core rev: db044235e72a1519a081c4f6541f7d7cfe70d49f) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/bash/bash')
-rw-r--r--meta/recipes-extended/bash/bash/0001-help-fix-printf-format-security-warning.patch35
-rw-r--r--meta/recipes-extended/bash/bash/build-tests.patch7
-rw-r--r--meta/recipes-extended/bash/bash/execute_cmd.patch19
-rw-r--r--meta/recipes-extended/bash/bash/pathexp-dep.patch13
4 files changed, 19 insertions, 55 deletions
diff --git a/meta/recipes-extended/bash/bash/0001-help-fix-printf-format-security-warning.patch b/meta/recipes-extended/bash/bash/0001-help-fix-printf-format-security-warning.patch
deleted file mode 100644
index 5405c84c78..0000000000
--- a/meta/recipes-extended/bash/bash/0001-help-fix-printf-format-security-warning.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From e5837a42f8f48a6a721805ff8f7fcd32861d09ca Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <adraszik@tycoint.com>
3Date: Tue, 26 Jul 2016 13:09:47 +0100
4Subject: [PATCH] help: fix printf() format security warning
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9| ../../bash-4.3.30/builtins/../../bash-4.3.30/builtins/help.def: In function 'help_builtin':
10| ../../bash-4.3.30/builtins/../../bash-4.3.30/builtins/help.def:130:7: error: format not a string literal and no format arguments [-Werror=format-security]
11| printf (ngettext ("Shell commands matching keyword `", "Shell commands matching keywords `", (list->next ? 2 : 1)));
12| ^~~~~~
13
14Signed-off-by: André Draszik <adraszik@tycoint.com>
15---
16Upstream-Status: Pending
17 builtins/help.def | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/builtins/help.def b/builtins/help.def
21index 1894f17..cf624c6 100644
22--- a/builtins/help.def
23+++ b/builtins/help.def
24@@ -127,7 +127,7 @@ help_builtin (list)
25
26 if (glob_pattern_p (list->word->word))
27 {
28- printf (ngettext ("Shell commands matching keyword `", "Shell commands matching keywords `", (list->next ? 2 : 1)));
29+ printf ("%s", ngettext ("Shell commands matching keyword `", "Shell commands matching keywords `", (list->next ? 2 : 1)));
30 print_word_list (list, ", ");
31 printf ("'\n\n");
32 }
33--
342.8.1
35
diff --git a/meta/recipes-extended/bash/bash/build-tests.patch b/meta/recipes-extended/bash/bash/build-tests.patch
index 73a81b60da..5f2dae94a1 100644
--- a/meta/recipes-extended/bash/bash/build-tests.patch
+++ b/meta/recipes-extended/bash/bash/build-tests.patch
@@ -2,15 +2,18 @@ Add 'ptest' target to Makefile, to run tests without checking dependencies.
2 2
3Upstream-Status: Pending 3Upstream-Status: Pending
4Signed-off-by: Anders Roxell <anders.roxell@enea.com> 4Signed-off-by: Anders Roxell <anders.roxell@enea.com>
5
6Rebase to 5.0
5Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 7Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
6--- 8---
7 Makefile.in | 24 +++++++++++++++++++----- 9 Makefile.in | 24 +++++++++++++++++++-----
8 1 file changed, 19 insertions(+), 5 deletions(-) 10 1 file changed, 19 insertions(+), 5 deletions(-)
9 11
10diff --git a/Makefile.in b/Makefile.in 12diff --git a/Makefile.in b/Makefile.in
13index 5fcb44b..de1c255 100644
11--- a/Makefile.in 14--- a/Makefile.in
12+++ b/Makefile.in 15+++ b/Makefile.in
13@@ -848,20 +848,34 @@ maybe-clean: 16@@ -932,20 +932,34 @@ maybe-clean:
14 fi 17 fi
15 18
16 recho$(EXEEXT): $(SUPPORT_SRC)recho.c 19 recho$(EXEEXT): $(SUPPORT_SRC)recho.c
@@ -51,5 +54,5 @@ diff --git a/Makefile.in b/Makefile.in
51 PATH=$(BUILD_DIR)/tests:$$PATH THIS_SH=$(THIS_SH) $(SHELL) ${TESTSCRIPT} ) 54 PATH=$(BUILD_DIR)/tests:$$PATH THIS_SH=$(THIS_SH) $(SHELL) ${TESTSCRIPT} )
52 55
53-- 56--
541.8.1.2 572.7.4
55 58
diff --git a/meta/recipes-extended/bash/bash/execute_cmd.patch b/meta/recipes-extended/bash/bash/execute_cmd.patch
index 9970b4d8f9..7a9e9a902f 100644
--- a/meta/recipes-extended/bash/bash/execute_cmd.patch
+++ b/meta/recipes-extended/bash/bash/execute_cmd.patch
@@ -1,10 +1,16 @@
1Upstream-Status: Inappropriate [embedded specific] 1Upstream-Status: Inappropriate [embedded specific]
2 2
3Index: execute_cmd.c 3Rebase to 5.0
4=================================================================== 4Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
5--- execute_cmd.c.orig 5---
6+++ execute_cmd.c 6 execute_cmd.c | 6 +++++-
7@@ -2459,7 +2459,11 @@ execute_pipeline (command, asynchronous, 7 1 file changed, 5 insertions(+), 1 deletion(-)
8
9diff --git a/execute_cmd.c b/execute_cmd.c
10index f1d74bf..31674b4 100644
11--- a/execute_cmd.c
12+++ b/execute_cmd.c
13@@ -2567,7 +2567,11 @@ execute_pipeline (command, asynchronous, pipe_in, pipe_out, fds_to_close)
8 /* If the `lastpipe' option is set with shopt, and job control is not 14 /* If the `lastpipe' option is set with shopt, and job control is not
9 enabled, execute the last element of non-async pipelines in the 15 enabled, execute the last element of non-async pipelines in the
10 current shell environment. */ 16 current shell environment. */
@@ -17,3 +23,6 @@ Index: execute_cmd.c
17 { 23 {
18 lstdin = move_to_high_fd (0, 1, -1); 24 lstdin = move_to_high_fd (0, 1, -1);
19 if (lstdin > 0) 25 if (lstdin > 0)
26--
272.7.4
28
diff --git a/meta/recipes-extended/bash/bash/pathexp-dep.patch b/meta/recipes-extended/bash/bash/pathexp-dep.patch
deleted file mode 100644
index e05bbda317..0000000000
--- a/meta/recipes-extended/bash/bash/pathexp-dep.patch
+++ /dev/null
@@ -1,13 +0,0 @@
1pathexp includes libintl.h but doesn't depend on it, thus a build race can occur.
2
3Upstream-Status: Submitted (https://savannah.gnu.org/patch/index.php?9503)
4Signed-off-by: Ross Burton <ross.burton@intel.com>
5
6diff --git a/Makefile.in b/Makefile.in
7index c7b62bc0..241cbf12 100644
8--- a/Makefile.in
9+++ b/Makefile.in
10@@ -1281,2 +1281,3 @@ nojobs.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
11 y.tab.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
12+pathexp.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h
13 pcomplete.o: bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h