python3-frozenlist: support reproducibility

In order to make the generated library be reproducible, build wheel
in source dir other than tmp dir (/tmp/xxxxxx), then yocto toolchain's
option -fdebug-prefix-map could work as expected

Note: To support reproducibility, it also requires oe-core commit [1] to be merged

[1] https://git.openembedded.org/openembedded-core/commit/?id=61d98d12eca1c7bdf3b7387a820c83d3b8fad965

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Hongxu Jia 2025-09-26 16:19:09 +08:00 committed by Khem Raj
parent ff2a53be1c
commit 9ae27ec162
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,31 @@
From 606843ad079d9d0dac1172533d42b5a2327b99ed Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Wed, 17 Sep 2025 15:41:09 +0800
Subject: [PATCH] build wheel in place
In order to make the generated library be reproducible, build wheel
in source dir other than tmp dir (/tmp/xxxxxx), then yocto toolchain's
option -fdebug-prefix-map could work as expected
Upstream-Status: Pending
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
packaging/pep517_backend/_backend.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packaging/pep517_backend/_backend.py b/packaging/pep517_backend/_backend.py
index 61cad34..d5d839e 100644
--- a/packaging/pep517_backend/_backend.py
+++ b/packaging/pep517_backend/_backend.py
@@ -316,7 +316,7 @@ def build_wheel(
"""
with maybe_prebuild_c_extensions(
line_trace_cython_when_unset=False,
- build_inplace=False,
+ build_inplace=True,
config_settings=config_settings,
):
return _setuptools_build_wheel(
--
2.34.1

View File

@ -7,6 +7,9 @@ SRC_URI[sha256sum] = "2e310d81923c2437ea8670467121cc3e9b0f76d3043cc1d2331d56c7fb
inherit pypi python_setuptools_build_meta cython
SRC_URI += " \
file://0001-build-wheel-in-place.patch \
"
DEPENDS += " \
python3-expandvars-native \
"