[OE-core] [PATCH 1/2] xcb-proto: create blank .pyc files in xcbgen dir
Robert Yang
liezhi.yang at windriver.com
Thu Sep 29 09:02:11 UTC 2016
The .pyc files will be generated when "bitbake libxcb", but they can't
be removed when "bitabke xcb-proto -ccleansstate" since they are not
tracked by manifest, create blank .pyc files can fix the problem.
When switch
MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
$ bitbake world
The libdir is /usr/lib64 in this build
The
MACHINE = "qemux86-64"
$ bitbake world
Now libdir is /usr/lib, the previous /usr/lib64 can be removed totally
after this patch.
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb b/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb
index 8bdca32..d33910b 100644
--- a/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb
+++ b/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb
@@ -28,3 +28,9 @@ RDEPENDS_${PN}-dev = ""
RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
BBCLASSEXTEND = "native nativesdk"
+
+do_install_append() {
+ # Create blank .pyc files, so that they will be recorded in
+ # manifest, and can be cleaned correctly.
+ find ${D}${libdir}/xcb-proto/xcbgen -type f -maxdepth 1 -name '*.py' -exec touch {}c \;
+}
--
2.9.0
More information about the Openembedded-core
mailing list