mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
rustup: disable rustls on non-x86/arm to unbreak build
This commit is contained in:
parent
157f366c24
commit
ad6e14c559
1 changed files with 8 additions and 1 deletions
|
@ -6,7 +6,8 @@ revision=1
|
||||||
archs="~armv*-musl"
|
archs="~armv*-musl"
|
||||||
build_style=cargo
|
build_style=cargo
|
||||||
build_helper=qemu
|
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"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="openssl-devel zlib-devel libcurl-devel"
|
makedepends="openssl-devel zlib-devel libcurl-devel"
|
||||||
short_desc="Rust toolchain installer"
|
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"
|
distfiles="https://github.com/rust-lang/${pkgname}/archive/${version}.tar.gz"
|
||||||
checksum=e69bce5a4b1abe05489b19d2906c258b27f70ff8b13f59e5932527ae6b77c6a6
|
checksum=e69bce5a4b1abe05489b19d2906c258b27f70ff8b13f59e5932527ae6b77c6a6
|
||||||
|
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
x86_64*|i686*|arm*|aarch64*)
|
||||||
|
configure_args+=" --features reqwest-rustls-tls"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
post_build() {
|
post_build() {
|
||||||
RUSTUP="target/${RUST_TARGET}/release/rustup-init"
|
RUSTUP="target/${RUST_TARGET}/release/rustup-init"
|
||||||
ln -sf "$RUSTUP" rustup
|
ln -sf "$RUSTUP" rustup
|
||||||
|
|
Loading…
Add table
Reference in a new issue