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-11 11:31:55 +01:00
2025-02-11 11:44:19 +00:00
2025-08-11 18:04:25 +01:00
2025-04-24 11:47:23 +01:00
2024-10-22 12:28:17 +01:00
2023-07-10 11:36:34 +01:00
2024-11-04 14:34:42 +00:00
2025-08-14 10:31:10 +01:00
2024-11-12 11:09:51 +00:00
2024-10-01 12:40:48 +01:00
2025-09-15 17:57:23 +01:00
2025-09-15 17:57:23 +01:00
2025-06-05 11:02:23 +01:00
2025-06-26 11:02:34 +01:00
2025-09-11 11:31:55 +01:00
2024-08-15 14:51:55 +01:00
2024-02-20 11:39:45 +00:00
2025-01-08 12:37:20 +00:00
2025-03-17 22:38:32 +00:00
2025-06-20 12:07:26 +01:00
2025-03-06 11:16:47 +00:00
2025-03-06 11:16:47 +00:00
2025-06-05 11:02:23 +01:00
2025-09-15 17:57:23 +01:00
2025-09-11 11:31:55 +01:00
2025-06-20 12:07:27 +01:00
2025-08-11 18:04:25 +01:00
2025-02-11 11:44:19 +00:00
2024-07-24 22:51:39 +01:00
2025-08-28 10:47:08 +01:00
2025-08-19 09:48:36 +01:00
2025-06-19 21:54:44 +01:00
2025-09-08 14:05:11 +01:00
2025-06-02 22:17:24 +01:00
2025-09-08 14:05:11 +01:00
2025-09-08 14:05:11 +01:00
2025-08-28 10:47:08 +01:00
2025-06-20 12:07:26 +01:00
2024-12-24 13:49:27 +00:00
2025-08-04 18:04:03 +01:00
2025-06-20 12:07:27 +01:00
2025-08-28 10:47:08 +01:00
2025-08-04 18:04:03 +01:00
2018-07-30 12:44:35 +01:00
2025-04-10 11:05:34 +01:00
2024-12-17 11:41:53 +00:00
2025-01-09 15:26:50 +00:00
2025-05-13 10:29:21 +01:00
2025-08-28 10:47:08 +01:00
2024-12-24 13:49:27 +00:00
2025-09-11 11:31:55 +01:00
2025-01-08 12:37:20 +00:00
2025-03-18 10:27:31 +00:00
2025-04-03 11:06:20 +01:00
2024-10-22 12:28:17 +01:00
2024-02-20 11:39:45 +00:00
2025-03-17 22:38:32 +00:00
2024-07-26 12:28:42 +01:00
2025-09-11 11:31:55 +01:00
2025-09-11 11:31:55 +01:00
2025-01-08 12:37:20 +00:00
2025-08-07 12:11:15 +01:00
2025-09-08 14:05:11 +01:00
2024-02-20 11:39:45 +00:00
2025-06-20 12:07:27 +01:00
2025-09-11 11:31:56 +01:00
2025-01-08 12:37:20 +00:00
2025-09-08 14:05:11 +01:00
2025-06-26 11:02:34 +01:00
2025-05-13 10:29:21 +01:00
2025-02-05 12:49:55 +00:00
2025-09-01 23:07:06 +01:00
2025-05-13 10:29:21 +01:00
2024-07-24 22:51:40 +01:00
2025-09-15 17:57:23 +01:00
2025-09-08 14:05:11 +01:00
2025-08-04 18:04:03 +01:00
2025-08-04 18:04:03 +01:00
2025-06-20 12:07:26 +01:00
2025-09-15 17:57:23 +01:00
2025-06-02 22:17:24 +01:00
2025-05-01 14:22:53 +01:00
2025-05-13 10:29:21 +01:00
2025-05-01 14:22:53 +01:00
2025-06-20 12:07:27 +01:00
2025-01-08 12:37:20 +00:00
2025-06-20 12:07:26 +01:00
2024-05-15 16:39:19 +01:00
2025-06-05 11:02:23 +01:00
2025-06-05 11:02:23 +01:00
2025-03-06 11:16:47 +00:00
2025-07-07 22:12:50 +01:00
2025-06-20 12:07:26 +01:00
2025-06-02 22:17:24 +01:00
2025-04-03 11:06:20 +01:00
2024-12-17 11:41:53 +00:00
2025-08-04 18:04:03 +01:00
2024-02-20 11:39:45 +00:00
2025-05-01 14:22:53 +01:00
2025-09-11 11:31:56 +01:00
2025-06-26 11:02:34 +01:00
2025-04-03 11:06:20 +01:00
2025-01-08 12:37:20 +00:00
2025-04-03 11:06:20 +01:00
2025-02-05 12:49:55 +00:00
2025-09-08 14:05:11 +01:00
2024-12-17 11:41:53 +00:00
2025-05-01 14:22:53 +01:00
2025-03-11 21:29:50 +00:00
2025-09-08 14:05:11 +01:00
2025-07-28 14:51:51 +01:00
2025-09-11 11:31:56 +01:00
2025-06-20 12:07:26 +01:00
2024-12-17 11:41:53 +00:00
2025-06-05 11:02:23 +01:00
2025-09-08 14:05:11 +01:00
2025-08-07 12:11:16 +01:00
2024-12-24 13:49:28 +00:00
2025-06-26 11:02:34 +01:00
2024-02-20 11:39:45 +00:00
2025-06-02 22:17:24 +01:00
2021-05-21 15:18:23 +01:00
2024-10-11 12:17:02 +01:00
2025-02-27 10:55:17 +00:00
2025-07-01 08:49:37 +01:00
2025-07-01 08:49:37 +01:00
2024-12-17 11:41:53 +00:00
2024-12-17 11:41:53 +00:00
2024-12-17 11:41:53 +00:00
2024-12-17 11:41:53 +00:00
2024-03-07 17:25:02 +00:00
2023-04-13 13:53:44 +01:00
2024-12-17 11:41:53 +00:00
2024-12-17 11:41:53 +00:00
2024-07-24 22:51:40 +01:00
2024-06-25 11:50:58 +01:00
2025-09-11 11:31:56 +01:00
2025-09-08 14:05:11 +01:00
2025-02-10 13:03:58 +00:00
2025-08-07 12:11:15 +01:00
2025-06-05 11:02:22 +01:00
2025-07-01 08:49:37 +01:00
2025-05-01 14:22:53 +01:00
2025-01-08 12:37:20 +00:00
2025-08-04 18:04:03 +01:00
2025-03-17 22:38:32 +00:00
2025-07-01 08:49:37 +01:00
2025-09-11 11:31:56 +01:00
2025-05-13 10:29:21 +01:00
2025-08-14 10:31:10 +01:00
2025-05-01 14:22:53 +01:00
2024-06-07 23:21:42 +01:00
2024-12-24 13:49:28 +00:00