import CS rust-1.97.1-1.el9
This commit is contained in:
parent
938dbc8a8c
commit
a8e51f4cd6
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
SOURCES/rustc-1.92.0-src.tar.xz
|
||||
SOURCES/wasi-libc-wasi-sdk-27.tar.gz
|
||||
SOURCES/rustc-1.97.1-src.tar.xz
|
||||
SOURCES/wasi-libc-wasi-sdk-32.tar.gz
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
fbabcdb70a1ac1773e63d7800be42ffbaf9286e8 SOURCES/rustc-1.92.0-src.tar.xz
|
||||
7c12838ff50eb7d07e0679ae4e70b99ca5c711c0 SOURCES/wasi-libc-wasi-sdk-27.tar.gz
|
||||
5082bcea4fb67c64f936dc29346603cc4003c183 SOURCES/rustc-1.97.1-src.tar.xz
|
||||
d968731dd5b0309fcaa2561ff3a43b84adc7d267 SOURCES/wasi-libc-wasi-sdk-32.tar.gz
|
||||
|
||||
@ -1,21 +1,21 @@
|
||||
From e9405caf32dfb31bf17c3da0299df515a3755107 Mon Sep 17 00:00:00 2001
|
||||
From 2f68bbbaa31cef21b912ec4856e3187528ed9679 Mon Sep 17 00:00:00 2001
|
||||
From: Josh Stone <jistone@redhat.com>
|
||||
Date: Fri, 16 Aug 2024 10:12:58 -0700
|
||||
Subject: [PATCH] Use lld provided by system
|
||||
|
||||
---
|
||||
compiler/rustc_target/src/spec/base/wasm.rs | 3 +--
|
||||
.../src/spec/targets/aarch64_unknown_none_softfloat.rs | 2 +-
|
||||
.../src/spec/targets/aarch64_unknown_none_softfloat.rs | 1 -
|
||||
compiler/rustc_target/src/spec/targets/aarch64_unknown_uefi.rs | 1 +
|
||||
compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs | 2 +-
|
||||
compiler/rustc_target/src/spec/targets/x86_64_unknown_uefi.rs | 1 +
|
||||
5 files changed, 5 insertions(+), 4 deletions(-)
|
||||
5 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/compiler/rustc_target/src/spec/base/wasm.rs b/compiler/rustc_target/src/spec/base/wasm.rs
|
||||
index 7ede45766ea..b22362227bb 100644
|
||||
index 1f0f564a7790..9173337a1a69 100644
|
||||
--- a/compiler/rustc_target/src/spec/base/wasm.rs
|
||||
+++ b/compiler/rustc_target/src/spec/base/wasm.rs
|
||||
@@ -81,8 +81,7 @@ macro_rules! args {
|
||||
@@ -71,8 +71,7 @@ macro_rules! args {
|
||||
// threaded model which will legalize atomics to normal operations.
|
||||
singlethread: true,
|
||||
|
||||
@ -26,20 +26,19 @@ index 7ede45766ea..b22362227bb 100644
|
||||
|
||||
pre_link_args,
|
||||
diff --git a/compiler/rustc_target/src/spec/targets/aarch64_unknown_none_softfloat.rs b/compiler/rustc_target/src/spec/targets/aarch64_unknown_none_softfloat.rs
|
||||
index 35a4dd72b86..a9c8fc5edb8 100644
|
||||
index 05876891ebd7..9f389f9abec7 100644
|
||||
--- a/compiler/rustc_target/src/spec/targets/aarch64_unknown_none_softfloat.rs
|
||||
+++ b/compiler/rustc_target/src/spec/targets/aarch64_unknown_none_softfloat.rs
|
||||
@@ -15,7 +15,7 @@ pub(crate) fn target() -> Target {
|
||||
let opts = TargetOptions {
|
||||
abi: "softfloat".into(),
|
||||
@@ -16,7 +16,6 @@ pub(crate) fn target() -> Target {
|
||||
cfg_abi: CfgAbi::SoftFloat,
|
||||
rustc_abi: Some(RustcAbi::Softfloat),
|
||||
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
|
||||
- linker: Some("rust-lld".into()),
|
||||
+ linker: Some("lld".into()),
|
||||
features: "+v8a,+strict-align,-neon,-fp-armv8".into(),
|
||||
features: "+v8a,+strict-align,-neon".into(),
|
||||
relocation_model: RelocModel::Static,
|
||||
disable_redzone: true,
|
||||
diff --git a/compiler/rustc_target/src/spec/targets/aarch64_unknown_uefi.rs b/compiler/rustc_target/src/spec/targets/aarch64_unknown_uefi.rs
|
||||
index 327b52389b9..17313d7e8b3 100644
|
||||
index e2c1888e4084..4869f85d1e6e 100644
|
||||
--- a/compiler/rustc_target/src/spec/targets/aarch64_unknown_uefi.rs
|
||||
+++ b/compiler/rustc_target/src/spec/targets/aarch64_unknown_uefi.rs
|
||||
@@ -9,6 +9,7 @@ pub(crate) fn target() -> Target {
|
||||
@ -51,7 +50,7 @@ index 327b52389b9..17313d7e8b3 100644
|
||||
Target {
|
||||
llvm_target: "aarch64-unknown-windows".into(),
|
||||
diff --git a/compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs b/compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs
|
||||
index 1a6343595f5..8015b082cd1 100644
|
||||
index 0afe7a0b68b0..4671032a437c 100644
|
||||
--- a/compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs
|
||||
+++ b/compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs
|
||||
@@ -19,7 +19,7 @@ pub(crate) fn target() -> Target {
|
||||
@ -60,11 +59,11 @@ index 1a6343595f5..8015b082cd1 100644
|
||||
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
|
||||
- linker: Some("rust-lld".into()),
|
||||
+ linker: Some("lld".into()),
|
||||
rustc_abi: Some(RustcAbi::X86Softfloat),
|
||||
rustc_abi: Some(RustcAbi::Softfloat),
|
||||
features: "-mmx,-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-avx,-avx2,+soft-float".into(),
|
||||
supported_sanitizers: SanitizerSet::KCFI | SanitizerSet::KERNELADDRESS,
|
||||
diff --git a/compiler/rustc_target/src/spec/targets/x86_64_unknown_uefi.rs b/compiler/rustc_target/src/spec/targets/x86_64_unknown_uefi.rs
|
||||
index 0cf6a879462..3677fc662de 100644
|
||||
index 333e20bd0ac1..16bea38887be 100644
|
||||
--- a/compiler/rustc_target/src/spec/targets/x86_64_unknown_uefi.rs
|
||||
+++ b/compiler/rustc_target/src/spec/targets/x86_64_unknown_uefi.rs
|
||||
@@ -15,6 +15,7 @@ pub(crate) fn target() -> Target {
|
||||
@ -76,5 +75,5 @@ index 0cf6a879462..3677fc662de 100644
|
||||
// We disable MMX and SSE for now, even though UEFI allows using them. Problem is, you have to
|
||||
// enable these CPU features explicitly before their first use, otherwise their instructions
|
||||
--
|
||||
2.51.0
|
||||
2.53.0
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
From 8364de4cb8edab85efcb895824ce06f4a95bd26f Mon Sep 17 00:00:00 2001
|
||||
From 5e8b069a530092bf57dc19d8f6e5df85db1bd7d3 Mon Sep 17 00:00:00 2001
|
||||
From: Josh Stone <jistone@redhat.com>
|
||||
Date: Mon, 18 Aug 2025 17:11:07 -0700
|
||||
Subject: [PATCH] bootstrap: allow disabling target self-contained
|
||||
Subject: [PATCH 1/2] bootstrap: allow disabling target self-contained
|
||||
|
||||
---
|
||||
bootstrap.example.toml | 5 +++++
|
||||
@ -12,10 +12,10 @@ Subject: [PATCH] bootstrap: allow disabling target self-contained
|
||||
5 files changed, 23 insertions(+)
|
||||
|
||||
diff --git a/bootstrap.example.toml b/bootstrap.example.toml
|
||||
index 6f37e51a47d..ee21bc06bea 100644
|
||||
index 4e850810a30..a3ae9251cf5 100644
|
||||
--- a/bootstrap.example.toml
|
||||
+++ b/bootstrap.example.toml
|
||||
@@ -1077,3 +1077,8 @@
|
||||
@@ -1102,3 +1102,8 @@
|
||||
# pass `off`:
|
||||
# - x86_64-unknown-linux-gnu
|
||||
#default-linker-linux-override = "off" (for most targets)
|
||||
@ -25,10 +25,10 @@ index 6f37e51a47d..ee21bc06bea 100644
|
||||
+# targets may ignore this setting if they have nothing to be contained.
|
||||
+#self-contained = <platform-specific> (bool)
|
||||
diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/core/build_steps/compile.rs
|
||||
index 6857a40ada8..9a98323a704 100644
|
||||
index 02940a80295..f3e7cbafc49 100644
|
||||
--- a/src/bootstrap/src/core/build_steps/compile.rs
|
||||
+++ b/src/bootstrap/src/core/build_steps/compile.rs
|
||||
@@ -368,6 +368,10 @@ fn copy_self_contained_objects(
|
||||
@@ -370,6 +370,10 @@ fn copy_self_contained_objects(
|
||||
compiler: &Compiler,
|
||||
target: TargetSelection,
|
||||
) -> Vec<(PathBuf, DependencyType)> {
|
||||
@ -40,10 +40,10 @@ index 6857a40ada8..9a98323a704 100644
|
||||
builder.sysroot_target_libdir(*compiler, target).join("self-contained");
|
||||
t!(fs::create_dir_all(&libdir_self_contained));
|
||||
diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs
|
||||
index 4b7ae6df360..6bab269a33c 100644
|
||||
index 2f493658ec0..d1ceea0296e 100644
|
||||
--- a/src/bootstrap/src/core/config/config.rs
|
||||
+++ b/src/bootstrap/src/core/config/config.rs
|
||||
@@ -864,6 +864,7 @@ pub(crate) fn parse_inner(
|
||||
@@ -877,6 +877,7 @@ pub(crate) fn parse_inner(
|
||||
runner: target_runner,
|
||||
optimized_compiler_builtins: target_optimized_compiler_builtins,
|
||||
jemalloc: target_jemalloc,
|
||||
@ -51,7 +51,7 @@ index 4b7ae6df360..6bab269a33c 100644
|
||||
} = cfg;
|
||||
|
||||
let mut target = Target::from_triple(&triple);
|
||||
@@ -921,6 +922,9 @@ pub(crate) fn parse_inner(
|
||||
@@ -934,6 +935,9 @@ pub(crate) fn parse_inner(
|
||||
if let Some(s) = target_no_std {
|
||||
target.no_std = s;
|
||||
}
|
||||
@ -62,10 +62,10 @@ index 4b7ae6df360..6bab269a33c 100644
|
||||
target.cxx = target_cxx.map(PathBuf::from);
|
||||
target.ar = target_ar.map(PathBuf::from);
|
||||
diff --git a/src/bootstrap/src/core/config/toml/target.rs b/src/bootstrap/src/core/config/toml/target.rs
|
||||
index 4c7afa50b96..83b8a1b50ca 100644
|
||||
index 847b75e696b..cbe36106a6f 100644
|
||||
--- a/src/bootstrap/src/core/config/toml/target.rs
|
||||
+++ b/src/bootstrap/src/core/config/toml/target.rs
|
||||
@@ -47,6 +47,7 @@ struct TomlTarget {
|
||||
@@ -48,6 +48,7 @@ struct TomlTarget {
|
||||
runner: Option<String> = "runner",
|
||||
optimized_compiler_builtins: Option<CompilerBuiltins> = "optimized-compiler-builtins",
|
||||
jemalloc: Option<bool> = "jemalloc",
|
||||
@ -73,7 +73,7 @@ index 4c7afa50b96..83b8a1b50ca 100644
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,6 +81,7 @@ pub struct Target {
|
||||
@@ -82,6 +83,7 @@ pub struct Target {
|
||||
pub codegen_backends: Option<Vec<CodegenBackendKind>>,
|
||||
pub optimized_compiler_builtins: Option<CompilerBuiltins>,
|
||||
pub jemalloc: Option<bool>,
|
||||
@ -81,7 +81,7 @@ index 4c7afa50b96..83b8a1b50ca 100644
|
||||
}
|
||||
|
||||
impl Target {
|
||||
@@ -91,6 +93,9 @@ pub fn from_triple(triple: &str) -> Self {
|
||||
@@ -93,6 +95,9 @@ pub fn from_triple(triple: &str) -> Self {
|
||||
if triple.contains("emscripten") {
|
||||
target.runner = Some("node".into());
|
||||
}
|
||||
@ -92,10 +92,10 @@ index 4c7afa50b96..83b8a1b50ca 100644
|
||||
}
|
||||
}
|
||||
diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs
|
||||
index dd30f05b728..cc89a84071e 100644
|
||||
index a31eb0c1c80..ca28b2cb0d9 100644
|
||||
--- a/src/bootstrap/src/lib.rs
|
||||
+++ b/src/bootstrap/src/lib.rs
|
||||
@@ -1441,6 +1441,11 @@ fn no_std(&self, target: TargetSelection) -> Option<bool> {
|
||||
@@ -1448,6 +1448,11 @@ fn no_std(&self, target: TargetSelection) -> Option<bool> {
|
||||
self.config.target_config.get(&target).map(|t| t.no_std)
|
||||
}
|
||||
|
||||
@ -108,5 +108,5 @@ index dd30f05b728..cc89a84071e 100644
|
||||
/// and `remote-test-server` binaries.
|
||||
fn remote_tested(&self, target: TargetSelection) -> bool {
|
||||
--
|
||||
2.51.0
|
||||
2.51.1
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
From 862d09fe2e8b0f5ce8fe7bfc592cda66a1d74c08 Mon Sep 17 00:00:00 2001
|
||||
From 51178db0fd3d40917a78e4b039c0412bcd332e31 Mon Sep 17 00:00:00 2001
|
||||
From: Josh Stone <jistone@redhat.com>
|
||||
Date: Mon, 18 Aug 2025 17:13:28 -0700
|
||||
Subject: [PATCH 2/2] set an external library path for wasm32-wasi
|
||||
@ -11,10 +11,10 @@ Subject: [PATCH 2/2] set an external library path for wasm32-wasi
|
||||
4 files changed, 20 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs
|
||||
index 48b01ea2df19..59b87396fed2 100644
|
||||
index d35c3b6bb18..f2a067a9e8c 100644
|
||||
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
|
||||
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
|
||||
@@ -1559,6 +1559,12 @@ fn get_object_file_path(sess: &Session, name: &str, self_contained: bool) -> Pat
|
||||
@@ -1565,6 +1565,12 @@ fn get_object_file_path(sess: &Session, name: &str, self_contained: bool) -> Pat
|
||||
return file_path;
|
||||
}
|
||||
}
|
||||
@ -27,7 +27,7 @@ index 48b01ea2df19..59b87396fed2 100644
|
||||
for search_path in sess.target_filesearch().search_paths(PathKind::Native) {
|
||||
let file_path = search_path.dir.join(name);
|
||||
if file_path.exists() {
|
||||
@@ -2140,6 +2146,10 @@ fn add_library_search_dirs(
|
||||
@@ -2142,6 +2148,10 @@ fn add_library_search_dirs(
|
||||
}
|
||||
ControlFlow::<()>::Continue(())
|
||||
});
|
||||
@ -39,7 +39,7 @@ index 48b01ea2df19..59b87396fed2 100644
|
||||
|
||||
/// Add options making relocation sections in the produced ELF files read-only
|
||||
diff --git a/compiler/rustc_target/src/spec/json.rs b/compiler/rustc_target/src/spec/json.rs
|
||||
index f236be92b3b6..eea6e0c203d2 100644
|
||||
index a972299deea..b3a6fe7c5ac 100644
|
||||
--- a/compiler/rustc_target/src/spec/json.rs
|
||||
+++ b/compiler/rustc_target/src/spec/json.rs
|
||||
@@ -81,6 +81,7 @@ macro_rules! forward_opt {
|
||||
@ -50,7 +50,7 @@ index f236be92b3b6..eea6e0c203d2 100644
|
||||
forward!(pre_link_objects_self_contained);
|
||||
forward!(post_link_objects_self_contained);
|
||||
|
||||
@@ -301,6 +302,7 @@ macro_rules! target_option_val {
|
||||
@@ -308,6 +309,7 @@ macro_rules! target_option_val {
|
||||
target_option_val!(linker_is_gnu_json, "linker-is-gnu");
|
||||
target_option_val!(pre_link_objects);
|
||||
target_option_val!(post_link_objects);
|
||||
@ -58,7 +58,7 @@ index f236be92b3b6..eea6e0c203d2 100644
|
||||
target_option_val!(pre_link_objects_self_contained, "pre-link-objects-fallback");
|
||||
target_option_val!(post_link_objects_self_contained, "post-link-objects-fallback");
|
||||
target_option_val!(link_args - pre_link_args_json, "pre-link-args");
|
||||
@@ -511,6 +513,8 @@ struct TargetSpecJson {
|
||||
@@ -520,6 +522,8 @@ struct TargetSpecJson {
|
||||
pre_link_objects: Option<CrtObjects>,
|
||||
#[serde(rename = "post-link-objects")]
|
||||
post_link_objects: Option<CrtObjects>,
|
||||
@ -68,10 +68,10 @@ index f236be92b3b6..eea6e0c203d2 100644
|
||||
pre_link_objects_self_contained: Option<CrtObjects>,
|
||||
#[serde(rename = "post-link-objects-fallback")]
|
||||
diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs
|
||||
index 07fb1ce63f7c..c076c2836f84 100644
|
||||
index 424026bdcea..3e0d565b00d 100644
|
||||
--- a/compiler/rustc_target/src/spec/mod.rs
|
||||
+++ b/compiler/rustc_target/src/spec/mod.rs
|
||||
@@ -1992,6 +1992,7 @@ pub struct TargetOptions {
|
||||
@@ -2218,6 +2218,7 @@ pub struct TargetOptions {
|
||||
/// Objects to link before and after all other object code.
|
||||
pub pre_link_objects: CrtObjects,
|
||||
pub post_link_objects: CrtObjects,
|
||||
@ -79,7 +79,7 @@ index 07fb1ce63f7c..c076c2836f84 100644
|
||||
/// Same as `(pre|post)_link_objects`, but when self-contained linking mode is enabled.
|
||||
pub pre_link_objects_self_contained: CrtObjects,
|
||||
pub post_link_objects_self_contained: CrtObjects,
|
||||
@@ -2518,6 +2519,7 @@ fn default() -> TargetOptions {
|
||||
@@ -2758,6 +2759,7 @@ fn default() -> TargetOptions {
|
||||
relro_level: RelroLevel::None,
|
||||
pre_link_objects: Default::default(),
|
||||
post_link_objects: Default::default(),
|
||||
@ -88,11 +88,11 @@ index 07fb1ce63f7c..c076c2836f84 100644
|
||||
post_link_objects_self_contained: Default::default(),
|
||||
link_self_contained: LinkSelfContainedDefault::False,
|
||||
diff --git a/compiler/rustc_target/src/spec/targets/wasm32_wasip1.rs b/compiler/rustc_target/src/spec/targets/wasm32_wasip1.rs
|
||||
index 26add451ed25..3eaf050e6823 100644
|
||||
index 2d3dd0862d6..130ce1f225a 100644
|
||||
--- a/compiler/rustc_target/src/spec/targets/wasm32_wasip1.rs
|
||||
+++ b/compiler/rustc_target/src/spec/targets/wasm32_wasip1.rs
|
||||
@@ -21,11 +21,12 @@ pub(crate) fn target() -> Target {
|
||||
options.env = "p1".into();
|
||||
@@ -22,11 +22,12 @@ pub(crate) fn target() -> Target {
|
||||
options.env = Env::P1;
|
||||
options.add_pre_link_args(LinkerFlavor::WasmLld(Cc::Yes), &["--target=wasm32-wasip1"]);
|
||||
|
||||
- options.pre_link_objects_self_contained = crt_objects::pre_wasi_self_contained();
|
||||
@ -108,5 +108,5 @@ index 26add451ed25..3eaf050e6823 100644
|
||||
// Right now this is a bit of a workaround but we're currently saying that
|
||||
// the target by default has a static crt which we're taking as a signal
|
||||
--
|
||||
2.51.0
|
||||
2.51.1
|
||||
|
||||
|
||||
86
SOURCES/rust-key.gpg.ascii
Normal file
86
SOURCES/rust-key.gpg.ascii
Normal file
@ -0,0 +1,86 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Version: GnuPG v1
|
||||
|
||||
mQINBFJEwMkBEADlPACa2K7reD4x5zd8afKx75QYKmxqZwywRbgeICeD4bKiQoJZ
|
||||
dUjmn1LgrGaXuBMKXJQhyA34e/1YZel/8et+HPE5XpljBfNYXWbVocE1UMUTnFU9
|
||||
CKXa4AhJ33f7we2/QmNRMUifw5adPwGMg4D8cDKXk02NdnqQlmFByv0vSaArR5kn
|
||||
gZKnLY6o0zZ9Buyy761Im/ShXqv4ATUgYiFc48z33G4j+BDmn0ryGr1aFdP58tHp
|
||||
gjWtLZs0iWeFNRDYDje6ODyu/MjOyuAWb2pYDH47Xu7XedMZzenH2TLM9yt/hyOV
|
||||
xReDPhvoGkaO8xqHioJMoPQi1gBjuBeewmFyTSPS4deASukhCFOcTsw/enzJagiS
|
||||
ZAq6Imehduke+peAL1z4PuRmzDPO2LPhVS7CDXtuKAYqUV2YakTq8MZUempVhw5n
|
||||
LqVaJ5/XiyOcv405PnkT25eIVVVghxAgyz6bOU/UMjGQYlkUxI7YZ9tdreLlFyPR
|
||||
OUL30E8q/aCd4PGJV24yJ1uit+yS8xjyUiMKm4J7oMP2XdBN98TUfLGw7SKeAxyU
|
||||
92BHlxg7yyPfI4TglsCzoSgEIV6xoGOVRRCYlGzSjUfz0bCMCclhTQRBkegKcjB3
|
||||
sMTyG3SPZbjTlCqrFHy13e6hGl37Nhs8/MvXUysq2cluEISn5bivTKEeeQARAQAB
|
||||
tERSdXN0IExhbmd1YWdlIChUYWcgYW5kIFJlbGVhc2UgU2lnbmluZyBLZXkpIDxy
|
||||
dXN0LWtleUBydXN0LWxhbmcub3JnPokCOAQTAQIAIgUCUkTAyQIbAwYLCQgHAwIG
|
||||
FQgCCQoLBBYCAwECHgECF4AACgkQhauW5vob5f5fYQ//b1DWK1NSGx5nZ3zYZeHJ
|
||||
9mwGCftIaA2IRghAGrNf4Y8DaPqR+w1OdIegWn8kCoGfPfGAVW5XXJg+Oxk6QIaD
|
||||
2hJojBUrq1DALeCZVewzTVw6BN4DG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f5mTcl
|
||||
2jDw6fIeVc4Hd1jBGajNzEqtneqqbdAkPQaLsuD2TMkQfTDJfE/IljwjrhDa9Mi+
|
||||
odtnMWq8vlwOZZ24/8/BNK5qXuCYL67O7AJB4ZQ6BT+g4z96iRLbupzu/XJyXkQF
|
||||
rOY/Ghegvn7fDrnt2KC9MpgeFBXzUp+k5rzUdF8jbCx5apVjA1sWXB9Kh3L+DUwF
|
||||
Mve696B5tlHyc1KxjHR6w9GRsh4=
|
||||
=5FXw
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
@ -1,44 +0,0 @@
|
||||
diff -up rustc-beta-src/src/tools/cargo/Cargo.lock.orig rustc-beta-src/src/tools/cargo/Cargo.lock
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.lock.orig 2025-08-16 15:47:14.000000000 -0700
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.lock 2025-08-18 17:31:39.554771554 -0700
|
||||
@@ -2800,7 +2800,6 @@ checksum = "1c42fe03df2bd3c53a3a9c7317ad
|
||||
dependencies = [
|
||||
"cc",
|
||||
"libc",
|
||||
- "libssh2-sys",
|
||||
"libz-sys",
|
||||
"openssl-sys",
|
||||
"pkg-config",
|
||||
@@ -2847,20 +2846,6 @@ dependencies = [
|
||||
"pkg-config",
|
||||
"vcpkg",
|
||||
]
|
||||
-
|
||||
-[[package]]
|
||||
-name = "libssh2-sys"
|
||||
-version = "0.3.1"
|
||||
-source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
-checksum = "220e4f05ad4a218192533b300327f5150e809b54c4ec83b5a1d91833601811b9"
|
||||
-dependencies = [
|
||||
- "cc",
|
||||
- "libc",
|
||||
- "libz-sys",
|
||||
- "openssl-sys",
|
||||
- "pkg-config",
|
||||
- "vcpkg",
|
||||
-]
|
||||
|
||||
[[package]]
|
||||
name = "libz-rs-sys"
|
||||
diff -up rustc-beta-src/src/tools/cargo/Cargo.toml.orig rustc-beta-src/src/tools/cargo/Cargo.toml
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig 2025-08-16 15:47:14.000000000 -0700
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.toml 2025-08-18 17:33:02.401743230 -0700
|
||||
@@ -46,7 +46,7 @@ curl = "0.4.48"
|
||||
curl-sys = "0.4.83"
|
||||
filetime = "0.2.26"
|
||||
flate2 = { version = "1.1.2", default-features = false, features = ["zlib-rs"] }
|
||||
-git2 = "0.20.2"
|
||||
+git2 = { version = "0.20.2", default-features = false, features = ["https"] }
|
||||
git2-curl = "0.21.0"
|
||||
# When updating this, also see if `gix-transport` further down needs updating or some auth-related tests will fail.
|
||||
gix = { version = "0.73.0", default-features = false, features = ["progress-tree", "parallel", "dirwalk", "status"] }
|
||||
@ -1,23 +0,0 @@
|
||||
diff -up rustc-beta-src/src/tools/cargo/Cargo.lock.orig rustc-beta-src/src/tools/cargo/Cargo.lock
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.lock.orig 2025-11-07 13:31:19.003737886 +0100
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.lock 2025-11-07 13:14:41.637982893 +0100
|
||||
@@ -2835,7 +2835,6 @@ version = "0.35.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "133c182a6a2c87864fe97778797e46c7e999672690dc9fa3ee8e241aa4a9c13f"
|
||||
dependencies = [
|
||||
- "cc",
|
||||
"pkg-config",
|
||||
"vcpkg",
|
||||
]
|
||||
diff -up rustc-beta-src/src/tools/cargo/Cargo.toml.orig rustc-beta-src/src/tools/cargo/Cargo.toml
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig 2025-11-07 13:31:28.338643618 +0100
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.toml 2025-11-07 13:15:00.266505214 +0100
|
||||
@@ -81,7 +81,7 @@ proptest = "1.8.0"
|
||||
pulldown-cmark = { version = "0.13.0", default-features = false, features = ["html"] }
|
||||
rand = "0.9.2"
|
||||
regex = "1.11.3"
|
||||
-rusqlite = { version = "0.37.0", features = ["bundled"] }
|
||||
+rusqlite = { version = "0.37.0", features = [] }
|
||||
rustc-hash = "2.1.1"
|
||||
rustc-stable-hash = "0.1.2"
|
||||
rustfix = { version = "0.9.2", path = "crates/rustfix" }
|
||||
42
SOURCES/rustc-1.97.0-disable-libssh2.patch
Normal file
42
SOURCES/rustc-1.97.0-disable-libssh2.patch
Normal file
@ -0,0 +1,42 @@
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.lock.orig 2026-07-02 11:47:42.914176299 -0500
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.lock 2026-07-02 11:48:03.404372146 -0500
|
||||
@@ -3108,7 +3108,6 @@ checksum = "c9b3acc4b91781bb0b3386669d32
|
||||
dependencies = [
|
||||
"cc",
|
||||
"libc",
|
||||
- "libssh2-sys",
|
||||
"libz-sys",
|
||||
"openssl-sys",
|
||||
"pkg-config",
|
||||
@@ -3156,20 +3155,6 @@ dependencies = [
|
||||
"pkg-config",
|
||||
"vcpkg",
|
||||
]
|
||||
-
|
||||
-[[package]]
|
||||
-name = "libssh2-sys"
|
||||
-version = "0.3.2"
|
||||
-source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
-checksum = "c04141a07bb0c0bc461cb657808764de571702a59bc5c726c400ac9a7625e3ab"
|
||||
-dependencies = [
|
||||
- "cc",
|
||||
- "libc",
|
||||
- "libz-sys",
|
||||
- "openssl-sys",
|
||||
- "pkg-config",
|
||||
- "vcpkg",
|
||||
-]
|
||||
|
||||
[[package]]
|
||||
name = "libz-sys"
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig 2026-07-02 11:47:42.916176318 -0500
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.toml 2026-07-02 11:48:12.603460071 -0500
|
||||
@@ -51,7 +51,7 @@ filetime = "0.2.27"
|
||||
flate2 = { version = "1.1.9", default-features = false, features = ["zlib-rs"] }
|
||||
futures = { version = "0.3.32", default-features = false, features = ["std", "executor", "async-await"]}
|
||||
futures-timer = "3.0.3"
|
||||
-git2 = "0.20.4"
|
||||
+git2 = { version = "0.20.4", default-features = false, features = ["https"] }
|
||||
git2-curl = "0.21.0"
|
||||
# When updating this, also see if `gix-transport` further down needs updating or some auth-related tests will fail.
|
||||
gix = { version = "0.83.0", default-features = false, features = ["sha1", "progress-tree", "parallel", "dirwalk", "status"] }
|
||||
21
SOURCES/rustc-1.97.0-unbundle-sqlite.patch
Normal file
21
SOURCES/rustc-1.97.0-unbundle-sqlite.patch
Normal file
@ -0,0 +1,21 @@
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.lock.orig 2026-06-02 15:55:01.625762200 -0500
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.lock 2026-06-02 15:56:06.143120013 -0500
|
||||
@@ -3152,7 +3152,6 @@ version = "0.37.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b1f111c8c41e7c61a49cd34e44c7619462967221a6443b0ec299e0ac30cfb9b1"
|
||||
dependencies = [
|
||||
- "cc",
|
||||
"pkg-config",
|
||||
"vcpkg",
|
||||
]
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig 2026-06-02 15:54:48.946691882 -0500
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.toml 2026-06-02 15:56:21.480430158 -0500
|
||||
@@ -88,7 +88,7 @@ proptest = "1.11.0"
|
||||
pulldown-cmark = { version = "0.13.3", default-features = false, features = ["html"] }
|
||||
rand = "0.10.1"
|
||||
regex = "1.12.3"
|
||||
-rusqlite = { version = "0.39.0", features = ["bundled"] }
|
||||
+rusqlite = { version = "0.39.0", features = [] }
|
||||
rustc-hash = "2.1.2"
|
||||
rustc-stable-hash = "0.1.2"
|
||||
rustfix = { version = "0.9.7", path = "crates/rustfix" }
|
||||
16
SOURCES/rustc-1.97.1-src.tar.xz.asc
Normal file
16
SOURCES/rustc-1.97.1-src.tar.xz.asc
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
wsFcBAABCgAQBQJqWMn2CRCFq5bm+hvl/gAAONMP+wf2tdyAbygOTk6UWP6YqxQ9
|
||||
a8FzqUppJa3DJBbwuKaqXdqLa79ci8MYRSYaS643zGlBzuVLJpO6Hos4JKMyV5Yd
|
||||
K9vnbkqX3rmDCAwzKY8BPO68bNnspwMXxuv5HmSXSCw1PNEO+LHWpnlOKgEbbrfu
|
||||
mX6t0+AJm56bjN2xhqF7l3Y7XDhQvxGzmQk77HGbhTItY9it9Js4/LVsMtz7cngB
|
||||
R4y+K3ML6p6mHyA9CoLHySWWh0QvJyZyo1Q294LQTLWN1ML+zBlOx1edgH0S8Cru
|
||||
iuPw9ISmlAnQv//sNMCzM+4CYNVSvOQ4kDEJ+qJqVB2bRLfElLQcxnAwMkwWBrKK
|
||||
3bBVmHZRnRAAPOZwtZBziCYd3TX0kIjjgwlTy7zLKE6CVjKYruN73bbMM1KnkSTE
|
||||
Gg+LPHLFt+KNCBgBm6/qDEVguOAklFLRnlwjQarzyQOv+ZHbIl5l55ZDk/PlwsZx
|
||||
SJfWmKEu7/o4MVCTvliV4Aaj/l33GvwIbbcYmlX6lDnvYUuBVCts+o/AMiHrAM3o
|
||||
NErq+Y3J9DQYZ73SpE++2i73NlHRHikdo3uf1AU2LAIVvU+MILnKIoyZE2zc2iJN
|
||||
4SLlcseZWiD78VDBISTXoAHA8X+tIlzfV0Yb54/IDfSPr2j7jY2LqVDFMnUa1jCp
|
||||
flbhIKwroX8xQ32amB7H
|
||||
=Q82X
|
||||
-----END PGP SIGNATURE-----
|
||||
158
SPECS/rust.spec
158
SPECS/rust.spec
@ -9,7 +9,7 @@
|
||||
## END: Set by rpmautospec
|
||||
|
||||
Name: rust
|
||||
Version: 1.92.0
|
||||
Version: 1.97.1
|
||||
Release: %autorelease
|
||||
Summary: The Rust Programming Language
|
||||
License: (Apache-2.0 OR MIT) AND (Artistic-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-3.0)
|
||||
@ -24,9 +24,9 @@ ExclusiveArch: %{rust_arches}
|
||||
# To bootstrap from scratch, set the channel and date from src/stage0
|
||||
# e.g. 1.89.0 wants rustc: 1.88.0-2025-06-26
|
||||
# or nightly wants some beta-YYYY-MM-DD
|
||||
%global bootstrap_version 1.91.0
|
||||
%global bootstrap_channel 1.91.0
|
||||
%global bootstrap_date 2025-10-30
|
||||
%global bootstrap_version 1.96.0
|
||||
%global bootstrap_channel 1.96.0
|
||||
%global bootstrap_date 2026-05-28
|
||||
|
||||
# Only the specified arches will use bootstrap binaries.
|
||||
# NOTE: Those binaries used to be uploaded with every new release, but that was
|
||||
@ -38,7 +38,7 @@ ExclusiveArch: %{rust_arches}
|
||||
# We need CRT files for *-wasi targets, at least as new as the commit in
|
||||
# src/ci/docker/host-x86_64/dist-various-2/build-wasi-toolchain.sh
|
||||
%global wasi_libc_url https://github.com/WebAssembly/wasi-libc
|
||||
%global wasi_libc_ref wasi-sdk-27
|
||||
%global wasi_libc_ref wasi-sdk-32
|
||||
%global wasi_libc_name wasi-libc-%{wasi_libc_ref}
|
||||
%global wasi_libc_source %{wasi_libc_url}/archive/%{wasi_libc_ref}/%{wasi_libc_name}.tar.gz
|
||||
%global wasi_libc_dir %{_builddir}/%{wasi_libc_name}
|
||||
@ -52,37 +52,29 @@ ExclusiveArch: %{rust_arches}
|
||||
%bcond_with llvm_static
|
||||
|
||||
# We can also choose to just use Rust's bundled LLVM, in case the system LLVM
|
||||
# is insufficient. Rust currently requires LLVM 19.0+.
|
||||
# is insufficient. Rust currently requires LLVM 21.0+.
|
||||
# See src/bootstrap/src/core/build_steps/llvm.rs, fn check_llvm_version
|
||||
%global min_llvm_version 20.0.0
|
||||
%global bundled_llvm_version 21.1.3
|
||||
#global llvm_compat_version 19
|
||||
# See src/llvm-project/cmake/Modules/LLVMVersion.cmake for bundled version.
|
||||
%global min_llvm_version 21.0.0
|
||||
%global bundled_llvm_version 22.1.6
|
||||
#global llvm_compat_version 21
|
||||
%global llvm llvm%{?llvm_compat_version}
|
||||
%bcond_with bundled_llvm
|
||||
|
||||
# Requires stable libgit2 1.9, and not the next minor soname change.
|
||||
# This needs to be consistent with the bindings in vendor/libgit2-sys.
|
||||
%global min_libgit2_version 1.9.0
|
||||
%global min_libgit2_version 1.9.2
|
||||
%global next_libgit2_version 1.10.0~
|
||||
%global bundled_libgit2_version 1.9.1
|
||||
%global bundled_libgit2_version 1.9.2
|
||||
%if 0%{?fedora} >= 41
|
||||
%bcond_with bundled_libgit2
|
||||
%else
|
||||
%bcond_without bundled_libgit2
|
||||
%endif
|
||||
|
||||
# Try to use system oniguruma (only used at build time for rust-docs)
|
||||
# src/tools/rustbook -> ... -> onig_sys v69.9.1 needs at least 6.9.3
|
||||
%global min_oniguruma_version 6.9.3
|
||||
%if 0%{?rhel} && 0%{?rhel} < 9
|
||||
%bcond_without bundled_oniguruma
|
||||
%else
|
||||
%bcond_with bundled_oniguruma
|
||||
%endif
|
||||
|
||||
# Cargo uses UPSERTs with omitted conflict targets
|
||||
%global min_sqlite3_version 3.35
|
||||
%global bundled_sqlite3_version 3.50.2
|
||||
%global bundled_sqlite3_version 3.51.3
|
||||
%if 0%{?rhel} && 0%{?rhel} < 10
|
||||
%bcond_without bundled_sqlite3
|
||||
%else
|
||||
@ -128,7 +120,11 @@ ExclusiveArch: %{rust_arches}
|
||||
rpm.define("rustc_package rustc-" .. version_channel .. "-src")
|
||||
end}
|
||||
Source0: https://static.rust-lang.org/dist/%{rustc_package}.tar.xz
|
||||
Source1: %{wasi_libc_source}
|
||||
Source1: https://static.rust-lang.org/dist/%{rustc_package}.tar.xz.asc
|
||||
Source2: https://static.rust-lang.org/rust-key.gpg.ascii
|
||||
|
||||
Source10: %{wasi_libc_source}
|
||||
|
||||
# Sources for bootstrap_arches are inserted by lua below
|
||||
|
||||
# By default, rust tries to use "rust-lld" as a linker for some targets.
|
||||
@ -148,7 +144,7 @@ Patch4: 0001-bootstrap-allow-disabling-target-self-contained.patch
|
||||
Patch5: 0002-set-an-external-library-path-for-wasm32-wasi.patch
|
||||
|
||||
# We don't want to use the bundled library in libsqlite3-sys
|
||||
Patch6: rustc-1.92.0-unbundle-sqlite.patch
|
||||
Patch6: rustc-1.97.0-unbundle-sqlite.patch
|
||||
|
||||
# stage0 tries to copy all of /usr/lib, sometimes unsuccessfully, see #143735
|
||||
Patch7: 0001-only-copy-rustlib-into-stage0-sysroot.patch
|
||||
@ -161,7 +157,7 @@ Source101: cargo_vendor.attr
|
||||
Source102: cargo_vendor.prov
|
||||
|
||||
# Disable cargo->libgit2->libssh2 on RHEL, as it's not approved for FIPS (rhbz1732949)
|
||||
Patch100: rustc-1.92.0-disable-libssh2.patch
|
||||
Patch100: rustc-1.97.0-disable-libssh2.patch
|
||||
|
||||
# Get the Rust triple for any architecture and ABI.
|
||||
%{lua: function rust_triple(arch, abi)
|
||||
@ -227,15 +223,21 @@ end}
|
||||
local channel = rpm.expand("%{bootstrap_channel}")
|
||||
local target_arch = rpm.expand("%{_target_cpu}")
|
||||
for i, arch in ipairs(bootstrap_arches) do
|
||||
i = 1000 + i * 3
|
||||
i = 1000 + i * 6
|
||||
local suffix = channel.."-"..rust_triple(arch)
|
||||
print(string.format("Source%d: %s/cargo-%s.tar.xz\n", i, base, suffix))
|
||||
print(string.format("Source%d: %s/rustc-%s.tar.xz\n", i+1, base, suffix))
|
||||
print(string.format("Source%d: %s/rust-std-%s.tar.xz\n", i+2, base, suffix))
|
||||
print(string.format("Source%d: %s/cargo-%s.tar.xz.asc\n", i+1, base, suffix))
|
||||
print(string.format("Source%d: %s/rustc-%s.tar.xz\n", i+2, base, suffix))
|
||||
print(string.format("Source%d: %s/rustc-%s.tar.xz.asc\n", i+3, base, suffix))
|
||||
print(string.format("Source%d: %s/rust-std-%s.tar.xz\n", i+4, base, suffix))
|
||||
print(string.format("Source%d: %s/rust-std-%s.tar.xz.asc\n", i+5, base, suffix))
|
||||
if arch == target_arch then
|
||||
rpm.define("bootstrap_source_cargo "..i)
|
||||
rpm.define("bootstrap_source_rustc "..i+1)
|
||||
rpm.define("bootstrap_source_std "..i+2)
|
||||
rpm.define("bootstrap_sig_cargo "..i+1)
|
||||
rpm.define("bootstrap_source_rustc "..i+2)
|
||||
rpm.define("bootstrap_sig_rustc "..i+3)
|
||||
rpm.define("bootstrap_source_std "..i+4)
|
||||
rpm.define("bootstrap_sig_std "..i+5)
|
||||
rpm.define("bootstrap_suffix "..suffix)
|
||||
end
|
||||
end
|
||||
@ -251,6 +253,12 @@ BuildRequires: (%{name} >= %{bootstrap_version} with %{name} <= %{version})
|
||||
%global local_rust_root %{_prefix}
|
||||
%endif
|
||||
|
||||
%if 0%{?rhel} && 0%{?rhel} < 11
|
||||
BuildRequires: gnupg2
|
||||
%else
|
||||
BuildRequires: gpgverify
|
||||
%endif
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
@ -259,17 +267,17 @@ BuildRequires: ncurses-devel
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: pkgconfig(libcurl)
|
||||
BuildRequires: pkgconfig(liblzma)
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
|
||||
# Only specific versions of openssl are supported. They are 1.0.2 - 1.1.1, or 3
|
||||
# The openssl-sys crate will also verify the release is supported.
|
||||
BuildRequires: pkgconfig(openssl) < 4
|
||||
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
|
||||
%if %{without bundled_libgit2}
|
||||
BuildRequires: (pkgconfig(libgit2) >= %{min_libgit2_version} with pkgconfig(libgit2) < %{next_libgit2_version})
|
||||
%endif
|
||||
|
||||
%if %{without bundled_oniguruma}
|
||||
BuildRequires: pkgconfig(oniguruma) >= %{min_oniguruma_version}
|
||||
%endif
|
||||
|
||||
%if %{without bundled_sqlite3}
|
||||
BuildRequires: pkgconfig(sqlite3) >= %{min_sqlite3_version}
|
||||
%endif
|
||||
@ -371,6 +379,7 @@ BuildRequires: mingw64-winpthreads-static
|
||||
%if %defined wasm_targets
|
||||
%if %with bundled_wasi_libc
|
||||
BuildRequires: clang%{?llvm_compat_version}
|
||||
BuildRequires: cmake >= 3.26
|
||||
%else
|
||||
BuildRequires: wasi-libc-static
|
||||
%endif
|
||||
@ -658,8 +667,12 @@ the Cargo package manager, and a few convenience macros for rpm builds.
|
||||
|
||||
|
||||
%prep
|
||||
%gpgverify -k 2 -s 1 -d 0
|
||||
|
||||
%ifarch %{bootstrap_arches}
|
||||
%gpgverify -k 2 -s %{bootstrap_sig_cargo} -d %{bootstrap_source_cargo}
|
||||
%gpgverify -k 2 -s %{bootstrap_sig_rustc} -d %{bootstrap_source_rustc}
|
||||
%gpgverify -k 2 -s %{bootstrap_sig_std} -d %{bootstrap_source_std}
|
||||
rm -rf %{local_rust_root}
|
||||
%setup -q -n cargo-%{bootstrap_suffix} -T -b %{bootstrap_source_cargo}
|
||||
./install.sh --prefix=%{local_rust_root} --disable-ldconfig
|
||||
@ -672,12 +685,18 @@ test -f '%{local_rust_root}/bin/rustc'
|
||||
%endif
|
||||
|
||||
%if %{defined wasm_targets} && %{with bundled_wasi_libc}
|
||||
%setup -q -n %{wasi_libc_name} -T -b 1
|
||||
rm -rf %{wasi_libc_dir}/dlmalloc/
|
||||
%setup -q -n %{wasi_libc_name} -T -b 10
|
||||
# We want to make sure we use emmalloc instead of CC0 dlmalloc.
|
||||
# The cmake files need the sources to exist, so just truncate instead.
|
||||
truncate --no-create --size=0 %{wasi_libc_dir}/dlmalloc/src/*.c
|
||||
%endif
|
||||
|
||||
%setup -q -n %{rustc_package}
|
||||
|
||||
# Sanity check that the source version is what we expect,
|
||||
# especially for betas where the tarball is unversioned.
|
||||
test "$(cut -d' ' -f1 ./version)" = "%{lua: print((rpm.expand('%version'):gsub('~', '-'))) }"
|
||||
|
||||
%patch -P1 -p1
|
||||
%patch -P2 -p1
|
||||
%patch -P3 -p1
|
||||
@ -722,15 +741,12 @@ rm -rf src/tools/rustc-perf/collector/*-benchmarks/
|
||||
%clear_dir vendor/libz-sys*/src/zlib{,-ng}/
|
||||
%clear_dir vendor/lzma-sys*/xz-*/
|
||||
%clear_dir vendor/openssl-src*/openssl/
|
||||
%clear_dir vendor/capstone-sys-*/capstone/
|
||||
|
||||
%if %without bundled_libgit2
|
||||
%clear_dir vendor/libgit2-sys*/libgit2/
|
||||
%endif
|
||||
|
||||
%if %without bundled_oniguruma
|
||||
%clear_dir vendor/onig_sys*/oniguruma/
|
||||
%endif
|
||||
|
||||
%if %without bundled_sqlite3
|
||||
%clear_dir vendor/libsqlite3-sys*/sqlite3/
|
||||
%endif
|
||||
@ -783,7 +799,6 @@ end}
|
||||
%global rust_env %{shrink:
|
||||
%{?rustflags:RUSTFLAGS="%{rustflags}"}
|
||||
%{rustc_target_cpus}
|
||||
%{!?with_bundled_oniguruma:RUSTONIG_SYSTEM_LIBONIG=1}
|
||||
%{!?with_bundled_sqlite3:LIBSQLITE3_SYS_USE_PKG_CONFIG=1}
|
||||
%{!?with_disabled_libssh2:LIBSSH2_SYS_USE_PKG_CONFIG=1}
|
||||
%{?llvm_path:PATH="%{llvm_path}:$PATH"}
|
||||
@ -829,10 +844,19 @@ end}
|
||||
|
||||
%if %defined wasm_targets
|
||||
%if %with bundled_wasi_libc
|
||||
%define wasi_libc_flags MALLOC_IMPL=emmalloc CC=clang AR=llvm-ar NM=llvm-nm
|
||||
%make_build --quiet -C %{wasi_libc_dir} %{wasi_libc_flags} TARGET_TRIPLE=wasm32-wasip1
|
||||
# Note that we don't want host CFLAGS here!
|
||||
env -u CFLAGS %__cmake \
|
||||
-S "%{wasi_libc_dir}" \
|
||||
-B "%{wasi_libc_dir}/%{__cmake_builddir}" \
|
||||
-DCMAKE_C_COMPILER=clang \
|
||||
-DCMAKE_C_FLAGS_RELEASE="-O2 -fstack-protector" \
|
||||
-DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY \
|
||||
-DBUILD_SHARED=OFF \
|
||||
-DMALLOC=emmalloc \
|
||||
-DTARGET_TRIPLE=wasm32-wasip1
|
||||
%__cmake --build "%{wasi_libc_dir}/%{__cmake_builddir}" %{?_smp_mflags}
|
||||
%define wasm_target_config %{shrink:
|
||||
--set target.wasm32-wasip1.wasi-root=%{wasi_libc_dir}/sysroot
|
||||
--set target.wasm32-wasip1.wasi-root=%{wasi_libc_dir}/%{__cmake_builddir}/sysroot
|
||||
}
|
||||
%else
|
||||
%define wasm_target_config %{shrink:
|
||||
@ -847,14 +871,8 @@ end}
|
||||
%define profiler %{clang_lib}/%{_arch}-redhat-linux-gnu/libclang_rt.profile.a
|
||||
test -r "%{profiler}"
|
||||
|
||||
# llvm < 21 does not provide a builtins library for s390x.
|
||||
%if "%{_arch}" != "s390x" || 0%{?clang_major_version} >= 21
|
||||
%define optimized_builtins %{clang_lib}/%{_arch}-redhat-linux-gnu/libclang_rt.builtins.a
|
||||
test -r "%{optimized_builtins}"
|
||||
%else
|
||||
%define optimized_builtins false
|
||||
%endif
|
||||
|
||||
|
||||
%configure --disable-option-checking \
|
||||
--docdir=%{_pkgdocdir} \
|
||||
@ -888,6 +906,7 @@ test -r "%{optimized_builtins}"
|
||||
--set build.optimized-compiler-builtins=false \
|
||||
--set rust.llvm-tools=false \
|
||||
--set rust.verify-llvm-ir=true \
|
||||
--set rust.remap-debuginfo=false \
|
||||
--enable-extended \
|
||||
--tools=cargo,clippy,rust-analyzer,rustdoc,rustfmt,src \
|
||||
--enable-vendor \
|
||||
@ -1067,15 +1086,21 @@ rm -rf "./build/%{rust_triple}/test/"
|
||||
# We test this after packaging
|
||||
%global cargo_test_skip_list net_err_suggests_fetch_with_cli
|
||||
|
||||
# Requires access to index.crates.io but neither Fedora nor CentOS/RHEL builders
|
||||
# have DNS resolution, so the test will always fail.
|
||||
%global cargo_test_skip_list %{cargo_test_skip_list} publish_to_crates_io_warns
|
||||
|
||||
%ifarch aarch64
|
||||
# https://github.com/rust-lang/rust/issues/123733
|
||||
%global cargo_test_skip_list %{cargo_test_skip_list} panic_abort_doc_tests
|
||||
%endif
|
||||
%if %with disabled_libssh2
|
||||
# These tests need ssh - guaranteed to fail when libssh2 is disabled.
|
||||
%global cargo_test_skip_list %{cargo_test_skip_list} \\\
|
||||
net_err_suggests_fetch_with_cli \\\
|
||||
%global cargo_test_skip_list %{shrink:
|
||||
%{cargo_test_skip_list}
|
||||
net_err_suggests_fetch_with_cli
|
||||
ssh_something_happens
|
||||
}
|
||||
%endif
|
||||
%if "%{cargo_test_skip_list}" != ""
|
||||
%define cargo_test_skip --test-args "%(printf -- '--skip %%s ' %{cargo_test_skip_list})"
|
||||
@ -1112,16 +1137,18 @@ rm -rf "./build/%{rust_triple}/stage2-tools/%{rust_triple}/cit/"
|
||||
%dir %{rustlibdir}/%{rust_triple}
|
||||
%dir %{rustlibdir}/%{rust_triple}/lib
|
||||
%{rustlibdir}/%{rust_triple}/lib/*.rlib
|
||||
%{rustlibdir}/%{rust_triple}/lib/*.rmeta
|
||||
%{rustlibdir}/%{rust_triple}/lib/*.so
|
||||
%license build/manifests/std/cargo-vendor.txt
|
||||
%license %{_pkgdocdir}/COPYRIGHT-library.html
|
||||
|
||||
%global target_files() \
|
||||
%files std-static-%1 \
|
||||
%dir %{rustlibdir} \
|
||||
%dir %{rustlibdir}/%1 \
|
||||
%dir %{rustlibdir}/%1/lib \
|
||||
%{rustlibdir}/%1/lib/*.rlib \
|
||||
%global target_files() \
|
||||
%files std-static-%1 \
|
||||
%dir %{rustlibdir} \
|
||||
%dir %{rustlibdir}/%1 \
|
||||
%dir %{rustlibdir}/%1/lib \
|
||||
%{rustlibdir}/%1/lib/*.rlib \
|
||||
%{rustlibdir}/%1/lib/*.rmeta \
|
||||
%license build/manifests/std-%1/cargo-vendor.txt
|
||||
|
||||
%if %target_enabled i686-pc-windows-gnu
|
||||
@ -1245,6 +1272,21 @@ rm -rf "./build/%{rust_triple}/stage2-tools/%{rust_triple}/cit/"
|
||||
|
||||
%changelog
|
||||
## START: Generated by rpmautospec
|
||||
* Tue Jul 21 2026 Paul Murphy <murp@redhat.com> - 1.97.1-1
|
||||
- Update to Rust 1.97.1
|
||||
|
||||
* Thu Jun 04 2026 Josh Stone <jistone@redhat.com> - 1.96.0-1
|
||||
- Update to Rust 1.96.0
|
||||
|
||||
* Tue Apr 28 2026 Paul Murphy <murp@redhat.com> - 1.95.0-1
|
||||
- Update to Rust 1.95.0
|
||||
|
||||
* Thu Apr 09 2026 Josh Stone <jistone@redhat.com> - 1.94.1-1
|
||||
- Update to Rust 1.94.1
|
||||
|
||||
* Mon Mar 02 2026 Paul Murphy <murp@redhat.com> - 1.93.0-1
|
||||
- Update to Rust 1.93.0
|
||||
|
||||
* Thu Jan 08 2026 Josh Stone <jistone@redhat.com> - 1.92.0-1
|
||||
- Update to Rust 1.92.0
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user