[OE-core] [PATCH] libx11: skip self if x11 not in DISTRO_FEATURES
Anders Darander
anders at chargestorm.se
Mon Aug 15 12:23:27 UTC 2011
Although, it is already mergerd by Richard, I really like this patch
series (after testing it).
* Phil Blundell <philb at gnu.org> [110812 17:57]:
> This stops (most) x11 packages leaking into a non-x11 distro by mistake.
Will you submit this to meta-oe also?
This question might apply to a few of the other patches also.
Cheers,
Anders
> 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")
> +}
--
Anders Darander
ChargeStorm AB Tel: +46 702 44 84 36
Laxholmstorget 3 Email: anders at chargestorm.se
602 21 Norrköping Web: www.chargestorm.se
More information about the Openembedded-core
mailing list