Skip to content

Commit 8faf411

Browse files
Yashinde145rpurdie
authored andcommitted
rust: reproducibility issue fix with v1.75
With 1.75 rust release, the '.rustc' section of shared object libs are embedded with absolute path names which is casuing reproducibiluty issues. This change will fix the path name format back to '/rust/$hash' as in earlier versions. Below are the links for detailed bug description & discusssion with upstream rust. rust-lang/rust#120825 (comment) rust-lang/rust#120825 (comment) (From OE-Core rev: 37cbccfe18b0c8f614a130f923aa6a2519ec62f3) Signed-off-by: Sundeep KOKKONDA <[email protected]> Signed-off-by: Yash Shinde <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
1 parent cc2c97c commit 8faf411

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
rust: reproducibility issue fix with v1.75
2+
3+
With 1.75 rust release, the '.rustc' section of shared object libs are embedded with absolute path names which is casuing reproducibiluty issues.
4+
This change will fix the path name format back to '/rust/$hash' as in earlier versions.
5+
6+
Below are the links for detailed bug description & discusssion with upstream rust.
7+
https://github.com/rust-lang/rust/issues/120825#issuecomment-1964307219
8+
https://github.com/rust-lang/rust/issues/120825#issuecomment-1964652656
9+
10+
Upstream-Status: Inappropriate [patches need rework]
11+
Signed-off-by: Sundeep KOKKONDA <[email protected]>
12+
---
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
15+
@@ -1269,7 +1269,7 @@
16+
| CrateType::Rlib
17+
| CrateType::Staticlib
18+
| CrateType::Cdylib => continue,
19+
- CrateType::ProcMacro => return false,
20+
+ CrateType::ProcMacro => return true,
21+
}
22+
}
23+

meta/recipes-devtools/rust/rust-source.inc

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n
1212
file://rustc-bootstrap.patch;patchdir=${RUSTSRC} \
1313
file://target-build-value.patch;patchdir=${RUSTSRC} \
1414
file://0001-Handle-vendored-sources-when-remapping-paths.patch;patchdir=${RUSTSRC} \
15+
file://repro-issue-fix-with-v175.patch;patchdir=${RUSTSRC} \
1516
"
1617
SRC_URI[rust.sha256sum] = "4526f786d673e4859ff2afa0bab2ba13c918b796519a25c1acce06dba9542340"
1718

0 commit comments

Comments
 (0)