diff options
| author | Zev Weiss <zev@bewilderbeest.net> | 2024-04-10 17:46:24 -0700 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-05-23 08:55:01 -0700 |
| commit | 1a52a8e93e0dcfbf7aba05b156d61c2aebacccbe (patch) | |
| tree | bd6238b611095ff34dae6de2f58d9f4f66726c81 /meta/recipes-extended | |
| parent | 2e084b7b80fb0c836a689319c4e886d494d9e183 (diff) | |
| download | poky-1a52a8e93e0dcfbf7aba05b156d61c2aebacccbe.tar.gz | |
bash: Fix file-substitution error-handling bug
This is part of a patch that's been upstream for a while but hasn't yet
been released. The bug is causing some downstream difficulties, so a
local patch to tide us over until the next release makes things a bit
easier.
(From OE-Core rev: 6a81ccc68f8389ca1c9c8eed009388045beea9e4)
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit bf384d6618780dea2df24adac88ba4364cb65b9b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-extended')
| -rw-r--r-- | meta/recipes-extended/bash/bash/fix-filesubst-errexit.patch | 34 | ||||
| -rw-r--r-- | meta/recipes-extended/bash/bash_5.2.21.bb | 1 |
2 files changed, 35 insertions, 0 deletions
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_5.2.21.bb b/meta/recipes-extended/bash/bash_5.2.21.bb index 46d921bbe6..532adf4c1a 100644 --- a/meta/recipes-extended/bash/bash_5.2.21.bb +++ b/meta/recipes-extended/bash/bash_5.2.21.bb | |||
| @@ -13,6 +13,7 @@ SRC_URI = "${GNU_MIRROR}/bash/${BP}.tar.gz;name=tarball \ | |||
| 13 | file://fix-run-builtins.patch \ | 13 | file://fix-run-builtins.patch \ |
| 14 | file://use_aclocal.patch \ | 14 | file://use_aclocal.patch \ |
| 15 | file://0001-changes-to-SIGINT-handler-while-waiting-for-a-child-.patch \ | 15 | file://0001-changes-to-SIGINT-handler-while-waiting-for-a-child-.patch \ |
| 16 | file://fix-filesubst-errexit.patch \ | ||
| 16 | " | 17 | " |
| 17 | 18 | ||
| 18 | SRC_URI[tarball.sha256sum] = "c8e31bdc59b69aaffc5b36509905ba3e5cbb12747091d27b4b977f078560d5b8" | 19 | SRC_URI[tarball.sha256sum] = "c8e31bdc59b69aaffc5b36509905ba3e5cbb12747091d27b4b977f078560d5b8" |
