mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
rustup: crate symlinks for cargo, rustc and friends
This effectively reverts commit c5d3df3
(#4160). It appears that
rustup has some problems setting PATH properly for some users,
so we _need_ this behaviour.
This commit is contained in:
parent
0261f56077
commit
9332d8bbcb
1 changed files with 7 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'rustup'
|
# Template file for 'rustup'
|
||||||
pkgname=rustup
|
pkgname=rustup
|
||||||
version=1.14.0
|
version=1.14.0
|
||||||
revision=4
|
revision=5
|
||||||
wrksrc="${pkgname}.rs-${version}"
|
wrksrc="${pkgname}.rs-${version}"
|
||||||
build_style=cargo
|
build_style=cargo
|
||||||
configure_args="--features no-self-update --bin rustup-init"
|
configure_args="--features no-self-update --bin rustup-init"
|
||||||
|
@ -13,6 +13,7 @@ license="Apache-2.0, MIT"
|
||||||
homepage="https://www.rustup.rs"
|
homepage="https://www.rustup.rs"
|
||||||
distfiles="https://github.com/rust-lang-nursery/${pkgname}.rs/archive/${version}.tar.gz"
|
distfiles="https://github.com/rust-lang-nursery/${pkgname}.rs/archive/${version}.tar.gz"
|
||||||
checksum=ab125d9b12bf0f3f7e7ad98e826035fa1ae3dbe6ba8b78be4c82f9cde00bc59f
|
checksum=ab125d9b12bf0f3f7e7ad98e826035fa1ae3dbe6ba8b78be4c82f9cde00bc59f
|
||||||
|
conflicts="rust cargo"
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
cargo update --package openssl-sys --precise 0.9.35
|
cargo update --package openssl-sys --precise 0.9.35
|
||||||
|
@ -21,6 +22,11 @@ pre_build() {
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin target/${RUST_TARGET}/release/rustup-init rustup
|
vbin target/${RUST_TARGET}/release/rustup-init rustup
|
||||||
|
|
||||||
|
# rustup doesn't set PATH correctly to include these.
|
||||||
|
for cmd in cargo rust-gdb rust-lldb rustc rustdoc; do
|
||||||
|
ln -s rustup ${DESTDIR}/usr/bin/${cmd}
|
||||||
|
done
|
||||||
|
|
||||||
if ! [ "$CROSS_BUILD" ]; then
|
if ! [ "$CROSS_BUILD" ]; then
|
||||||
# generate shell completions
|
# generate shell completions
|
||||||
ln -s target/${RUST_TARGET}/release/rustup-init rustup
|
ln -s target/${RUST_TARGET}/release/rustup-init rustup
|
||||||
|
|
Loading…
Add table
Reference in a new issue