summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorYash Shinde <Yash.Shinde@windriver.com>2024-02-29 08:32:42 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-01 09:31:11 +0000
commit3970a4888556bde1f893757eae603c9619cfec5f (patch)
treeb8b249cd24d0685ae35b47a68c3a99fe49bbb0dc /meta/recipes-devtools
parent694b85a217209787fe8c503a4b697dc6c2bfbe84 (diff)
downloadpoky-3970a4888556bde1f893757eae603c9619cfec5f.tar.gz
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. https://github.com/rust-lang/rust/issues/120825#issuecomment-1964307219 https://github.com/rust-lang/rust/issues/120825#issuecomment-1964652656 (From OE-Core rev: a80ce6e3c023809d1ec13d19e8acb25770b54737) Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com> Signed-off-by: Yash Shinde <Yash.Shinde@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.patch23
-rw-r--r--meta/recipes-devtools/rust/rust-source.inc1
2 files changed, 24 insertions, 0 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
new file mode 100644
index 0000000000..6840bafff8
--- /dev/null
+++ b/meta/recipes-devtools/rust/files/repro-issue-fix-with-v175.patch
@@ -0,0 +1,23 @@
1rust: reproducibility issue fix with v1.75
2
3With 1.75 rust release, the '.rustc' section of shared object libs are embedded with absolute path names which is casuing reproducibiluty issues.
4This change will fix the path name format back to '/rust/$hash' as in earlier versions.
5
6Below are the links for detailed bug description & discusssion with upstream rust.
7https://github.com/rust-lang/rust/issues/120825#issuecomment-1964307219
8https://github.com/rust-lang/rust/issues/120825#issuecomment-1964652656
9
10Upstream-Status: Inappropriate [patches need rework]
11Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
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
diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc
index 8ae8add495..6bef99039d 100644
--- a/meta/recipes-devtools/rust/rust-source.inc
+++ b/meta/recipes-devtools/rust/rust-source.inc
@@ -12,6 +12,7 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n
12 file://rustc-bootstrap.patch;patchdir=${RUSTSRC} \ 12 file://rustc-bootstrap.patch;patchdir=${RUSTSRC} \
13 file://target-build-value.patch;patchdir=${RUSTSRC} \ 13 file://target-build-value.patch;patchdir=${RUSTSRC} \
14 file://0001-Handle-vendored-sources-when-remapping-paths.patch;patchdir=${RUSTSRC} \ 14 file://0001-Handle-vendored-sources-when-remapping-paths.patch;patchdir=${RUSTSRC} \
15 file://repro-issue-fix-with-v175.patch;patchdir=${RUSTSRC} \
15" 16"
16SRC_URI[rust.sha256sum] = "4526f786d673e4859ff2afa0bab2ba13c918b796519a25c1acce06dba9542340" 17SRC_URI[rust.sha256sum] = "4526f786d673e4859ff2afa0bab2ba13c918b796519a25c1acce06dba9542340"
17 18