Set cainfo to certificates in sysroot-native

This solves SSL CA cert errors.

When a sstate-cache is used sometimes the certificates are not available
at the compile time path anymore. The required certificates are
available in sysroot-native and can be selected with the cainfo
configuration.
This commit is contained in:
Johan Anderholm
2019-08-06 14:10:50 +02:00
parent c5ff05d1e9
commit 2c4a666b68

View File

@@ -58,6 +58,11 @@ cargo_common_do_configure () {
multiplexing = false
EOF
# When a sstate-cache is used sometimes the certificates are not available
# at the compile time path anymore. Set it explicitly instead.
echo "cainfo = \"${STAGING_ETCDIR_NATIVE}/ssl/certs/ca-certificates.crt\"" \
>> ${CARGO_HOME}/config
if [ -n "${http_proxy}" ]; then
echo "proxy = \"${http_proxy}\"" >> ${CARGO_HOME}/config
fi