]> code.ossystems Code Review - openembedded-core.git/commitdiff
libx11: skip self if x11 not in DISTRO_FEATURES
authorPhil Blundell <philb@gnu.org>
Fri, 12 Aug 2011 15:57:38 +0000 (16:57 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 15 Aug 2011 14:13:34 +0000 (15:13 +0100)
This stops (most) x11 packages leaking into a non-x11 distro by mistake.

Signed-off-by: Phil Blundell <philb@gnu.org>
meta/recipes-graphics/xorg-lib/libx11.inc

index c156ce6dcbdd4d2cbcf5d2f7ad00d95b039fcb2c..455753f5dbc288612db67de041d4586ec8eaed10 100644 (file)
@@ -42,3 +42,8 @@ do_compile() {
 # Multiple libx11 derivatives from from this file and are selected by virtual/libx11
 # A world build should only build the correct version, not all of them.
 EXCLUDE_FROM_WORLD = "1"
+
+python () {
+       if not oe.utils.contains ('DISTRO_FEATURES', 'x11', True, False, d):
+                 raise bb.parse.SkipPackage("X11 not enabled for this DISTRO")
+}