Skip to content

Commit 642cf71

Browse files
committed
up to 1.71.0
- fix build by applying upstream revert, see: rust-lang/rust#113678 - roll back to original location for bash completion, from: rust-lang/rust#113579
1 parent f8cd045 commit 642cf71

File tree

3 files changed

+86
-9
lines changed

3 files changed

+86
-9
lines changed

bash_comp_location.patch

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
From 05bc71cfaf9eb35caab425126d4fa8dcb8c62072 Mon Sep 17 00:00:00 2001
2+
From: ekusiadadus <ekusiadadus@gmail.com>
3+
Date: Wed, 12 Jul 2023 00:54:27 +0900
4+
Subject: [PATCH] Revert "fix: :bug: etc/bash_complettion -> src/etc/... to
5+
avoid copy error"
6+
7+
This reverts commit 08ce68b6a6bad360e9c3611ad60cf6598401f878.
8+
---
9+
src/bootstrap/dist.rs | 6 +-----
10+
1 file changed, 1 insertion(+), 5 deletions(-)
11+
12+
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
13+
index 4522819f996e8..b34a4b2dc63ba 100644
14+
--- a/src/bootstrap/dist.rs
15+
+++ b/src/bootstrap/dist.rs
16+
@@ -1074,11 +1074,7 @@ impl Step for Cargo {
17+
18+
tarball.add_file(&cargo, "bin", 0o755);
19+
tarball.add_file(etc.join("_cargo"), "share/zsh/site-functions", 0o644);
20+
- tarball.add_renamed_file(
21+
- etc.join("cargo.bashcomp.sh"),
22+
- "src/etc/bash_completion.d",
23+
- "cargo",
24+
- );
25+
+ tarball.add_renamed_file(etc.join("cargo.bashcomp.sh"), "etc/bash_completion.d", "cargo");
26+
tarball.add_dir(etc.join("man"), "share/man/man1");
27+
tarball.add_legal_and_readme_to("share/doc/cargo");
28+

lint_docs_libs.patch

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
From 67b5990472e3cac643d8cf90f45fe42201ddec3c Mon Sep 17 00:00:00 2001
2+
From: jyn <github@jyn.dev>
3+
Date: Mon, 10 Jul 2023 15:59:30 -0500
4+
Subject: [PATCH] Revert "Fix `x test lint-docs` when download-rustc is
5+
enabled"
6+
7+
This was not the correct fix. The problem was two-fold:
8+
- `download-rustc` didn't respect `llvm.assertions`
9+
- `rust-dev` was missing a bump to `download-ci-llvm-stamp`
10+
11+
The first is fixed in this PR and the latter was fixed a while ago. Revert this change to avoid breaking `rpath = false`.
12+
---
13+
src/tools/lint-docs/src/groups.rs | 1 -
14+
src/tools/lint-docs/src/lib.rs | 6 ------
15+
2 files changed, 7 deletions(-)
16+
17+
diff --git a/src/tools/lint-docs/src/groups.rs b/src/tools/lint-docs/src/groups.rs
18+
index b11fb287cf4dd..5be8ef7996bb2 100644
19+
--- a/src/tools/lint-docs/src/groups.rs
20+
+++ b/src/tools/lint-docs/src/groups.rs
21+
@@ -39,7 +39,6 @@ impl<'a> LintExtractor<'a> {
22+
fn collect_groups(&self) -> Result<LintGroups, Box<dyn Error>> {
23+
let mut result = BTreeMap::new();
24+
let mut cmd = Command::new(self.rustc_path);
25+
- cmd.env_remove("LD_LIBRARY_PATH");
26+
cmd.arg("-Whelp");
27+
let output = cmd.output().map_err(|e| format!("failed to run command {:?}\n{}", cmd, e))?;
28+
if !output.status.success() {
29+
diff --git a/src/tools/lint-docs/src/lib.rs b/src/tools/lint-docs/src/lib.rs
30+
index fe29b9abda39a..b7c8b9ed2e318 100644
31+
--- a/src/tools/lint-docs/src/lib.rs
32+
+++ b/src/tools/lint-docs/src/lib.rs
33+
@@ -403,12 +403,6 @@ impl<'a> LintExtractor<'a> {
34+
fs::write(&tempfile, source)
35+
.map_err(|e| format!("failed to write {}: {}", tempfile.display(), e))?;
36+
let mut cmd = Command::new(self.rustc_path);
37+
- // NOTE: bootstrap sets `LD_LIBRARY_PATH` for building lint-docs itself.
38+
- // Unfortunately, lint-docs is a bootstrap tool while rustc is built from source,
39+
- // and sometimes the paths conflict. In particular, when using `download-rustc`,
40+
- // the LLVM versions can differ between `ci-llvm` and `ci-rustc-sysroot`.
41+
- // Unset LD_LIBRARY_PATH here so it doesn't interfere with running the compiler.
42+
- cmd.env_remove("LD_LIBRARY_PATH");
43+
if options.contains(&"edition2015") {
44+
cmd.arg("--edition=2015");
45+
} else {

rust.spec

+13-9
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
# To bootstrap from scratch, set the channel and date from src/stage0.json
2222
# e.g. 1.10.0 wants rustc: 1.9.0-2016-05-24
2323
# or nightly wants some beta-YYYY-MM-DD
24-
%define bootstrap_rust 1.69.0
24+
%define bootstrap_rust 1.70.0
2525
%define bootstrap_cargo %{bootstrap_rust}
26-
%define bootstrap_date 2023-04-20
26+
%define bootstrap_date 2023-06-01
2727

2828
%ifarch x32
2929
%define with_cross 1
@@ -36,23 +36,25 @@
3636
Summary: The Rust Programming Language
3737
Summary(pl.UTF-8): Język programowania Rust
3838
Name: rust
39-
Version: 1.70.0
39+
Version: 1.71.0
4040
Release: 1
4141
# Licenses: (rust itself) and (bundled libraries)
4242
License: (Apache v2.0 or MIT) and (BSD and ISC and MIT)
4343
Group: Development/Languages
4444
Source0: https://static.rust-lang.org/dist/%{rustc_package}.tar.xz
45-
# Source0-md5: 165792a4266021589b2d6061f208755f
45+
# Source0-md5: 81ae525767680c1680bad985ecc35bff
4646
Source1: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-x86_64-unknown-linux-gnu.tar.xz
47-
# Source1-md5: f64b22de708c5a4e6ca2a0b549b9c438
47+
# Source1-md5: afabe6d2054187af74998fd42c516717
4848
Source2: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-i686-unknown-linux-gnu.tar.xz
49-
# Source2-md5: 0abd3a7776a84e4a631df506ba6b7b8a
49+
# Source2-md5: 2d4b19e6e0994fea57c837460612f8d7
5050
Source3: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-aarch64-unknown-linux-gnu.tar.xz
51-
# Source3-md5: 75bcdcf347a5195d1c20aa176734fb05
51+
# Source3-md5: 329cfb044bff54ac749983285bf4819a
5252
Source4: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-arm-unknown-linux-gnueabihf.tar.xz
53-
# Source4-md5: 58660f3595f67f0da91abaf209298588
53+
# Source4-md5: ba90a8fd5f8af3dd73599434e9f5083f
5454
Source5: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-armv7-unknown-linux-gnueabihf.tar.xz
55-
# Source5-md5: bf50136eba1bbaae5002f728efa637aa
55+
# Source5-md5: e8a4cf787e2d82b2ba7b2e63800a1d1a
56+
Patch0: lint_docs_libs.patch
57+
Patch1: bash_comp_location.patch
5658
URL: https://www.rust-lang.org/
5759
# for src/compiler-rt
5860
BuildRequires: cmake >= 3.4.3
@@ -331,6 +333,8 @@ Dopełnianie parametrów polecenia cargo w powłoce Zsh.
331333

332334
%prep
333335
%setup -q -n %{rustc_package}
336+
%patch0 -p1
337+
%patch1 -p1
334338

335339
%if %{with bootstrap}
336340
%ifarch %{x8664} x32

0 commit comments

Comments
 (0)