diff options
Diffstat (limited to 'meta/recipes-extended')
6 files changed, 64 insertions, 96 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 @@ | |||
1 | From e5837a42f8f48a6a721805ff8f7fcd32861d09ca Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <adraszik@tycoint.com> | ||
3 | Date: Tue, 26 Jul 2016 13:09:47 +0100 | ||
4 | Subject: [PATCH] help: fix printf() format security warning | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-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 | |||
14 | Signed-off-by: André Draszik <adraszik@tycoint.com> | ||
15 | --- | ||
16 | Upstream-Status: Pending | ||
17 | builtins/help.def | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/builtins/help.def b/builtins/help.def | ||
21 | index 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 | -- | ||
34 | 2.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 | ||
3 | Upstream-Status: Pending | 3 | Upstream-Status: Pending |
4 | Signed-off-by: Anders Roxell <anders.roxell@enea.com> | 4 | Signed-off-by: Anders Roxell <anders.roxell@enea.com> |
5 | |||
6 | Rebase to 5.0 | ||
5 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 7 | Signed-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 | ||
10 | diff --git a/Makefile.in b/Makefile.in | 12 | diff --git a/Makefile.in b/Makefile.in |
13 | index 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 | -- |
54 | 1.8.1.2 | 57 | 2.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 @@ | |||
1 | Upstream-Status: Inappropriate [embedded specific] | 1 | Upstream-Status: Inappropriate [embedded specific] |
2 | 2 | ||
3 | Index: execute_cmd.c | 3 | Rebase to 5.0 |
4 | =================================================================== | 4 | Signed-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 | |||
9 | diff --git a/execute_cmd.c b/execute_cmd.c | ||
10 | index 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 | -- | ||
27 | 2.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 @@ | |||
1 | pathexp includes libintl.h but doesn't depend on it, thus a build race can occur. | ||
2 | |||
3 | Upstream-Status: Submitted (https://savannah.gnu.org/patch/index.php?9503) | ||
4 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
5 | |||
6 | diff --git a/Makefile.in b/Makefile.in | ||
7 | index 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 | ||
diff --git a/meta/recipes-extended/bash/bash_4.4.18.bb b/meta/recipes-extended/bash/bash_4.4.18.bb deleted file mode 100644 index 8fa0978d43..0000000000 --- a/meta/recipes-extended/bash/bash_4.4.18.bb +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | require bash.inc | ||
2 | |||
3 | # GPLv2+ (< 4.0), GPLv3+ (>= 4.0) | ||
4 | LICENSE = "GPLv3+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
6 | |||
7 | SRC_URI = "${GNU_MIRROR}/bash/${BP}.tar.gz;name=tarball \ | ||
8 | ${GNU_MIRROR}/bash/bash-4.4-patches/bash44-019;apply=yes;striplevel=0;name=patch019 \ | ||
9 | ${GNU_MIRROR}/bash/bash-4.4-patches/bash44-020;apply=yes;striplevel=0;name=patch020 \ | ||
10 | ${GNU_MIRROR}/bash/bash-4.4-patches/bash44-021;apply=yes;striplevel=0;name=patch021 \ | ||
11 | ${GNU_MIRROR}/bash/bash-4.4-patches/bash44-022;apply=yes;striplevel=0;name=patch022 \ | ||
12 | ${GNU_MIRROR}/bash/bash-4.4-patches/bash44-023;apply=yes;striplevel=0;name=patch023 \ | ||
13 | file://execute_cmd.patch;striplevel=0 \ | ||
14 | file://mkbuiltins_have_stringize.patch \ | ||
15 | file://build-tests.patch \ | ||
16 | file://test-output.patch \ | ||
17 | file://fix-run-coproc-run-heredoc-run-execscript-run-test-f.patch \ | ||
18 | file://run-ptest \ | ||
19 | file://fix-run-builtins.patch \ | ||
20 | file://0001-help-fix-printf-format-security-warning.patch \ | ||
21 | file://pathexp-dep.patch \ | ||
22 | " | ||
23 | |||
24 | SRC_URI[tarball.md5sum] = "518e2c187cc11a17040f0915dddce54e" | ||
25 | SRC_URI[tarball.sha256sum] = "604d9eec5e4ed5fd2180ee44dd756ddca92e0b6aa4217bbab2b6227380317f23" | ||
26 | |||
27 | SRC_URI[patch019.md5sum] = "8f43e1d277b02f3319a34c1cd4a4ff3e" | ||
28 | SRC_URI[patch019.sha256sum] = "27170d6edfe8819835407fdc08b401d2e161b1400fe9d0c5317a51104c89c11e" | ||
29 | SRC_URI[patch020.md5sum] = "5217ff08c444446ec306dce60437c288" | ||
30 | SRC_URI[patch020.sha256sum] = "1840e2cbf26ba822913662f74037594ed562361485390c52813b38156c99522c" | ||
31 | SRC_URI[patch021.md5sum] = "282c7d9b38da8005d25b4f816328a2f4" | ||
32 | SRC_URI[patch021.sha256sum] = "bd8f59054a763ec1c64179ad5cb607f558708a317c2bdb22b814e3da456374c1" | ||
33 | SRC_URI[patch022.md5sum] = "0b709c9d7f8e6cf267a8b863efb899f7" | ||
34 | SRC_URI[patch022.sha256sum] = "45331f0936e36ab91bfe44b936e33ed8a1b1848fa896e8a1d0f2ef74f297cb79" | ||
35 | SRC_URI[patch023.md5sum] = "fe2e0ca4cf9409ff0e9428e1236f983e" | ||
36 | SRC_URI[patch023.sha256sum] = "4fec236f3fbd3d0c47b893fdfa9122142a474f6ef66c20ffb6c0f4864dd591b6" | ||
37 | |||
38 | DEBUG_OPTIMIZATION_append_armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" | ||
39 | DEBUG_OPTIMIZATION_append_armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" | ||
40 | |||
41 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-extended/bash/bash_5.0.bb b/meta/recipes-extended/bash/bash_5.0.bb new file mode 100644 index 0000000000..e60e5304a5 --- /dev/null +++ b/meta/recipes-extended/bash/bash_5.0.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | require bash.inc | ||
2 | |||
3 | # GPLv2+ (< 4.0), GPLv3+ (>= 4.0) | ||
4 | LICENSE = "GPLv3+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
6 | |||
7 | SRC_URI = "${GNU_MIRROR}/bash/${BP}.tar.gz;name=tarball \ | ||
8 | ${GNU_MIRROR}/bash/bash-${PV}-patches/bash50-001;apply=yes;striplevel=0;name=patch001 \ | ||
9 | ${GNU_MIRROR}/bash/bash-${PV}-patches/bash50-002;apply=yes;striplevel=0;name=patch002 \ | ||
10 | ${GNU_MIRROR}/bash/bash-${PV}-patches/bash50-003;apply=yes;striplevel=0;name=patch003 \ | ||
11 | ${GNU_MIRROR}/bash/bash-${PV}-patches/bash50-004;apply=yes;striplevel=0;name=patch004 \ | ||
12 | ${GNU_MIRROR}/bash/bash-${PV}-patches/bash50-005;apply=yes;striplevel=0;name=patch005 \ | ||
13 | ${GNU_MIRROR}/bash/bash-${PV}-patches/bash50-006;apply=yes;striplevel=0;name=patch006 \ | ||
14 | ${GNU_MIRROR}/bash/bash-${PV}-patches/bash50-007;apply=yes;striplevel=0;name=patch007 \ | ||
15 | file://execute_cmd.patch \ | ||
16 | file://mkbuiltins_have_stringize.patch \ | ||
17 | file://build-tests.patch \ | ||
18 | file://test-output.patch \ | ||
19 | file://fix-run-coproc-run-heredoc-run-execscript-run-test-f.patch \ | ||
20 | file://run-ptest \ | ||
21 | file://fix-run-builtins.patch \ | ||
22 | " | ||
23 | |||
24 | SRC_URI[tarball.md5sum] = "2b44b47b905be16f45709648f671820b" | ||
25 | SRC_URI[tarball.sha256sum] = "b4a80f2ac66170b2913efbfb9f2594f1f76c7b1afd11f799e22035d63077fb4d" | ||
26 | |||
27 | SRC_URI[patch001.md5sum] = "b026862ab596a5883bb4f0d1077a3819" | ||
28 | SRC_URI[patch001.sha256sum] = "f2fe9e1f0faddf14ab9bfa88d450a75e5d028fedafad23b88716bd657c737289" | ||
29 | SRC_URI[patch002.md5sum] = "2f4a7787365790ae57f36b311701ea7e" | ||
30 | SRC_URI[patch002.sha256sum] = "87e87d3542e598799adb3e7e01c8165bc743e136a400ed0de015845f7ff68707" | ||
31 | SRC_URI[patch003.md5sum] = "af7f2dd93fd5429fb5e9a642ff74f87d" | ||
32 | SRC_URI[patch003.sha256sum] = "4eebcdc37b13793a232c5f2f498a5fcbf7da0ecb3da2059391c096db620ec85b" | ||
33 | SRC_URI[patch004.md5sum] = "b60545b273bfa4e00a760f2c648bed9c" | ||
34 | SRC_URI[patch004.sha256sum] = "14447ad832add8ecfafdce5384badd933697b559c4688d6b9e3d36ff36c62f08" | ||
35 | SRC_URI[patch005.md5sum] = "875a0bedf48b74e453e3997c84b5d8a4" | ||
36 | SRC_URI[patch005.sha256sum] = "5bf54dd9bd2c211d2bfb34a49e2c741f2ed5e338767e9ce9f4d41254bf9f8276" | ||
37 | SRC_URI[patch006.md5sum] = "4a8ee95adb72c3aba03d9e8c9f96ece6" | ||
38 | SRC_URI[patch006.sha256sum] = "d68529a6ff201b6ff5915318ab12fc16b8a0ebb77fda3308303fcc1e13398420" | ||
39 | SRC_URI[patch007.md5sum] = "411560d81fde2dc5b17b83c3f3b58c6f" | ||
40 | SRC_URI[patch007.sha256sum] = "17b41e7ee3673d8887dd25992417a398677533ab8827938aa41fad70df19af9b" | ||
41 | |||
42 | DEBUG_OPTIMIZATION_append_armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" | ||
43 | DEBUG_OPTIMIZATION_append_armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" | ||
44 | |||
45 | BBCLASSEXTEND = "nativesdk" | ||