diff options
author | Tim Orling <ticotimo@gmail.com> | 2023-12-16 21:41:28 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-17 19:07:21 +0000 |
commit | c5cd7c5900bdf9bc19174db49ecdba355b59cd06 (patch) | |
tree | cb07b02c161c43852eef1be92d9b4e24b3289229 | |
parent | d97636a0e53d7d7c528419464b3f157b97cf55c0 (diff) | |
download | poky-c5cd7c5900bdf9bc19174db49ecdba355b59cd06.tar.gz |
python3-maturin: bzip2-sys reproduciblility
The /usr/bin/.debug/maturin binary ends up with the path
to the bzip-sys (bzip2-1.0.8) source in the python3-maturin-dbg package
Fix this by mapping the debug path for CARGO_HOME
to TARGET_DBGSRC_DIR/cargo_home via CFLAGS. This is
required because the bzip-sys crate is compiled using
the cc crate and we override default CFLAGS.
(From OE-Core rev: 58a4f8b3afb67e6818f544e74a7f1dd2b1a66f86)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/python/python3-maturin_1.4.0.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-maturin_1.4.0.bb b/meta/recipes-devtools/python/python3-maturin_1.4.0.bb index 6f7cc6ef39..07ad1201b8 100644 --- a/meta/recipes-devtools/python/python3-maturin_1.4.0.bb +++ b/meta/recipes-devtools/python/python3-maturin_1.4.0.bb | |||
@@ -9,6 +9,8 @@ SRC_URI[sha256sum] = "ed12e1768094a7adeafc3a74ebdb8dc2201fa64c4e7e31f14cfc70378b | |||
9 | 9 | ||
10 | S = "${WORKDIR}/maturin-${PV}" | 10 | S = "${WORKDIR}/maturin-${PV}" |
11 | 11 | ||
12 | CFLAGS:append = "-fdebug-prefix-map=${CARGO_HOME}=${TARGET_DBGSRC_DIR}/cargo_home" | ||
13 | |||
12 | DEPENDS += "\ | 14 | DEPENDS += "\ |
13 | python3-setuptools-rust-native \ | 15 | python3-setuptools-rust-native \ |
14 | python3-semantic-version-native \ | 16 | python3-semantic-version-native \ |