From 2b479c8f91fe6c1855dc78892a7106bf63dd77c1 Mon Sep 17 00:00:00 2001 From: Rmys Date: Fri, 21 Jul 2023 18:24:13 +0300 Subject: [PATCH] rust-1.77.0 rebuild --- programming/language/rust/actions.py | 14 ++++++------ ...bootstrap-Change-bash-completion-dir.patch | 22 +++++++++++++++++++ .../language/rust/files/bootstrap-config.toml | 5 +++-- programming/language/rust/pspec.xml | 8 +++---- 4 files changed, 36 insertions(+), 13 deletions(-) create mode 100644 programming/language/rust/files/0002-bootstrap-Change-bash-completion-dir.patch diff --git a/programming/language/rust/actions.py b/programming/language/rust/actions.py index 4331ea2253..92145b4d00 100755 --- a/programming/language/rust/actions.py +++ b/programming/language/rust/actions.py @@ -22,19 +22,19 @@ WorkDir = "rustc-%s-src" %get.srcVERSION() #At phase 2, rust will be built again with this newly built rust. #Before phase 2, the lines below will be commented out. -RustBinDir = "rust-%s-x86_64-unknown-linux-gnu" %get.srcVERSION() -RustcDir = "%s/rustbin" %get.workDIR() +# RustBinDir = "rust-%s-x86_64-unknown-linux-gnu" %get.srcVERSION() +# RustcDir = "%s/rustbin" %get.workDIR() ################################################################# def build(): #İkinci aşamada bu satırlar da yoruma çevrilecek. #At phase 2, these lines also will be commented out. - shelltools.cd(RustBinDir) - shelltools.system("./install.sh --prefix=%s" %RustcDir) - shelltools.cd("..") - pisitools.dosed("config.toml", "/usr/bin/cargo", RustcDir+"/bin/cargo") - pisitools.dosed("config.toml", "/usr/bin/rustc", RustcDir+"/bin/rustc") + # shelltools.cd(RustBinDir) + # shelltools.system("./install.sh --prefix=%s" %RustcDir) + # shelltools.cd("..") + # pisitools.dosed("config.toml", "/usr/bin/cargo", RustcDir+"/bin/cargo") + # pisitools.dosed("config.toml", "/usr/bin/rustc", RustcDir+"/bin/rustc") #################################################### shelltools.export("LC_ALL", "en_US.UTF-8") diff --git a/programming/language/rust/files/0002-bootstrap-Change-bash-completion-dir.patch b/programming/language/rust/files/0002-bootstrap-Change-bash-completion-dir.patch new file mode 100644 index 0000000000..5a4cac3880 --- /dev/null +++ b/programming/language/rust/files/0002-bootstrap-Change-bash-completion-dir.patch @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" +Date: Thu, 13 Jul 2023 21:16:53 +0200 +Subject: [PATCH] bootstrap: Change bash-completion dir + +--- + src/bootstrap/dist.rs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs +index 05e106637d74..426b1277fb23 100644 +--- a/src/bootstrap/dist.rs ++++ b/src/bootstrap/dist.rs +@@ -1073,7 +1073,7 @@ fn run(self, builder: &Builder<'_>) -> Option { + tarball.add_file(etc.join("_cargo"), "share/zsh/site-functions", 0o644); + tarball.add_renamed_file( + etc.join("cargo.bashcomp.sh"), +- "src/etc/bash_completion.d", ++ "share/bash-completion/completions", + "cargo", + ); + tarball.add_dir(etc.join("man"), "share/man/man1"); diff --git a/programming/language/rust/files/bootstrap-config.toml b/programming/language/rust/files/bootstrap-config.toml index 79e9974b6e..3b716ee04b 100644 --- a/programming/language/rust/files/bootstrap-config.toml +++ b/programming/language/rust/files/bootstrap-config.toml @@ -1,3 +1,4 @@ +profile = "user" changelog-seen = 2 [llvm] @@ -12,8 +13,8 @@ extended = true sanitizers = false profiler = true vendor = true -tools = ["cargo", "rls", "clippy", "rustfmt", "analysis", "src", "rust-demangler"] -# docs = false +tools = ["cargo", "rls", "clippy", "rustdoc", "rustfmt", "analysis", "rust-analyzer", "src", "rust-demangler"] +docs = false [install] prefix = "/usr" diff --git a/programming/language/rust/pspec.xml b/programming/language/rust/pspec.xml index d033ab0e33..2f1ddd8429 100755 --- a/programming/language/rust/pspec.xml +++ b/programming/language/rust/pspec.xml @@ -15,12 +15,12 @@ https://static.rust-lang.org/dist/rustc-1.71.0-src.tar.gz - https://static.rust-lang.org/dist/rust-1.71.0-x86_64-unknown-linux-gnu.tar.gz + bootstrap-config.toml - + rust perl llvm cmake @@ -39,7 +39,7 @@ - + 0002-bootstrap-Change-bash-completion-dir.patch @@ -80,7 +80,7 @@ 2023-07-21 1.71.0 - Version bump + Version bump. Mustafa Cinasal muscnsl@gmail.com