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>
This commit is contained in:
Khem Raj
2024-08-15 22:05:59 -07:00
committed by Armin Kuster
parent b808d471d7
commit 75612aaa3d

View File

@@ -70,3 +70,10 @@ RDEPENDS:${PN} = " \
python3-pillow \
python3-pygments \
"
do_compile:append() {
for f in `find ${B} -name *.c`
do
sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d" $f
done
}