diff mbox series

curl: Ensure 'CURL_CA_BUNDLE' from host env is indeed respected

Message ID 20251120132334.779326-1-Moritz.Haase@bmw.de
State New
Headers show
Series curl: Ensure 'CURL_CA_BUNDLE' from host env is indeed respected | expand

Commit Message

Moritz Haase Nov. 20, 2025, 1:23 p.m. UTC
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
Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
---
 meta/recipes-support/curl/curl/environment.d-curl.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Khem Raj Nov. 20, 2025, 6:28 p.m. UTC | #1
it should go to openembedded-core mailing list, since curl is in core layer.

On Thu, Nov 20, 2025 at 5:24 AM Moritz Haase via lists.openembedded.org
<Moritz.Haase=bmw.de@lists.openembedded.org> wrote:

> 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
> Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
> ---
>  meta/recipes-support/curl/curl/environment.d-curl.sh | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-support/curl/curl/environment.d-curl.sh
> b/meta/recipes-support/curl/curl/environment.d-curl.sh
> index 581108ef35..b948db2cf6 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
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#121936):
> https://lists.openembedded.org/g/openembedded-devel/message/121936
> Mute This Topic: https://lists.openembedded.org/mt/116390303/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
diff mbox series

Patch

diff --git a/meta/recipes-support/curl/curl/environment.d-curl.sh b/meta/recipes-support/curl/curl/environment.d-curl.sh
index 581108ef35..b948db2cf6 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