summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics
diff options
context:
space:
mode:
authorAnders Darander <anders@chargestorm.se>2011-08-16 15:12:15 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2011-08-16 10:03:11 +0200
commit4edc680bfd93f9358f099e1513f916c46347f538 (patch)
treeef2569d129ea561525f6a5799f1638ad7fe4e6d7 /meta-oe/recipes-graphics
parentf568c3c61e35f392c818a0c0df29be74daacf8a6 (diff)
downloadmeta-openembedded-4edc680bfd93f9358f099e1513f916c46347f538.tar.gz
libx11: skip self if x11 not in DISTRO_FEATURES
This stops (most) x11 packages leaking into a non-x11 distro by mistake. 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>
Diffstat (limited to 'meta-oe/recipes-graphics')
-rw-r--r--meta-oe/recipes-graphics/xorg-lib/libx11.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/xorg-lib/libx11.inc b/meta-oe/recipes-graphics/xorg-lib/libx11.inc
index 2aa9700f2..9f7e990ef 100644
--- a/meta-oe/recipes-graphics/xorg-lib/libx11.inc
+++ b/meta-oe/recipes-graphics/xorg-lib/libx11.inc
@@ -45,3 +45,8 @@ do_compile_prepend() {
45 cd ../../ 45 cd ../../
46 ) || exit 1 46 ) || exit 1
47} 47}
48
49python () {
50 if not oe.utils.contains ('DISTRO_FEATURES', 'x11', True, False, d):
51 raise bb.parse.SkipPackage("X11 not enabled for this DISTRO")
52}