diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-11-14 20:00:55 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-15 09:38:37 +0000 |
commit | e8a9e74903763e244b2683fb1ffdeaacaf86363f (patch) | |
tree | 1ea46d2d6a5dc05edcb4e550e4d070628153a3d0 /meta/recipes-extended/bash | |
parent | d2b7bf95fccb6c09b1a5d727f01b3c7b7b3de125 (diff) | |
download | poky-e8a9e74903763e244b2683fb1ffdeaacaf86363f.tar.gz |
bash: update 5.1.16 -> 5.2.9
Remove patches:
execute_cmd.patch
(purpose of patch unclear)
makerace.patch/makerace2.patch
(merged upstream)
(From OE-Core rev: 9a12d977cb4a9a5369eebd6b47ffe35c2cb4fca8)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/bash')
-rw-r--r-- | meta/recipes-extended/bash/bash/execute_cmd.patch | 28 | ||||
-rw-r--r-- | meta/recipes-extended/bash/bash/makerace.patch | 52 | ||||
-rw-r--r-- | meta/recipes-extended/bash/bash/makerace2.patch | 98 | ||||
-rw-r--r-- | meta/recipes-extended/bash/bash/use_aclocal.patch | 27 | ||||
-rw-r--r-- | meta/recipes-extended/bash/bash_5.2.9.bb (renamed from meta/recipes-extended/bash/bash_5.1.16.bb) | 5 |
5 files changed, 20 insertions, 190 deletions
diff --git a/meta/recipes-extended/bash/bash/execute_cmd.patch b/meta/recipes-extended/bash/bash/execute_cmd.patch deleted file mode 100644 index 7a9e9a902f..0000000000 --- a/meta/recipes-extended/bash/bash/execute_cmd.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | Upstream-Status: Inappropriate [embedded specific] | ||
2 | |||
3 | Rebase to 5.0 | ||
4 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
5 | --- | ||
6 | execute_cmd.c | 6 +++++- | ||
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) | ||
14 | /* If the `lastpipe' option is set with shopt, and job control is not | ||
15 | enabled, execute the last element of non-async pipelines in the | ||
16 | current shell environment. */ | ||
17 | - if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0) | ||
18 | + if (lastpipe_opt && | ||
19 | +#if defined(JOB_CONTROL) | ||
20 | + job_control == 0 && | ||
21 | +#endif | ||
22 | + asynchronous == 0 && pipe_out == NO_PIPE && prev > 0) | ||
23 | { | ||
24 | lstdin = move_to_high_fd (0, 1, -1); | ||
25 | if (lstdin > 0) | ||
26 | -- | ||
27 | 2.7.4 | ||
28 | |||
diff --git a/meta/recipes-extended/bash/bash/makerace.patch b/meta/recipes-extended/bash/bash/makerace.patch deleted file mode 100644 index 9bd7c280fe..0000000000 --- a/meta/recipes-extended/bash/bash/makerace.patch +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | We're seeing pipesize.h being created in parallel: | ||
2 | |||
3 | /bin/sh ../../bash-5.1/builtins/psize.sh > pipesize.h | ||
4 | /bin/sh ../../bash-5.1/builtins/psize.sh > pipesize.h | ||
5 | |||
6 | ./mkbuiltins -D ../../bash-5.1/builtins ../../bash-5.1/builtins/ulimit.def | ||
7 | x86_64-pokysdk-linux-gcc --sysroot=/home/pokybuild/yocto-worker/multilib/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-bash/5.1-r0/recipe-sysroot -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I../../bash-5.1 -I../../bash-5.1/include -I../../bash-5.1/lib -I../../bash-5.1/builtins -O2 -pipe -fmacro-prefix-map=/home/pokybuild/yocto-worker/multilib/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-bash/5.1-r0=/usr/src/debug/nativesdk-bash/5.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/multilib/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-bash/5.1-r0=/usr/src/debug/nativesdk-bash/5.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/multilib/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-bash/5.1-r0/recipe-sysroot= -fdebug-prefix-map=/home/pokybuild/yocto-worker/multilib/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-bash/5.1-r0/recipe-sysroot-native= ulimit.c || ( rm -f ulimit.c ; exit 1 ) | ||
8 | make[1]: Leaving directory '/home/pokybuild/yocto-worker/multilib/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-bash/5.1-r0/build/builtins' | ||
9 | rm -f redir.o | ||
10 | x86_64-pokysdk-linux-gcc --sysroot=/home/pokybuild/yocto-worker/multilib/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-bash/5.1-r0/recipe-sysroot -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-pokysdk-linux-gnu"' -DCONF_VENDOR='"pokysdk"' -DLOCALEDIR='"/opt/poky/3.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I../bash-5.1 -I../bash-5.1/include -I../bash-5.1/lib -O2 -pipe -fmacro-prefix-map=/home/pokybuild/yocto-worker/multilib/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-bash/5.1-r0=/usr/src/debug/nativesdk-bash/5.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/multilib/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-bash/5.1-r0=/usr/src/debug/nativesdk-bash/5.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/multilib/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-bash/5.1-r0/recipe-sysroot= -fdebug-prefix-map=/home/pokybuild/yocto-worker/multilib/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-bash/5.1-r0/recipe-sysroot-native= -c ../bash-5.1/redir.c | ||
11 | In file included from ../../bash-5.1/builtins/../../bash-5.1/builtins/ulimit.def:95: | ||
12 | pipesize.h:9:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token | ||
13 | 9 | bash-5.1/builtins/psize.sh: 37: ../../bash-5.1/builtins/psize.sh: ./psize.aux: Text file busy | ||
14 | | ^ | ||
15 | make[1]: *** [Makefile:119: ulimit.o] Error 1 | ||
16 | make[1]: Leaving directory '/home/pokybuild/yocto-worker/multilib/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-bash/5.1-r0/build/builtins' | ||
17 | make: *** [Makefile:737: builtins/libbuiltins.a] Error 1 | ||
18 | make: *** Waiting for unfinished jobs.... | ||
19 | In file included from ../bash-5.1/redir.c:61: | ||
20 | ./builtins/pipesize.h:9:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token | ||
21 | 9 | bash-5.1/builtins/psize.sh: 37: ../../bash-5.1/builtins/psize.sh: ./psize.aux: Text file busy | ||
22 | | ^ | ||
23 | make: *** [Makefile:101: redir.o] Error 1 | ||
24 | WARNING: exit code 1 from a shell command. | ||
25 | |||
26 | which happens since builtins/ulimit.o depends on pipesize.h as well as a top | ||
27 | level dependency. This means: | ||
28 | |||
29 | @(cd $(DEFDIR) && $(MAKE) $(MFLAGS) pipesize.h ) || exit 1 | ||
30 | |||
31 | races with: | ||
32 | |||
33 | @(cd $(DEFDIR) && $(MAKE) $(MFLAGS) DEBUG=${DEBUG} targets ) || exit 1 | ||
34 | |||
35 | Hack around this by forcing BUILTINS_LIBRARY onto pipesize.h as a dependency. | ||
36 | |||
37 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-bash/2021-01/msg00152.html] | ||
38 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
39 | |||
40 | Index: bash-5.1/Makefile.in | ||
41 | =================================================================== | ||
42 | --- bash-5.1.orig/Makefile.in | ||
43 | +++ bash-5.1/Makefile.in | ||
44 | @@ -746,7 +746,7 @@ ${DEFDIR}/bashgetopt.o: $(BUILTIN_SRCDIR | ||
45 | ${DEFDIR}/builtext.h: $(BUILTIN_DEFS) | ||
46 | @(cd $(DEFDIR) && $(MAKE) $(MFLAGS) builtext.h ) || exit 1 | ||
47 | |||
48 | -${DEFDIR}/pipesize.h: | ||
49 | +${DEFDIR}/pipesize.h: $(BUILTINS_LIBRARY) | ||
50 | @(cd $(DEFDIR) && $(MAKE) $(MFLAGS) pipesize.h ) || exit 1 | ||
51 | |||
52 | $(SDIR)/man2html$(EXEEXT): ${SUPPORT_SRC}/man2html.c | ||
diff --git a/meta/recipes-extended/bash/bash/makerace2.patch b/meta/recipes-extended/bash/bash/makerace2.patch deleted file mode 100644 index abb51a5086..0000000000 --- a/meta/recipes-extended/bash/bash/makerace2.patch +++ /dev/null | |||
@@ -1,98 +0,0 @@ | |||
1 | The main makefile can call mkbuiltins from multiple different codepaths in parallel. | ||
2 | When called, it moves the existing files out the way and creates new ones, then | ||
3 | compares which will break the build if timing is unlucky. | ||
4 | |||
5 | The root of the problem is mkbuiltins.c creating a file but also referencing that | ||
6 | file under the same name. By modifing it to allow the final name and the temp name | ||
7 | to be specified, we can avoid the original reason for the moving of files around. | ||
8 | This allows them to be created under a new name and then replaced if changed, | ||
9 | removing any race windows around accessing the files whilst they've been | ||
10 | moved or are being rewritten. | ||
11 | |||
12 | See [YOCTO #14227] | ||
13 | |||
14 | Upstream-Status: Submitted [https://savannah.gnu.org/patch/index.php?10210] | ||
15 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
16 | |||
17 | Index: bash-5.1.8/builtins/Makefile.in | ||
18 | =================================================================== | ||
19 | --- bash-5.1.8.orig/builtins/Makefile.in | ||
20 | +++ bash-5.1.8/builtins/Makefile.in | ||
21 | @@ -185,19 +185,17 @@ gen-helpfiles: tmpbuiltins.o gen-helpfil | ||
22 | $(CC_FOR_BUILD) ${CCFLAGS_FOR_BUILD} $(LDFLAGS_FOR_BUILD) -o $@ gen-helpfiles.o tmpbuiltins.o $(LIBS_FOR_BUILD) | ||
23 | |||
24 | builtext.h builtins.c: $(MKBUILTINS) $(DEFSRC) | ||
25 | - @-if test -f builtins.c; then mv -f builtins.c old-builtins.c; fi | ||
26 | - @-if test -f builtext.h; then mv -f builtext.h old-builtext.h; fi | ||
27 | - ./$(MKBUILTINS) -externfile builtext.h -structfile builtins.c \ | ||
28 | + ./$(MKBUILTINS) -externfile builtext-new.h -externfinalfile builtext.h -structfile builtins-new.c \ | ||
29 | -noproduction $(DIRECTDEFINE) $(HELPDIRDEFINE) $(HELPSTRINGS) $(DEFSRC) | ||
30 | - @-if cmp -s old-builtext.h builtext.h 2>/dev/null; then \ | ||
31 | - mv old-builtext.h builtext.h; \ | ||
32 | + @-if ! cmp -s builtext.h builtext-new.h 2>/dev/null; then \ | ||
33 | + mv builtext-new.h builtext.h; \ | ||
34 | else \ | ||
35 | - $(RM) old-builtext.h; \ | ||
36 | + $(RM) builtext-new.h; \ | ||
37 | fi | ||
38 | - @-if cmp -s old-builtins.c builtins.c 2>/dev/null; then \ | ||
39 | - mv old-builtins.c builtins.c; \ | ||
40 | + @-if ! cmp -s builtins.c builtins-new.c 2>/dev/null; then \ | ||
41 | + mv builtins-new.c builtins.c; \ | ||
42 | else \ | ||
43 | - $(RM) old-builtins.c; \ | ||
44 | + $(RM) builtins-new.c; \ | ||
45 | fi | ||
46 | |||
47 | helpdoc: gen-helpfiles | ||
48 | Index: bash-5.1.8/builtins/mkbuiltins.c | ||
49 | =================================================================== | ||
50 | --- bash-5.1.8.orig/builtins/mkbuiltins.c | ||
51 | +++ bash-5.1.8/builtins/mkbuiltins.c | ||
52 | @@ -113,6 +113,9 @@ char *struct_filename = (char *)NULL; | ||
53 | /* The name of the external declaration file. */ | ||
54 | char *extern_filename = (char *)NULL; | ||
55 | |||
56 | +/* The final name of the external declaration file. */ | ||
57 | +char *extern_final_filename = (char *)NULL; | ||
58 | + | ||
59 | /* Here is a structure for manipulating arrays of data. */ | ||
60 | typedef struct { | ||
61 | int size; /* Number of slots allocated to array. */ | ||
62 | @@ -230,6 +233,8 @@ main (argc, argv) | ||
63 | |||
64 | if (strcmp (arg, "-externfile") == 0) | ||
65 | extern_filename = argv[arg_index++]; | ||
66 | + else if (strcmp (arg, "-externfinalfile") == 0) | ||
67 | + extern_final_filename = argv[arg_index++]; | ||
68 | else if (strcmp (arg, "-structfile") == 0) | ||
69 | struct_filename = argv[arg_index++]; | ||
70 | else if (strcmp (arg, "-noproduction") == 0) | ||
71 | @@ -273,6 +278,9 @@ main (argc, argv) | ||
72 | } | ||
73 | } | ||
74 | |||
75 | + if (!extern_final_filename) | ||
76 | + extern_final_filename = extern_filename; | ||
77 | + | ||
78 | /* If there are no files to process, just quit now. */ | ||
79 | if (arg_index == argc) | ||
80 | exit (0); | ||
81 | @@ -1174,7 +1182,7 @@ write_file_headers (structfile, externfi | ||
82 | fprintf (structfile, "%s\n", structfile_header[i]); | ||
83 | |||
84 | fprintf (structfile, "#include \"%s\"\n", | ||
85 | - extern_filename ? extern_filename : "builtext.h"); | ||
86 | + extern_final_filename ? extern_final_filename : "builtext.h"); | ||
87 | |||
88 | fprintf (structfile, "#include \"bashintl.h\"\n"); | ||
89 | |||
90 | @@ -1184,7 +1192,7 @@ write_file_headers (structfile, externfi | ||
91 | if (externfile) | ||
92 | fprintf (externfile, | ||
93 | "/* %s - The list of builtins found in libbuiltins.a. */\n", | ||
94 | - extern_filename ? extern_filename : "builtext.h"); | ||
95 | + extern_final_filename ? extern_final_filename : "builtext.h"); | ||
96 | } | ||
97 | |||
98 | /* Write out any necessary closing information for | ||
diff --git a/meta/recipes-extended/bash/bash/use_aclocal.patch b/meta/recipes-extended/bash/bash/use_aclocal.patch index bebaa08bfe..bd6870b386 100644 --- a/meta/recipes-extended/bash/bash/use_aclocal.patch +++ b/meta/recipes-extended/bash/bash/use_aclocal.patch | |||
@@ -1,3 +1,8 @@ | |||
1 | From d1bf23817afffd5917b74da6946e0c3b7e63e336 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Mon, 28 Dec 2020 21:04:27 +0100 | ||
4 | Subject: [PATCH] bash: update 5.0 -> 5.1 | ||
5 | |||
1 | Including m4 files directly like this confuses autotools.bbclass, remove | 6 | Including m4 files directly like this confuses autotools.bbclass, remove |
2 | the references and rely upon aclocal to collect the m4 files together | 7 | the references and rely upon aclocal to collect the m4 files together |
3 | as needed instead making it work like other autotools based projects. | 8 | as needed instead making it work like other autotools based projects. |
@@ -5,17 +10,23 @@ as needed instead making it work like other autotools based projects. | |||
5 | Upstream-Status: Inappropriate [OE configuration specific] | 10 | Upstream-Status: Inappropriate [OE configuration specific] |
6 | RP 2021/1/20 | 11 | RP 2021/1/20 |
7 | 12 | ||
8 | Index: bash-5.1/configure.ac | 13 | --- |
9 | =================================================================== | 14 | configure.ac | 43 ------------------------------------------- |
10 | --- bash-5.1.orig/configure.ac | 15 | 1 file changed, 43 deletions(-) |
11 | +++ bash-5.1/configure.ac | 16 | |
12 | @@ -688,47 +688,6 @@ if test x$SIZE = x; then | 17 | diff --git a/configure.ac b/configure.ac |
18 | index 50a6e20..a3b5bd7 100644 | ||
19 | --- a/configure.ac | ||
20 | +++ b/configure.ac | ||
21 | @@ -710,49 +710,6 @@ if test x$SIZE = x; then | ||
13 | fi | 22 | fi |
14 | AC_SUBST(SIZE) | 23 | AC_SUBST(SIZE) |
15 | 24 | ||
16 | -m4_include([m4/stat-time.m4]) | 25 | -m4_include([m4/stat-time.m4]) |
17 | -m4_include([m4/timespec.m4]) | 26 | -m4_include([m4/timespec.m4]) |
18 | - | 27 | - |
28 | -m4_include([m4/strtoimax.m4]) | ||
29 | - | ||
19 | -dnl include files for gettext | 30 | -dnl include files for gettext |
20 | - | 31 | - |
21 | -m4_include([m4/codeset.m4]) | 32 | -m4_include([m4/codeset.m4]) |
@@ -54,6 +65,6 @@ Index: bash-5.1/configure.ac | |||
54 | -m4_include([m4/wint_t.m4]) | 65 | -m4_include([m4/wint_t.m4]) |
55 | -m4_include([m4/xsize.m4]) | 66 | -m4_include([m4/xsize.m4]) |
56 | - | 67 | - |
57 | dnl Turn on any extensions available in the GNU C library. | 68 | dnl C compiler characteristics |
58 | AC_DEFINE(_GNU_SOURCE, 1) | 69 | AC_C_CONST |
59 | 70 | AC_C_INLINE | |
diff --git a/meta/recipes-extended/bash/bash_5.1.16.bb b/meta/recipes-extended/bash/bash_5.2.9.bb index d046faa4e5..39a5d3de86 100644 --- a/meta/recipes-extended/bash/bash_5.1.16.bb +++ b/meta/recipes-extended/bash/bash_5.2.9.bb | |||
@@ -5,7 +5,6 @@ LICENSE = "GPL-3.0-or-later" | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
6 | 6 | ||
7 | SRC_URI = "${GNU_MIRROR}/bash/${BP}.tar.gz;name=tarball \ | 7 | SRC_URI = "${GNU_MIRROR}/bash/${BP}.tar.gz;name=tarball \ |
8 | file://execute_cmd.patch \ | ||
9 | file://mkbuiltins_have_stringize.patch \ | 8 | file://mkbuiltins_have_stringize.patch \ |
10 | file://build-tests.patch \ | 9 | file://build-tests.patch \ |
11 | file://test-output.patch \ | 10 | file://test-output.patch \ |
@@ -13,11 +12,9 @@ SRC_URI = "${GNU_MIRROR}/bash/${BP}.tar.gz;name=tarball \ | |||
13 | file://run-bash-ptests \ | 12 | file://run-bash-ptests \ |
14 | file://fix-run-builtins.patch \ | 13 | file://fix-run-builtins.patch \ |
15 | file://use_aclocal.patch \ | 14 | file://use_aclocal.patch \ |
16 | file://makerace.patch \ | ||
17 | file://makerace2.patch \ | ||
18 | " | 15 | " |
19 | 16 | ||
20 | SRC_URI[tarball.sha256sum] = "5bac17218d3911834520dad13cd1f85ab944e1c09ae1aba55906be1f8192f558" | 17 | SRC_URI[tarball.sha256sum] = "68d978264253bc933d692f1de195e2e5b463a3984dfb4e5504b076865f16b6dd" |
21 | 18 | ||
22 | DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" | 19 | DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" |
23 | DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" | 20 | DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" |