From: Moritz Haase Date: Mon, 24 Nov 2025 05:55:33 +0000 (+0100) Subject: curl: Ensure 'CURL_CA_BUNDLE' from host env is indeed respected X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=545e43a7a45be02fda8fc3af69faa20e889f58c4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git curl: Ensure 'CURL_CA_BUNDLE' from host env is indeed respected Due to what looks like a copy'n'paste mistake, the environment setup script might override 'CURL_CA_BUNDLE' from the host env instead of leaving it untouched. Fix that. CC: changqing.li@windriver.com CC: raj.khem@gmail.com Signed-off-by: Moritz Haase Signed-off-by: Mathieu Dubois-Briand --- diff --git a/meta/recipes-support/curl/curl/environment.d-curl.sh b/meta/recipes-support/curl/curl/environment.d-curl.sh index 581108ef35d..b948db2cf65 100644 --- a/meta/recipes-support/curl/curl/environment.d-curl.sh +++ b/meta/recipes-support/curl/curl/environment.d-curl.sh @@ -1,6 +1,6 @@ # Respect host env CURL_CA_BUNDLE/CURL_CA_PATH first, then auto-detected host cert, then cert in buildtools -# CAFILE/CAPATH is auto-deteced when source buildtools -if [ -z "${CURL_CA_PATH:-}" ]; then +# CAFILE/CAPATH is auto-detected when source buildtools +if [ -z "${CURL_CA_BUNDLE:-}" ]; then if [ -n "${CAFILE:-}" ];then export CURL_CA_BUNDLE="$CAFILE" elif [ -e "${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt" ];then