libx11: skip self if x11 not in DISTRO_FEATURES
authorAnders Darander <anders@chargestorm.se>
Tue, 16 Aug 2011 15:12:15 +0000 (15:12 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:14:26 +0000 (08:14 -0800)
This stops (most) x11 packages leaking into a non-x11 distro by mistake.

(From meta-openembedded rev: 4edc680bfd93f9358f099e1513f916c46347f538)

Signed-off-by: Phil Blundell <philb@gnu.org>
The patch was imported from the oe-core git server
(git://git.openembedded.org/openembedded-core) as of commit id
2f94ff4fdb66755ba2448794baea19315ff96273.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libx11.inc

index 2aa9700..9f7e990 100644 (file)
@@ -45,3 +45,8 @@ do_compile_prepend() {
                cd ../../
        ) || exit 1
 }
+
+python () {
+       if not oe.utils.contains ('DISTRO_FEATURES', 'x11', True, False, d):
+                 raise bb.parse.SkipPackage("X11 not enabled for this DISTRO")
+}