Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 01/17] gettext.bbclass: Use _append instead of =+
Date: Tue, 26 Apr 2011 12:48:03 -0700	[thread overview]
Message-ID: <4DB72173.4000902@linux.intel.com> (raw)
In-Reply-To: <4e4ad27e7940760928c4ed79ca0b1948912ac881.1303757256.git.raj.khem@gmail.com>

On 04/25/2011 11:54 AM, Khem Raj wrote:
> Ensure gettext and gettext-native are removed from DEPENDS when
> not using NLS
>
> Use append instead of += to get gettext dependecies processed
> correctly in all cases
>
> Dont remove gettext-native for native recipes as ENABLE_NLS is
> only for target and not for native recipes
>
> Replace using 1 for a boolean type with True
>
> Honor INHIBIT_DEFAULT_DEPS
>
> Remove the added dependencies for gettext if INHIBIT_DEFAULT_DEPS is non
> null
>
Khem,

This patch seems to be causing a circular dependency when you try to 
build meta-toolchain-sdk, not sure if you tested that target.

% bitbake meta-toolchain-sdk -n
NOTE: Out of date cache found, rebuilding...
WARNING: No bb files matched BBFILE_PATTERN_yocto 
'^/intel/poky/distro/meta-yocto/'
Parsing recipes: 100% |#########################################| Time: 
00:00:15
Parsing of 796 .bb files complete (0 cached, 796 parsed). 1008 targets, 
6 skipped, 0 masked, 0 errors.

OE Build Configuration:
BB_VERSION        = "1.11.0"
METADATA_BRANCH   = "stage"
METADATA_REVISION = "86f12953dbf57264cfcc06feac446f3edf0c6d8f"
TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "qemux86"
DISTRO            = "poky-lsb"
DISTRO_VERSION    = "1.0+snapshot-20110426"
TARGET_FPU        = ""

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
ERROR: Task 
virtual:nativesdk:/intel/poky/distro/meta/recipes-core/gettext/gettext_0.17.bb 
(do_package) has circular dependency on 
virtual:nativesdk:/intel/poky/distro/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb 
(do_package)

Is there dependencies on this patch with the other patches? (ie can I 
take part of your other patches or just hold off)?

Sau!

> Signed-off-by: Khem Raj<raj.khem@gmail.com>
> ---
>   meta/classes/gettext.bbclass |   31 +++++++++++++++++++------------
>   1 files changed, 19 insertions(+), 12 deletions(-)
>
> diff --git a/meta/classes/gettext.bbclass b/meta/classes/gettext.bbclass
> index a40e74f..a6f80f2 100644
> --- a/meta/classes/gettext.bbclass
> +++ b/meta/classes/gettext.bbclass
> @@ -1,17 +1,24 @@
>   def gettext_after_parse(d):
> -    # Remove the NLS bits if USE_NLS is no.
> -    if bb.data.getVar('USE_NLS', d, 1) == 'no':
> -        cfg = oe_filter_out('^--(dis|en)able-nls$', bb.data.getVar('EXTRA_OECONF', d, 1) or "", d)
> -        cfg += " --disable-nls"
> -        depends = bb.data.getVar('DEPENDS', d, 1) or ""
> -        bb.data.setVar('DEPENDS', oe_filter_out('^(virtual/libiconv|virtual/libintl)$', depends, d), d)
> -        bb.data.setVar('EXTRA_OECONF', cfg, d)
> -
> +   # Remove the NLS bits if USE_NLS is no.
> +   if bb.data.getVar('USE_NLS', d, True) == 'no':
> +       cfg = oe_filter_out('^--(dis|en)able-nls$', bb.data.getVar('EXTRA_OECONF', d, 1) or "", d)
> +       cfg += " --disable-nls"
> +       depends = bb.data.getVar('DEPENDS', d, True) or ""
> +       depends = oe_filter_out('^(virtual/libiconv|virtual/libintl|virtual/gettext|gettext)$', depends, d)
> +       if not oe.utils.inherits(d, 'native', 'nativesdk', 'cross', 'crosssdk'):
> +           depends = oe_filter_out('^(gettext-native)$', depends, d)
> +       bb.data.setVar('DEPENDS', depends, d)
> +       bb.data.setVar('EXTRA_OECONF', cfg, d)
> +   # check if INHIBIT_DEFAULT_DEPS is 1 then we forcibly remove dependencies
> +   # added by this class through DEPENDS_GETTEXT
> +   if bb.data.getVar('INHIBIT_DEFAULT_DEPS', d, True):
> +       depends = bb.data.getVar('DEPENDS', d, True) or ""
> +       gettext_deps = '^(' + bb.data.getVar('DEPENDS_GETTEXT', d, True) + ')$'
> +       depends = oe_filter_out(gettext_deps, depends, d)
> +       bb.data.setVar('DEPENDS', depends, d)
>   python () {
>       gettext_after_parse(d)
>   }
> -
> -DEPENDS_GETTEXT = "gettext gettext-native"
> -
> -DEPENDS =+ "${DEPENDS_GETTEXT}"
>   EXTRA_OECONF += "--enable-nls"
> +DEPENDS_GETTEXT ?= "virtual/gettext"
> +DEPENDS_append = " ${DEPENDS_GETTEXT} "



  reply	other threads:[~2011-04-26 19:50 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-25 18:54 [PATCH 00/17] uclibc support in oe-core v2 Khem Raj
2011-04-25 18:54 ` [PATCH 01/17] gettext.bbclass: Use _append instead of =+ Khem Raj
2011-04-26 19:48   ` Saul Wold [this message]
2011-04-26 20:02     ` Khem Raj
2011-04-26 22:17       ` Khem Raj
2011-04-27 22:51         ` Saul Wold
2011-04-27 23:59           ` Khem Raj
2011-04-28  0:53             ` Saul Wold
2011-04-25 18:54 ` [PATCH 02/17] insane.bbclass: Move code to add function to tasks toward the end Khem Raj
2011-04-25 18:54 ` [PATCH 03/17] insane.bbclass: Checking for NLS too when checking gettext dependency Khem Raj
2011-04-25 18:54 ` [PATCH 04/17] autotools.bbclass: Copy gettext files only if --disable-nls is not set Khem Raj
2011-04-25 18:54 ` [PATCH 05/17] sstate.bbclass: Reduce SSTATE_MANIFESTS assignment to be weak Khem Raj
2011-04-25 18:54 ` [PATCH 06/17] gettext: Divide packaging into gettext-runtime and rest Khem Raj
2011-04-25 18:54 ` [PATCH 07/17] gettext_0.17.bb: PROVIDE virtual/gettext and RCONFLICT with proxy-libintl Khem Raj
2011-04-25 18:54 ` [PATCH 08/17] poky-default.inc: Weakly assign gettext to provide virtual/gettext Khem Raj
2011-04-25 18:55 ` [PATCH 09/17] libiconv: update from 1.9.2 -> 1.11.1 Khem Raj
2011-04-25 18:55 ` [PATCH 10/17] glib-2.0: Inherit gettext should provide right libintl so remove from DEPENDS Khem Raj
2011-04-25 18:55 ` [PATCH 11/17] util-linux.inc: remove virtual/libintl " Khem Raj
2011-04-25 18:55 ` [PATCH 12/17] elfutils_0.148.bb: Fix compilation issues on uclibc Khem Raj
2011-04-25 18:55 ` [PATCH 13/17] perl_5.12.2.bb: Undefine features not found in uclibc Khem Raj
2011-04-26 14:38   ` Saul Wold
2011-04-26 16:18   ` Saul Wold
2011-04-26 17:47     ` Khem Raj
2011-04-25 18:55 ` [PATCH 14/17] xorg-lib: inherit gettext class instead of adding gettext to DEPENDS directly Khem Raj
2011-04-25 18:55 ` [PATCH 15/17] attr: Fix compilation on uclibc Khem Raj
2011-04-25 18:55 ` [PATCH 16/17] linux-tools.inc: Dummify do_compile_perf and do_install_perf for uclibc Khem Raj
2011-04-25 18:55 ` [PATCH 17/17] alsa-utils_1.0.23.bb: Fix compilation for uclibc targets Khem Raj

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=4DB72173.4000902@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