]> code.ossystems Code Review - openembedded-core.git/commitdiff
python-xcbgen: improve reproducibility
authorHongxu Jia <hongxu.jia@windriver.com>
Mon, 5 Feb 2018 01:27:59 +0000 (20:27 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 9 Feb 2018 14:31:59 +0000 (14:31 +0000)
Use relative path to generate .pyc files could remove build host
references which leads to non-reproducible builds.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb

index bc04bc48ea7494e55b11cae6932ac7a51ef84856..be6b1a0200e5c4679f706f3b406d61592ee6e671 100644 (file)
@@ -36,5 +36,5 @@ do_install_append() {
     # Makefile's do_install creates .pyc files for python3, now also create
     # them for python2 so that they will be recorded by manifest, and can be
     # cleaned correctly.
-    python -m py_compile ${D}${libdir}/xcb-proto/xcbgen/*.py
+    (cd ${D}; python -m py_compile ./${libdir}/xcb-proto/xcbgen/*.py)
 }