From 9a02547633299929761552b2f0215acc1198164e Mon Sep 17 00:00:00 2001 From: Wildan M Date: Wed, 26 Aug 2026 10:26:45 +0700 Subject: [PATCH] prefix: Fix curl for fedora when building rust --- recipes/dev/rust/recipe.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes/dev/rust/recipe.toml b/recipes/dev/rust/recipe.toml index a295feab6..8147b8524 100644 --- a/recipes/dev/rust/recipe.toml +++ b/recipes/dev/rust/recipe.toml @@ -54,7 +54,11 @@ fi # Don't poison the stage1 compiler (host -> host) unset AR AS CC CXX LD LDFLAGS NM OBJCOPY OBJDUMP RANLIB READELF RUSTFLAGS CARGO_ENCODED_RUSTFLAGS STRIP -SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt" \ +# Curl fix for some platform +for cert in "/etc/ssl/certs/ca-certificates.crt" \ + "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" +do if [ -f "$cert" ]; then export SSL_CERT_FILE="$cert"; break; fi; done + python3 "${COOKBOOK_SOURCE}/x.py" install \ --config config.toml \ --jobs ${COOKBOOK_MAKE_JOBS}