Files
poky/meta/recipes-devtools
Haixiao Yan f5adf527f2 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: 4d880c2eccd534133a2a4e6579d955605c0956ec)

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>
2025-09-15 17:57:23 +01:00
..
2025-09-08 18:02:39 +01:00
2025-09-11 09:41:10 +01:00
2025-05-13 10:29:20 +01:00
2025-09-15 17:57:23 +01:00
2025-08-14 10:31:10 +01:00
2025-07-17 10:41:18 +01:00
2024-09-03 10:21:38 +01:00
2025-05-13 10:29:20 +01:00
2024-05-28 09:38:23 +01:00
2025-06-26 11:02:34 +01:00
2025-07-17 10:41:18 +01:00
2024-04-16 08:07:01 +01:00
2025-08-07 12:11:15 +01:00
2025-05-01 14:33:26 +01:00
2025-07-28 14:51:50 +01:00
2025-08-18 21:14:07 +01:00
2024-10-29 11:19:57 +00:00
2023-09-26 10:35:27 +01:00
2025-09-15 17:57:23 +01:00
2025-08-14 10:31:10 +01:00
2025-08-25 17:47:20 +01:00
2025-07-31 10:48:35 +01:00
2025-07-01 08:49:37 +01:00
2024-06-04 12:04:52 +01:00
2025-07-17 10:41:18 +01:00
2025-06-20 12:07:27 +01:00
2025-07-24 10:29:53 +01:00
2025-07-07 22:12:50 +01:00
2025-06-05 11:02:22 +01:00
2025-09-08 14:05:10 +01:00
2025-01-20 13:38:59 +00:00
2025-09-11 11:31:56 +01:00
2025-09-15 17:57:23 +01:00
2025-09-08 14:05:10 +01:00
2025-05-13 10:29:21 +01:00
2025-09-08 18:02:40 +01:00
2025-09-08 18:02:40 +01:00
2025-03-27 11:19:04 +00:00
2025-03-17 17:09:22 +00:00