Skip to contentSkip to conversation

xorg-lib: allow native building without x11 DISTRO_FEATURES

PATCH New Ross Burton 1 participant 1 message Dec 23, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xorg-lib: allow native building without x11 DISTRO_FEATURES

The Xorg libraries use REQUIRED_DISTRO_FEATURES to stop building on distributions without the x11 feature but this stops people building native tooling that uses libX11, such as libsdl-native.

---
 meta/recipes-graphics/xorg-lib/libxcb_1.11.1.bb    | 1 +
 meta/recipes-graphics/xorg-lib/xorg-lib-common.inc | 1 +
 2 files changed, 2 insertions(+)
meta/recipes-graphics/xorg-lib/libxcb_1.11.1.bb +1 -0
index 4372be1..0856c19 100644
@@ -29,6 +29,7 @@ inherit autotools pkgconfig distro_features_check
 
 # The libxau and others requires x11 in DISTRO_FEATURES
 REQUIRED_DISTRO_FEATURES = "x11"
+REQUIRED_DISTRO_FEATURES_class-native = ""
 
 python populate_packages_prepend () {
     do_split_packages(d, '${libdir}', '^libxcb-(.*)\.so\..*$', 'libxcb-%s', 'XCB library module for %s', allow_links=True)
meta/recipes-graphics/xorg-lib/xorg-lib-common.inc +1 -0
index 09df010..6f4e444 100644
@@ -24,3 +24,4 @@ UNKNOWN_CONFIGURE_WHITELIST += "--enable-malloc0returnsnull --disable-malloc0ret
 "
 
 REQUIRED_DISTRO_FEATURES ?= "x11"
+REQUIRED_DISTRO_FEATURES_class-native = ""
Signature · 1 line
2.6.4