aboutsummaryrefslogtreecommitdiffstats
path: root/community/rustup/dont-copy-rustup-bin.patch
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-03-01 23:49:38 +0100
committerRasmus Thomsen <oss@cogitri.dev>2020-03-02 10:15:07 +0100
commit9f3c6cd034506d8980866f91b3b6bb00c5f53c88 (patch)
treee06f075940fa3460e03f4afea24c59df83c4bd4a /community/rustup/dont-copy-rustup-bin.patch
parent757450744f4742816a59711af4e43cd38262e486 (diff)
downloadaports-9f3c6cd034506d8980866f91b3b6bb00c5f53c88.tar.bz2
aports-9f3c6cd034506d8980866f91b3b6bb00c5f53c88.tar.xz
community/rustup: move from testing
Diffstat (limited to 'community/rustup/dont-copy-rustup-bin.patch')
-rw-r--r--community/rustup/dont-copy-rustup-bin.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/rustup/dont-copy-rustup-bin.patch b/community/rustup/dont-copy-rustup-bin.patch
new file mode 100644
index 0000000000..bcc6f5ce36
--- /dev/null
+++ b/community/rustup/dont-copy-rustup-bin.patch
@@ -0,0 +1,14 @@
+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.
+--- a/src/cli/self_update.rs.1 2018-12-13 21:56:55.211778812 +0100
++++ b/src/cli/self_update.rs 2018-12-13 21:56:42.763779768 +0100
+@@ -619,8 +619,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()
+ }