xcb: don't build-depend on python
PATCH 1/1 xcb: don't build-depend on python
xcb-proto had a dependency on python-native as it builds and installs a Python module, but xcb-proto is very low in the build to force a dependency on python-native.
As it turns out libxcb simply asks pkg-config for the full path to the module xcb-proto installed and uses it directly so there is no need to build python-native.
Also remove the dependency on xcb-proto-native as libxcb uses the data files and tooling from the target sysroot, and patching it to use the native sysroot adds complication for no good reason.
Signed-off-by Ross Burton <[email protected]>
--- meta/recipes-graphics/xorg-lib/libxcb_1.11.1.bb | 4 ++-- meta/recipes-graphics/xorg-proto/xcb-proto.inc | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-)
meta/recipes-graphics/xorg-lib/libxcb_1.11.1.bb +2 -2
@@ -17,13 +17,13 @@ SRC_URI[sha256sum] = "b720fd6c7d200e5371affdb3f049cc8f88cff9aed942ff1b824d95eedb BBCLASSEXTEND = "native nativesdk" -DEPENDS = "xcb-proto xproto libxau xcb-proto-native libpthread-stubs libxdmcp" +DEPENDS = "xcb-proto xproto libxau libpthread-stubs libxdmcp" PACKAGES_DYNAMIC = "^libxcb-.*" FILES_${PN} = "${libdir}/libxcb.so.*" -inherit autotools pkgconfig pythonnative distro_features_check +inherit autotools pkgconfig distro_features_check # The libxau and others requires x11 in DISTRO_FEATURES REQUIRED_DISTRO_FEATURES = "x11"
meta/recipes-graphics/xorg-proto/xcb-proto.inc +1 -2
@@ -11,7 +11,7 @@ LICENSE = "MIT-X" SRC_URI = "http://xcb.freedesktop.org/dist/xcb-proto-${PV}.tar.bz2" -inherit autotools pkgconfig pythonnative +inherit autotools pkgconfig PACKAGES += "python-xcbgen"
@@ -21,5 +21,4 @@ FILES_python-xcbgen = "${libdir}/python*" RDEPENDS_${PN}-dev = "" RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" -DEPENDS_append_class-native = " python-native" BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.1.4