Dash:
[t2-trunk.git] / package / rust / rustc / no-bashcompletion.patch
blob18126d74e27bac0f79532c66bddb04b95b10f0a4
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/rustc/no-bashcompletion.patch
3 # Copyright (C) 2021 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- rustc-1.56.0-src/src/bootstrap/tarball.rs.vanilla 2021-11-27 16:52:41.132878313 +0100
15 +++ rustc-1.56.0-src/src/bootstrap/tarball.rs 2021-11-27 16:54:06.136882698 +0100
16 @@ -178,7 +178,7 @@
17 t!(std::fs::create_dir_all(&destdir));
18 self.builder.install(src.as_ref(), &destdir, perms);
21 +/*
22 pub(crate) fn add_renamed_file(
23 &self,
24 src: impl AsRef<Path>,
25 @@ -189,7 +189,7 @@
26 t!(std::fs::create_dir_all(&destdir));
27 self.builder.copy(src.as_ref(), &destdir.join(new_name));
30 +*/
31 pub(crate) fn add_legal_and_readme_to(&self, destdir: impl AsRef<Path>) {
32 for file in self.overlay.legal_and_readme() {
33 self.add_file(self.builder.src.join(file), destdir.as_ref(), 0o644);
34 --- rustc-1.56.0-src/src/bootstrap/dist.rs.vanilla 2021-11-27 16:49:42.738869110 +0100
35 +++ rustc-1.56.0-src/src/bootstrap/dist.rs 2021-11-27 16:50:23.348871205 +0100
36 @@ -997,7 +997,7 @@
38 tarball.add_file(&cargo, "bin", 0o755);
39 tarball.add_file(etc.join("_cargo"), "share/zsh/site-functions", 0o644);
40 - tarball.add_renamed_file(etc.join("cargo.bashcomp.sh"), "etc/bash_completion.d", "cargo");
41 + //tarball.add_renamed_file(etc.join("cargo.bashcomp.sh"), "etc/bash_completion.d", "cargo");
42 tarball.add_dir(etc.join("man"), "share/man/man1");
43 tarball.add_legal_and_readme_to("share/doc/cargo");