diff options
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb | 17 |
1 files changed, 17 insertions, 0 deletions
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 712ab6c59a..25a8373e0b 100644 --- a/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb +++ b/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb | |||
@@ -34,3 +34,20 @@ RDEPENDS_${PN}-dev = "" | |||
34 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" | 34 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" |
35 | 35 | ||
36 | BBCLASSEXTEND = "native nativesdk" | 36 | BBCLASSEXTEND = "native nativesdk" |
37 | |||
38 | # Need to do this dance because we're forcing the use of host Python above and | ||
39 | # if xcb-proto is built with Py3.5 and then re-used from sstate on a host with | ||
40 | # Py3.6 the second build will write new cache files into the sysroot which won't | ||
41 | # be listed in the manifest so won't be deleted, resulting in an error on | ||
42 | # rebuilds. Solve this by deleting the entire cache directory when this package | ||
43 | # is removed from the sysroot. | ||
44 | SSTATEPOSTINSTFUNCS += "xcb_sstate_postinst" | ||
45 | xcb_sstate_postinst() { | ||
46 | if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ] | ||
47 | then | ||
48 | cat <<EOF >${SSTATE_INST_POSTRM} | ||
49 | #!/bin/sh | ||
50 | rm -rf ${libdir}/xcb-proto/xcbgen/__pycache__ | ||
51 | EOF | ||
52 | fi | ||
53 | } | ||