From ad6e14c5599c1923e9490d9dfea3c6bab04568b2 Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 20 Jun 2021 00:12:29 +0200 Subject: [PATCH] rustup: disable rustls on non-x86/arm to unbreak build --- srcpkgs/rustup/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/rustup/template b/srcpkgs/rustup/template index cb92bd1d39..294f5b020a 100644 --- a/srcpkgs/rustup/template +++ b/srcpkgs/rustup/template @@ -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