summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorSundeep KOKKONDA <sundeep.kokkonda@windriver.com>2024-03-08 07:37:07 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-18 12:21:45 +0000
commit3dc62ba4a8ba89054f15de564ee4f9ce5935bdc8 (patch)
tree832ee82c0049a1144056a70e506ef58ba3777227 /meta/recipes-devtools
parent4293466bf684dda580bf8433bb1716b6b875bd02 (diff)
downloadpoky-3dc62ba4a8ba89054f15de564ee4f9ce5935bdc8.tar.gz
rust: reproducibility issue fix with v1.75
Patch updated with upstream fix. https://github.com/rust-lang/rust/pull/121959/commits/a9a979839bbdfec48c75d618ab0dce8a953589b8 (From OE-Core rev: 2eceaa4b6ca398ec233b18c1064970bdf68a9258) Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/rust/files/repro-issue-fix-with-v175.patch37
1 files changed, 25 insertions, 12 deletions
diff --git a/meta/recipes-devtools/rust/files/repro-issue-fix-with-v175.patch b/meta/recipes-devtools/rust/files/repro-issue-fix-with-v175.patch
index 6840bafff8..fe0507c981 100644
--- a/meta/recipes-devtools/rust/files/repro-issue-fix-with-v175.patch
+++ b/meta/recipes-devtools/rust/files/repro-issue-fix-with-v175.patch
@@ -1,23 +1,36 @@
1rust: reproducibility issue fix with v1.75 1rust: reproducibility issue fix with v1.75
2 2
3With 1.75 rust release, the '.rustc' section of shared object libs are embedded with absolute path names which is casuing reproducibiluty issues. 3With 1.75 rust release, the '.rustc' section of shared object libs are embedded with absolute path names which is casuing reproducibility issues.
4This change will fix the path name format back to '/rust/$hash' as in earlier versions. 4This change will fix the path name format back to '/rust/$hash' as in earlier versions.
5 5
6Below are the links for detailed bug description & discusssion with upstream rust. 6Below are the links for detailed bug description & discusssion with upstream rust.
7https://github.com/rust-lang/rust/issues/120825#issuecomment-1964307219 7https://github.com/rust-lang/rust/issues/120825#issuecomment-1964307219
8https://github.com/rust-lang/rust/issues/120825#issuecomment-1964652656 8https://github.com/rust-lang/rust/issues/120825#issuecomment-1964652656
9 9
10Upstream-Status: Inappropriate [patches need rework] 10Upstream-Status: Backport [https://github.com/rust-lang/rust/pull/121959/commits/a9a979839bbdfec48c75d618ab0dce8a953589b8]
11Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com> 11Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
12--- 12---
13--- a/compiler/rustc_session/src/session.rs 2023-12-21 08:55:28.000000000 -0800 13--- a/compiler/rustc_session/src/session.rs 2023-12-21 08:55:28.000000000 -0800
14+++ b/compiler/rustc_session/src/session.rs 2024-02-26 07:29:15.527577022 -0800 14+++ b/compiler/rustc_session/src/session.rs 2024-02-26 07:29:15.527577022 -0800
15@@ -1269,7 +1269,7 @@ 15@@ -1260,19 +1260,6 @@
16 | CrateType::Rlib 16 }
17 | CrateType::Staticlib 17
18 | CrateType::Cdylib => continue, 18 pub fn should_prefer_remapped_for_codegen(&self) -> bool {
19- // bail out, if any of the requested crate types aren't:
20- // "compiled executables or libraries"
21- for crate_type in &self.opts.crate_types {
22- match crate_type {
23- CrateType::Executable
24- | CrateType::Dylib
25- | CrateType::Rlib
26- | CrateType::Staticlib
27- | CrateType::Cdylib => continue,
19- CrateType::ProcMacro => return false, 28- CrateType::ProcMacro => return false,
20+ CrateType::ProcMacro => return true, 29- }
21 } 30- }
22 } 31-
23 32 let has_split_debuginfo = match self.split_debuginfo() {
33 SplitDebuginfo::Off => false,
34 SplitDebuginfo::Packed => true,
35
36