summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-cython
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:31:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:31:53 +0000
commit8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch)
treeefdc32587159d0050a69009bdf2330a531727d95 /meta/recipes-devtools/python/python3-cython
parentd412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff)
downloadpoky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz
The poky repository master branch is no longer being updated.
You can either: a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs b) use the new bitbake-setup You can find information about either approach in our documentation: https://docs.yoctoproject.org/ Note that "poky" the distro setting is still available in meta-yocto as before and we continue to use and maintain that. Long live Poky! Some further information on the background of this change can be found in: https://lists.openembedded.org/g/openembedded-architecture/message/2179 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-cython')
-rw-r--r--meta/recipes-devtools/python/python3-cython/0001-Replace-not-predictable-build-path-prefix-with-hardc.patch72
1 files changed, 0 insertions, 72 deletions
diff --git a/meta/recipes-devtools/python/python3-cython/0001-Replace-not-predictable-build-path-prefix-with-hardc.patch b/meta/recipes-devtools/python/python3-cython/0001-Replace-not-predictable-build-path-prefix-with-hardc.patch
deleted file mode 100644
index 1fbbd8fd48..0000000000
--- a/meta/recipes-devtools/python/python3-cython/0001-Replace-not-predictable-build-path-prefix-with-hardc.patch
+++ /dev/null
@@ -1,72 +0,0 @@
1From 1690c505f1387e1884565021991a162e2f88f2b9 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 17 Sep 2025 01:42:08 -0700
4Subject: [PATCH] Replace not predictable build path prefix with hardcode
5 string in the generated output file
6
7The build path may contain tmp dir which is not predictable, it caused
8the generated output file is not stable at each build and made
9the generated library is not reproducible [1] between builds
10
11vim frozenlist/_frozenlist.cpp
12...
13/* BEGIN: Cython Metadata
14{
15 "distutils": {
16 "depends": [],
17 "language": "c++",
18 "name": "frozenlist._frozenlist",
19 "sources": [
20 "/tmp/.tmp-frozenlist-pep517-cfdvygni/src/frozenlist/_frozenlist.pyx"
21 ]
22 },
23 "module_name": "frozenlist._frozenlist"
24}
25END: Cython Metadata */
26...
27
28Replace build path prefix with hardcode `build_path', it is no harm to
29tweak comments in source file, after applied this commit,
30vim frozenlist/_frozenlist.cpp
31...
32/* BEGIN: Cython Metadata
33{
34 "distutils": {
35 "depends": [],
36 "language": "c++",
37 "name": "frozenlist._frozenlist",
38 "sources": [
39 "build_path/frozenlist/_frozenlist.pyx"
40 ]
41 },
42 "module_name": "frozenlist._frozenlist"
43}
44END: Cython Metadata */
45...
46
47[1] https://reproducible-builds.org/
48
49Upstream-Status: Submitted [https://github.com/cython/cython/pull/7162]
50Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
51---
52 Cython/Compiler/ModuleNode.py | 4 +++-
53 1 file changed, 3 insertions(+), 1 deletion(-)
54
55diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
56index 6672cb986..b1123515e 100644
57--- a/Cython/Compiler/ModuleNode.py
58+++ b/Cython/Compiler/ModuleNode.py
59@@ -779,7 +779,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
60 code.put_generated_by()
61 if metadata:
62 code.putln("/* BEGIN: Cython Metadata")
63- code.putln(json.dumps(metadata, indent=4, sort_keys=True))
64+ _metadata = json.dumps(metadata, indent=4, sort_keys=True)
65+ _metadata = _metadata.replace(os.getcwd(), 'build_path')
66+ code.putln(_metadata)
67 code.putln("END: Cython Metadata */")
68 code.putln("")
69
70--
712.49.0
72