]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
curl: Ensure 'CURL_CA_BUNDLE' from host env is indeed respected
authorMoritz Haase <Moritz.Haase@bmw.de>
Fri, 28 Nov 2025 13:19:23 +0000 (14:19 +0100)
committerSteve Sakoman <steve@sakoman.com>
Fri, 5 Dec 2025 15:08:31 +0000 (07:08 -0800)
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.

(cherry picked from commit 545e43a7a45be02fda8fc3af69faa20e889f58c4)

CC: changqing.li@windriver.com
CC: raj.khem@gmail.com
CC: Peter.Marko@siemens.com
Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-support/curl/curl/environment.d-curl.sh

index 581108ef35d8660fa2cb505ca647c01c536d8f73..b948db2cf650530caaf74024a48440e736594b7e 100644 (file)
@@ -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