diff options
Diffstat (limited to 'meta/recipes-extended/bash/bash')
6 files changed, 280 insertions, 89 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 new file mode 100644 index 0000000000..77d770b364 --- /dev/null +++ b/meta/recipes-extended/bash/bash/0001-changes-to-SIGINT-handler-while-waiting-for-a-child-.patch | |||
@@ -0,0 +1,226 @@ | |||
1 | From 721d5be99eb37d31e48bd66d61808a66a4c5ab84 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chet Ramey <chet.ramey@case.edu> | ||
3 | Date: Mon, 30 Oct 2023 12:16:07 -0400 | ||
4 | Subject: [PATCH] changes to SIGINT handler while waiting for a child; skip | ||
5 | vertical whitespace after translating an integer | ||
6 | |||
7 | Upstream-Status: Backport from | ||
8 | [https://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=fe24a6a55e8850298b496c5b9d82f1866eba190e] | ||
9 | |||
10 | [Adjust and drop some codes to be applicable the tree] | ||
11 | |||
12 | Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> | ||
13 | --- | ||
14 | general.c | 5 +++-- | ||
15 | jobs.c | 24 ++++++++++++++++-------- | ||
16 | tests/redir.right | 4 ++-- | ||
17 | tests/redir11.sub | 2 ++ | ||
18 | tests/type.right | 16 ++++++++-------- | ||
19 | tests/type.tests | 24 ++++++++++++------------ | ||
20 | 6 files changed, 43 insertions(+), 32 deletions(-) | ||
21 | |||
22 | diff --git a/general.c b/general.c | ||
23 | index 85c5a8b6..65e2ee06 100644 | ||
24 | --- a/general.c | ||
25 | +++ b/general.c | ||
26 | @@ -262,8 +262,9 @@ legal_number (string, result) | ||
27 | if (errno || ep == string) | ||
28 | return 0; /* errno is set on overflow or underflow */ | ||
29 | |||
30 | - /* Skip any trailing whitespace, since strtoimax does not. */ | ||
31 | - while (whitespace (*ep)) | ||
32 | + /* Skip any trailing whitespace, since strtoimax does not, using the same | ||
33 | + test that strtoimax uses for leading whitespace. */ | ||
34 | + while (isspace ((unsigned char) *ep)) | ||
35 | ep++; | ||
36 | |||
37 | /* If *string is not '\0' but *ep is '\0' on return, the entire string | ||
38 | diff --git a/jobs.c b/jobs.c | ||
39 | index 6b986ed7..262d78de 100644 | ||
40 | --- a/jobs.c | ||
41 | +++ b/jobs.c | ||
42 | @@ -2718,6 +2718,10 @@ wait_for_background_pids (ps) | ||
43 | #define INVALID_SIGNAL_HANDLER (SigHandler *)wait_for_background_pids | ||
44 | static SigHandler *old_sigint_handler = INVALID_SIGNAL_HANDLER; | ||
45 | |||
46 | +/* The current SIGINT handler as set by restore_sigint_handler. Only valid | ||
47 | + immediately after restore_sigint_handler, used for continuations. */ | ||
48 | +static SigHandler *cur_sigint_handler = INVALID_SIGNAL_HANDLER; | ||
49 | + | ||
50 | static int wait_sigint_received; | ||
51 | static int child_caught_sigint; | ||
52 | |||
53 | @@ -2735,6 +2739,7 @@ wait_sigint_cleanup () | ||
54 | static void | ||
55 | restore_sigint_handler () | ||
56 | { | ||
57 | + cur_sigint_handler = old_sigint_handler; | ||
58 | if (old_sigint_handler != INVALID_SIGNAL_HANDLER) | ||
59 | { | ||
60 | set_signal_handler (SIGINT, old_sigint_handler); | ||
61 | @@ -2758,8 +2763,7 @@ wait_sigint_handler (sig) | ||
62 | restore_sigint_handler (); | ||
63 | /* If we got a SIGINT while in `wait', and SIGINT is trapped, do | ||
64 | what POSIX.2 says (see builtins/wait.def for more info). */ | ||
65 | - if (this_shell_builtin && this_shell_builtin == wait_builtin && | ||
66 | - signal_is_trapped (SIGINT) && | ||
67 | + if (signal_is_trapped (SIGINT) && | ||
68 | ((sigint_handler = trap_to_sighandler (SIGINT)) == trap_handler)) | ||
69 | { | ||
70 | trap_handler (SIGINT); /* set pending_traps[SIGINT] */ | ||
71 | @@ -2782,6 +2786,8 @@ wait_sigint_handler (sig) | ||
72 | { | ||
73 | set_exit_status (128+SIGINT); | ||
74 | restore_sigint_handler (); | ||
75 | + if (cur_sigint_handler == INVALID_SIGNAL_HANDLER) | ||
76 | + set_sigint_handler (); /* XXX - only do this in one place */ | ||
77 | kill (getpid (), SIGINT); | ||
78 | } | ||
79 | |||
80 | @@ -2926,11 +2932,13 @@ wait_for (pid, flags) | ||
81 | { | ||
82 | SigHandler *temp_sigint_handler; | ||
83 | |||
84 | - temp_sigint_handler = set_signal_handler (SIGINT, wait_sigint_handler); | ||
85 | - if (temp_sigint_handler == wait_sigint_handler) | ||
86 | - internal_debug ("wait_for: recursively setting old_sigint_handler to wait_sigint_handler: running_trap = %d", running_trap); | ||
87 | - else | ||
88 | - old_sigint_handler = temp_sigint_handler; | ||
89 | + temp_sigint_handler = old_sigint_handler; | ||
90 | + old_sigint_handler = set_signal_handler (SIGINT, wait_sigint_handler); | ||
91 | + if (old_sigint_handler == wait_sigint_handler) | ||
92 | + { | ||
93 | + internal_debug ("wait_for: recursively setting old_sigint_handler to wait_sigint_handler: running_trap = %d", running_trap); | ||
94 | + old_sigint_handler = temp_sigint_handler; | ||
95 | + } | ||
96 | waiting_for_child = 0; | ||
97 | if (old_sigint_handler == SIG_IGN) | ||
98 | set_signal_handler (SIGINT, old_sigint_handler); | ||
99 | @@ -4136,7 +4144,7 @@ set_job_status_and_cleanup (job) | ||
100 | SIGINT (if we reset the sighandler to the default). | ||
101 | In this case, we have to fix things up. What a crock. */ | ||
102 | if (temp_handler == trap_handler && signal_is_trapped (SIGINT) == 0) | ||
103 | - temp_handler = trap_to_sighandler (SIGINT); | ||
104 | + temp_handler = trap_to_sighandler (SIGINT); | ||
105 | restore_sigint_handler (); | ||
106 | if (temp_handler == SIG_DFL) | ||
107 | termsig_handler (SIGINT); /* XXX */ | ||
108 | diff --git a/tests/redir.right b/tests/redir.right | ||
109 | index 8db10414..9e1403c8 100644 | ||
110 | --- a/tests/redir.right | ||
111 | +++ b/tests/redir.right | ||
112 | @@ -154,10 +154,10 @@ foo | ||
113 | 1 | ||
114 | 7 | ||
115 | after: 42 | ||
116 | -./redir11.sub: line 53: $(ss= declare -i ss): ambiguous redirect | ||
117 | +./redir11.sub: line 55: $(ss= declare -i ss): ambiguous redirect | ||
118 | after: 42 | ||
119 | a+=3 | ||
120 | foo | ||
121 | foo | ||
122 | -./redir11.sub: line 75: 42: No such file or directory | ||
123 | +./redir11.sub: line 77: 42: No such file or directory | ||
124 | 42 | ||
125 | diff --git a/tests/redir11.sub b/tests/redir11.sub | ||
126 | index d417cdb6..ca9854cd 100644 | ||
127 | --- a/tests/redir11.sub | ||
128 | +++ b/tests/redir11.sub | ||
129 | @@ -34,6 +34,8 @@ a=4 b=7 ss=4 declare -i ss | ||
130 | a=4 b=7 foo | ||
131 | echo after: $a | ||
132 | |||
133 | +exec 7>&- 4>&- | ||
134 | + | ||
135 | unset a | ||
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'; } | ||
138 | diff --git a/tests/type.right b/tests/type.right | ||
139 | index bbc228e8..e0a66745 100644 | ||
140 | --- a/tests/type.right | ||
141 | +++ b/tests/type.right | ||
142 | @@ -24,15 +24,15 @@ func () | ||
143 | } | ||
144 | while | ||
145 | while is a shell keyword | ||
146 | -./type.tests: line 56: type: m: not found | ||
147 | -alias m='more' | ||
148 | -alias m='more' | ||
149 | -m is aliased to `more' | ||
150 | +./type.tests: line 56: type: morealias: not found | ||
151 | +alias morealias='more' | ||
152 | +alias morealias='more' | ||
153 | +morealias is aliased to `more' | ||
154 | alias | ||
155 | -alias m='more' | ||
156 | -alias m='more' | ||
157 | -alias m='more' | ||
158 | -m is aliased to `more' | ||
159 | +alias morealias='more' | ||
160 | +alias morealias='more' | ||
161 | +alias morealias='more' | ||
162 | +morealias is aliased to `more' | ||
163 | builtin | ||
164 | builtin is a shell builtin | ||
165 | /bin/sh | ||
166 | diff --git a/tests/type.tests b/tests/type.tests | ||
167 | index fd39c18a..ddc15407 100644 | ||
168 | --- a/tests/type.tests | ||
169 | +++ b/tests/type.tests | ||
170 | @@ -25,8 +25,6 @@ type -r ${THIS_SH} | ||
171 | type notthere | ||
172 | command -v notthere | ||
173 | |||
174 | -alias m=more | ||
175 | - | ||
176 | unset -f func 2>/dev/null | ||
177 | func() { echo this is func; } | ||
178 | |||
179 | @@ -49,24 +47,26 @@ command -V func | ||
180 | command -v while | ||
181 | command -V while | ||
182 | |||
183 | +alias morealias=more | ||
184 | + | ||
185 | # the following two lines should produce the same output | ||
186 | # post-3.0 patch makes command -v silent, as posix specifies | ||
187 | # first test with alias expansion off (should all fail or produce no output) | ||
188 | -type -t m | ||
189 | -type m | ||
190 | -command -v m | ||
191 | +type -t morealias | ||
192 | +type morealias | ||
193 | +command -v morealias | ||
194 | alias -p | ||
195 | -alias m | ||
196 | +alias morealias | ||
197 | |||
198 | # then test with alias expansion on | ||
199 | shopt -s expand_aliases | ||
200 | -type m | ||
201 | -type -t m | ||
202 | -command -v m | ||
203 | +type morealias | ||
204 | +type -t morealias | ||
205 | +command -v morealias | ||
206 | alias -p | ||
207 | -alias m | ||
208 | +alias morealias | ||
209 | |||
210 | -command -V m | ||
211 | +command -V morealias | ||
212 | shopt -u expand_aliases | ||
213 | |||
214 | command -v builtin | ||
215 | @@ -76,7 +76,7 @@ command -V /bin/sh | ||
216 | |||
217 | unset -f func | ||
218 | type func | ||
219 | -unalias m | ||
220 | +unalias morealias | ||
221 | type m | ||
222 | |||
223 | hash -r | ||
224 | -- | ||
225 | 2.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..c1b9b8261f 100644 --- a/meta/recipes-extended/bash/bash/build-tests.patch +++ b/meta/recipes-extended/bash/bash/build-tests.patch | |||
@@ -4,7 +4,7 @@ Date: Wed, 19 Dec 2012 17:18:31 +0100 | |||
4 | Subject: [PATCH] Add 'ptest' target to Makefile, to run tests without checking | 4 | Subject: [PATCH] Add 'ptest' target to Makefile, to run tests without checking |
5 | dependencies. | 5 | dependencies. |
6 | 6 | ||
7 | Upstream-Status: Pending | 7 | Upstream-Status: Inappropriate [ptest specific] |
8 | Signed-off-by: Anders Roxell <anders.roxell@enea.com> | 8 | Signed-off-by: Anders Roxell <anders.roxell@enea.com> |
9 | 9 | ||
10 | Rebase to 5.0 | 10 | Rebase to 5.0 |
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/fix-filesubst-errexit.patch b/meta/recipes-extended/bash/bash/fix-filesubst-errexit.patch new file mode 100644 index 0000000000..60f1852316 --- /dev/null +++ b/meta/recipes-extended/bash/bash/fix-filesubst-errexit.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 59ddfda14e3c9aa6286bb4c4c0748f7c1324a65a Mon Sep 17 00:00:00 2001 | ||
2 | From: Chet Ramey <chet.ramey@case.edu> | ||
3 | Date: Fri, 7 Apr 2023 00:28:46 -0700 | ||
4 | Subject: [PATCH] $(<nosuchfile) is no longer a fatal error with errexit | ||
5 | enabled | ||
6 | |||
7 | This 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 | |||
12 | Upstream-Status: Backport | ||
13 | |||
14 | Signed-off-by: Zev Weiss <zev@bewilderbeest.net> | ||
15 | --- | ||
16 | builtins/evalstring.c | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/builtins/evalstring.c b/builtins/evalstring.c | ||
20 | index df3dd68e2a7e..6612081cd646 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; | ||
32 | -- | ||
33 | 2.40.0 | ||
34 | |||
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/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 | |