python3-cython: make generated source file be reproducible

While python3 module use cython to build library, the generated source file
is not stable at each build and made the generated library not be reproducible

This commit replaces un-predictable string with hardcode string in generated
source file to assure the generated library should be reproducible

(From OE-Core rev: 61d98d12eca1c7bdf3b7387a820c83d3b8fad965)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Hongxu Jia
2025-09-17 21:50:47 +08:00
committed by Richard Purdie
parent 4f99a9eb03
commit 52db4985e5
2 changed files with 76 additions and 0 deletions

View File

@@ -11,6 +11,10 @@ SRC_URI[sha256sum] = "10ee785e42328924b78f75a74f66a813cb956b4a9bc91c44816d089d59
inherit pypi setuptools3 cython
SRC_URI += " \
file://0001-Replace-not-predictable-build-path-prefix-with-hardc.patch \
"
# No need to depend on self
DEPENDS:remove = "python3-cython-native"