summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-08-15 22:05:59 -0700
committerArmin Kuster <akuster@mvista.com>2025-04-16 20:30:23 -0400
commit75612aaa3dc02c721ce2d17f37e9d815b2d9ce42 (patch)
treeeed3b3bd388e326e9c1d69a9ee8091d6b3cbc2bc
parentb808d471d70e86177e15ca4070f4e90041b9043a (diff)
downloadmeta-openembedded-75612aaa3dc02c721ce2d17f37e9d815b2d9ce42.tar.gz
python3-kivy: Remove buildpaths from comments in generated C sources
Cython does not provide a direct option to disable or customize the metadata written in the generated C files. The metadata includes information like the Cython version and absolute paths to the original Cython files, which can be problematic for doing reproducible builds Therefore edit out these comments from the cython generated C files they are nicely tucked between two known tags at the top of file. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Armin Kuster <akuster@mvista.com>
-rw-r--r--meta-python/recipes-devtools/python/python3-kivy_2.3.0.bb7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-kivy_2.3.0.bb b/meta-python/recipes-devtools/python/python3-kivy_2.3.0.bb
index 991aa0f7d8..2c66db188b 100644
--- a/meta-python/recipes-devtools/python/python3-kivy_2.3.0.bb
+++ b/meta-python/recipes-devtools/python/python3-kivy_2.3.0.bb
@@ -70,3 +70,10 @@ RDEPENDS:${PN} = " \
70 python3-pillow \ 70 python3-pillow \
71 python3-pygments \ 71 python3-pygments \
72" 72"
73
74do_compile:append() {
75 for f in `find ${B} -name *.c`
76 do
77 sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d" $f
78 done
79}