[oe-commits] Anders Darander : libx11: skip self if x11 not in DISTRO_FEATURES

git version control git at git.openembedded.org
Tue Aug 16 08:04:51 UTC 2011


Module: meta-openembedded.git
Branch: master
Commit: 4edc680bfd93f9358f099e1513f916c46347f538
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=4edc680bfd93f9358f099e1513f916c46347f538

Author: Anders Darander <anders at chargestorm.se>
Date:   Tue Aug 16 15:12:15 2011 +0000

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 at 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 at chargestorm.se>
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 meta-oe/recipes-graphics/xorg-lib/libx11.inc |    5 +++++
 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 2aa9700..9f7e990 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() {
 		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")
+}





More information about the Openembedded-commits mailing list