[oe-commits] Phil Blundell : libx11: skip self if x11 not in DISTRO_FEATURES

git version control git at git.openembedded.org
Mon Aug 15 14:15:07 UTC 2011


Module: openembedded-core.git
Branch: master
Commit: 2f94ff4fdb66755ba2448794baea19315ff96273
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2f94ff4fdb66755ba2448794baea19315ff96273

Author: Phil Blundell <philb at gnu.org>
Date:   Fri Aug 12 16:57:38 2011 +0100

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>

---

 meta/recipes-graphics/xorg-lib/libx11.inc |    5 +++++
 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 c156ce6..455753f 100644
--- a/meta/recipes-graphics/xorg-lib/libx11.inc
+++ b/meta/recipes-graphics/xorg-lib/libx11.inc
@@ -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")
+}





More information about the Openembedded-commits mailing list