poky/meta
Haixiao Yan 619c008306 buildtools-tarball: fix unbound variable issues under 'set -u'
When Bash runs with 'set -u' (nounset), accessing an unset variable
directly (e.g. [ -z "$SSL_CERT_FILE" ]) causes a fatal "unbound variable"
error. As a result, the fallback logic to set SSL_CERT_FILE/SSL_CERT_DIR
is never triggered and the script aborts.

The current code assumes these variables may be unset or empty, but does
not guard against 'set -u'. This breaks builds in stricter shell
environments or when users explicitly enable 'set -u'.

Fix this by using parameter expansion with a default value, e.g.
"${SSL_CERT_FILE:-}", so that unset variables are treated as empty
strings. This preserves the intended logic (respect host env first, then
CAFILE/CAPATH, then buildtools defaults) and makes the script robust
under 'set -u'.

(From OE-Core rev: 3d161e94ad532f660d4a0259a32e26a32ea0c75d)

Signed-off-by: Haixiao Yan <haixiao.yan.cn@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4d880c2eccd534133a2a4e6579d955605c0956ec)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2025-09-22 12:21:23 -07:00
..
classes classes/spdx-*.bbclass: move spdx2 specific variables out of spdx-common class 2025-03-28 11:19:40 +00:00
classes-global sstate: apply proper umask when fetching from SSTATE_MIRROR 2025-07-04 07:50:16 -07:00
classes-recipe systemd.bbclass: Make systemd_postinst run as intended 2025-09-22 12:21:23 -07:00
conf default-distrovars.inc: Fix CONNECTIVITY_CHECK_URIS redirect issue 2025-09-09 09:30:07 -07:00
files overlayfs-etc: Unmount /sys and /proc before init 2025-03-27 11:19:04 +00:00
lib license.py: avoid deprecated ast.Str 2025-09-22 12:21:23 -07:00
recipes-bsp lrzsz: Fix build with gcc-15 2025-03-27 11:19:04 +00:00
recipes-connectivity buildtools-tarball: fix unbound variable issues under 'set -u' 2025-09-22 12:21:23 -07:00
recipes-core systemd-systemctl-native: Install systemd-sysv-install 2025-09-22 12:21:23 -07:00
recipes-devtools buildtools-tarball: fix unbound variable issues under 'set -u' 2025-09-22 12:21:23 -07:00
recipes-extended libarchive: patch CVE-2025-5918 2025-08-29 10:02:59 -07:00
recipes-gnome gdk-pixbuf: fix CVE-2025-7345 2025-07-21 09:17:59 -07:00
recipes-graphics xserver-xorg: upgrade 21.1.6 -> 21.1.18 2025-07-29 08:42:34 -07:00
recipes-kernel linux-yocto/6.12: update CVE exclusions (6.12.44) 2025-09-22 12:21:23 -07:00
recipes-multimedia pulseaudio: Add audio group explicitly 2025-09-09 09:30:07 -07:00
recipes-rt rt-tests: Fix build with glibc 2.41+ 2025-01-29 16:16:52 +00:00
recipes-sato webkitgtk: upgrade 2.48.1 -> 2.48.2 2025-07-17 13:57:58 -07:00
recipes-support buildtools-tarball: fix unbound variable issues under 'set -u' 2025-09-22 12:21:23 -07:00
site site/arm-linux: Fix typo for sizeof_char_p 2024-11-21 12:16:28 +00:00
COPYING.MIT
recipes.txt