* added the Unlicense as valid in misc/share/REGISTER
[t2sde.git] / package / rust / rustc / no-bashcompletion.patch
blobc0b2ae375d4700586e9763268b95a5094e6cf8d9
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/rustc/no-bashcompletion.patch
3 # Copyright (C) 2021 - 2024 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.75.0-src/src/bootstrap/src/utils/tarball.rs.vanilla 2024-02-07 16:52:41.132878313 +0100
15 +++ rustc-1.75.0-src/src/bootstrap/src/utils/tarball.rs 2024-02-07 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);
35 --- rustc-1.78.0-src/src/bootstrap/src/core/build_steps/dist.rs.vanilla 2024-05-18 18:45:21.948931045 +0200
36 +++ rustc-1.78.0-src/src/bootstrap/src/core/build_steps/dist.rs 2024-05-18 18:45:29.919930643 +0200
37 @@ -1071,8 +1071,8 @@
38 tarball.set_overlay(OverlayKind::Cargo);
40 tarball.add_file(cargo, "bin", 0o755);
41 - tarball.add_file(etc.join("_cargo"), "share/zsh/site-functions", 0o644);
42 - tarball.add_renamed_file(etc.join("cargo.bashcomp.sh"), "etc/bash_completion.d", "cargo");
43 + //tarball.add_file(etc.join("_cargo"), "share/zsh/site-functions", 0o644);
44 + //tarball.add_renamed_file(etc.join("cargo.bashcomp.sh"), "etc/bash_completion.d", "cargo");
45 tarball.add_dir(etc.join("man"), "share/man/man1");
46 tarball.add_legal_and_readme_to("share/doc/cargo");