]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
rust: reproducibility issue fix
authorSundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Wed, 11 Oct 2023 04:05:50 +0000 (21:05 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Oct 2023 08:36:02 +0000 (09:36 +0100)
commit6ae62259afbbe861ed74211dab18a27b8c8d8b7a
tree3af7e636896ced4719ee72dd73151d0be59371a1
parent1c35beb935d42e200370b54f9aa3848b940966dd
rust: reproducibility issue fix

The '--remap-path-prefix' option removes all references to build directory
structure in the debug information within the compiled output for Cargo
dependencies and the project's binary.

However, some references to build directories remains in the final binary
in .rustc section in the form of compressed metadata and this makes the
build output dependent on the folder structure of the computer it's compiled on.

So, for reproducible builds, use the configuration option
'remap-debuginfo = true' along with the '--remap-path-prefix'.

[YOCTO# 14875]

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/reproducible.py
meta/recipes-devtools/rust/rust_1.70.0.bb