Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] libx11: skip self if x11 not in DISTRO_FEATURES
@ 2011-08-12 15:57 Phil Blundell
  2011-08-15 12:23 ` Anders Darander
  2011-08-22 22:32 ` Saul Wold
  0 siblings, 2 replies; 8+ messages in thread
From: Phil Blundell @ 2011-08-12 15:57 UTC (permalink / raw)
  To: oe-core

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 |    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")
+}
-- 
1.7.4.1






^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-08-22 22:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-12 15:57 [PATCH] libx11: skip self if x11 not in DISTRO_FEATURES Phil Blundell
2011-08-15 12:23 ` Anders Darander
2011-08-15 13:07   ` Phil Blundell
2011-08-15 13:15     ` Anders Darander
2011-08-15 13:24       ` Paul Eggleton
2011-08-15 13:32         ` Anders Darander
2011-08-15 13:43           ` Paul Eggleton
2011-08-22 22:32 ` Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox