rustup: disable rustls on non-x86/arm to unbreak build

This commit is contained in:
q66 2021-06-20 00:12:29 +02:00
parent 157f366c24
commit ad6e14c559

View file

@ -6,7 +6,8 @@ revision=1
archs="~armv*-musl"
build_style=cargo
build_helper=qemu
configure_args="--features no-self-update --bin rustup-init"
configure_args="--bin rustup-init --no-default-features
--features curl-backend,reqwest-backend,reqwest-default-tls,no-self-update"
hostmakedepends="pkg-config"
makedepends="openssl-devel zlib-devel libcurl-devel"
short_desc="Rust toolchain installer"
@ -16,6 +17,12 @@ homepage="https://www.rustup.rs"
distfiles="https://github.com/rust-lang/${pkgname}/archive/${version}.tar.gz"
checksum=e69bce5a4b1abe05489b19d2906c258b27f70ff8b13f59e5932527ae6b77c6a6
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*|arm*|aarch64*)
configure_args+=" --features reqwest-rustls-tls"
;;
esac
post_build() {
RUSTUP="target/${RUST_TARGET}/release/rustup-init"
ln -sf "$RUSTUP" rustup