void-packages/srcpkgs/rustup/patches/dont-copy-rustup-bin.patch
Rasmus Thomsen cdb5ac2b9a rustup: update to 1.16.0.
also symlink rustup into $CARGO_HOME/bin/rustup instead of copying
it. Otherwise we can't update it via xbps

fixes #5398
2018-12-20 16:25:39 -02:00

14 lines
602 B
Diff

Upstream: No, not upstreamable like this
Reason: We want the rustup binary in $CARGO_HOME/bin to be of the
same version as the one we distribute in this rustup package.
--- src/rustup-cli/self_update.rs.1 2018-12-13 21:56:55.211778812 +0100
+++ src/rustup-cli/self_update.rs 2018-12-13 21:56:42.763779768 +0100
@@ -671,8 +671,7 @@
if rustup_path.exists() {
utils::remove_file("rustup-bin", rustup_path)?;
}
- utils::copy_file(this_exe_path, rustup_path)?;
- utils::make_executable(rustup_path)?;
+ utils::symlink_file(this_exe_path, rustup_path)?;
install_proxies()
}