prefix: Fix curl for fedora when building rust

This commit is contained in:
Wildan M 2026-08-26 10:26:45 +07:00
parent 4fed741db6
commit 9a02547633
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

View File

@ -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}