summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2011-08-12 16:57:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-15 15:26:19 +0100
commit0a5fe1cdd1f4beb095c4043e136075cf9306cef3 (patch)
tree133c4251f90e967a9b3a539f85bc8e48019b4471 /meta
parent254b09ede7d2e67ad74bb31c714b450c8a1f2cfb (diff)
downloadpoky-0a5fe1cdd1f4beb095c4043e136075cf9306cef3.tar.gz
libx11: skip self if x11 not in DISTRO_FEATURES
This stops (most) x11 packages leaking into a non-x11 distro by mistake. (From OE-Core rev: 2f94ff4fdb66755ba2448794baea19315ff96273) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libx11.inc b/meta/recipes-graphics/xorg-lib/libx11.inc
index c156ce6dcb..455753f5db 100644
--- a/meta/recipes-graphics/xorg-lib/libx11.inc
+++ b/meta/recipes-graphics/xorg-lib/libx11.inc
@@ -42,3 +42,8 @@ do_compile() {
42# Multiple libx11 derivatives from from this file and are selected by virtual/libx11 42# Multiple libx11 derivatives from from this file and are selected by virtual/libx11
43# A world build should only build the correct version, not all of them. 43# A world build should only build the correct version, not all of them.
44EXCLUDE_FROM_WORLD = "1" 44EXCLUDE_FROM_WORLD = "1"
45
46python () {
47 if not oe.utils.contains ('DISTRO_FEATURES', 'x11', True, False, d):
48 raise bb.parse.SkipPackage("X11 not enabled for this DISTRO")
49}