From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH/RFC] xorg-lib: don't build libs unless requested by DISTRO_FEATURES
Date: Fri, 24 Feb 2012 10:28:22 -0800 [thread overview]
Message-ID: <4F47D6C6.6020507@linux.intel.com> (raw)
In-Reply-To: <4F34729A.3020402@opendreambox.org>
On 02/09/2012 05:27 PM, Andreas Oberritter wrote:
> * If 'x11' is not set in DISTRO_FEATURES, then skip all
> recipes using xorg-lib-common.inc instead of only those
> using libx11.inc.
>
> * One exception: pixman, which is not only used by xorg,
> but also by cairo.
>
> Signed-off-by: Andreas Oberritter<obi@opendreambox.org>
> ---
> meta/recipes-graphics/xorg-lib/libx11.inc | 5 -----
> meta/recipes-graphics/xorg-lib/xorg-lib-common.inc | 6 ++++++
> 2 files changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/meta/recipes-graphics/xorg-lib/libx11.inc b/meta/recipes-graphics/xorg-lib/libx11.inc
> index 748a48c..9057edc 100644
> --- a/meta/recipes-graphics/xorg-lib/libx11.inc
> +++ b/meta/recipes-graphics/xorg-lib/libx11.inc
> @@ -49,8 +49,3 @@ do_compile_prepend() {
> # 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")
> -}
> diff --git a/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc b/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc
> index d106054..3d5d378 100644
> --- a/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc
> +++ b/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc
> @@ -14,3 +14,9 @@ S = "${WORKDIR}/${XORG_PN}-${PV}"
> inherit autotools pkgconfig
>
> EXTRA_OECONF = "--enable-malloc0returnsnull --with-fop=no --without-xmlto"
> +
> +python () {
> + whitelist = [ "pixman" ]
> + if not d.getVar('BPN', True) in whitelist and not oe.utils.contains ('DISTRO_FEATURES', 'x11', True, False, d):
> + raise bb.parse.SkipPackage("X11 not enabled for this DISTRO")
> +}
Merged into OE-core
Thanks
Sau!
next prev parent reply other threads:[~2012-02-24 18:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-10 1:27 [PATCH/RFC] xorg-lib: don't build libs unless requested by DISTRO_FEATURES Andreas Oberritter
2012-02-10 8:38 ` Koen Kooi
2012-02-10 12:19 ` Paul Eggleton
2012-02-10 12:26 ` [PATCH/RFC v2] " Andreas Oberritter
2012-02-10 12:41 ` Paul Eggleton
2012-02-10 12:42 ` Koen Kooi
2012-02-24 18:28 ` Saul Wold [this message]
2012-02-24 18:40 ` [PATCH/RFC] " Andreas Oberritter
2012-02-26 11:42 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F47D6C6.6020507@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox