public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Steve Sakoman <steve@sakoman.com>,
	 openembedded-core@lists.openembedded.org
Subject: Re: [OE-core][kirkstone 10/13] native: Drop special variable handling
Date: Thu, 02 Feb 2023 11:42:54 +0000	[thread overview]
Message-ID: <78aa81ec86a05f1b6da3afd1c7af73e97de3aa58.camel@linuxfoundation.org> (raw)
In-Reply-To: <47a2634831f907d83ec40ad010351c923ef67f0d.1675289652.git.steve@sakoman.com>

On Wed, 2023-02-01 at 12:16 -1000, Steve Sakoman wrote:
> From: Richard Purdie <richard.purdie@linuxfoundation.org>
> 
> Back when it was merged in https://git.yoctoproject.org/poky/commit/?id=c4257ed8b1040a5a0e9a95846d81961741239116
> it appeared special handling in setVar was necessary. Likely due to
> other fixes and improvements it no longer appears to be. The results of
> "bitbake world -g" before and after this change are identical for oe-core
> and meta-openembedded. Therefore drop the "parsing=True" special parameter to
> setVar() meaning overrides can now be cleared.
> 
> This means that something like:
> 
> DEPENDS:append = " bash"
> 
> now functions as expected, adding bash to the target recipe and bash-native to
> the native BBCLASSEXTENDED version.
> 
> Without this change, it would add bash to the native version as well as
> bash-native which is clearly incorrect.
> 
> [YOCTO #15010]
> 
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> (cherry picked from commit 99a5105f7b5303cd36077b5910c662a865c1782c)
> Signed-off-by: Steve Sakoman <steve@sakoman.com>
> ---
>  meta/classes/native.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
> index fc7422c5d7..4de96cd59b 100644
> --- a/meta/classes/native.bbclass
> +++ b/meta/classes/native.bbclass
> @@ -153,7 +153,7 @@ python native_virtclass_handler () {
>                  newdeps.append(dep.replace(pn, bpn) + "-native")
>              else:
>                  newdeps.append(dep)
> -        d.setVar(varname, " ".join(newdeps), parsing=True)
> +        d.setVar(varname, " ".join(newdeps))
>  
>      map_dependencies("DEPENDS", e.data, selfref=False)
>      for pkg in e.data.getVar("PACKAGES", False).split():

Steve: Did you check "bitbake world -g" is the same before and after
this change for kirkstone?

Cheers,

Richard



  reply	other threads:[~2023-02-02 11:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-01 22:15 [OE-core][kirkstone 00/13] Patch review Steve Sakoman
2023-02-01 22:15 ` [OE-core][kirkstone 01/13] ppp: backport fix for CVE-2022-4603 Steve Sakoman
2023-02-01 22:15 ` [OE-core][kirkstone 02/13] linux-yocto/5.15: update to v5.15.87 Steve Sakoman
2023-02-01 22:15 ` [OE-core][kirkstone 03/13] lttng-modules: Fix for 5.10.163 kernel version Steve Sakoman
2023-02-01 22:16 ` [OE-core][kirkstone 04/13] quilt: fix intermittent failure in faildiff.test Steve Sakoman
2023-02-01 22:16 ` [OE-core][kirkstone 05/13] spirv-headers: set correct branch name Steve Sakoman
2023-02-01 22:16 ` [OE-core][kirkstone 06/13] devtool: fix devtool finish when gitmodules file is empty Steve Sakoman
2023-02-01 22:16 ` [OE-core][kirkstone 07/13] numactl: skip test case when target platform doesn't have 2 CPU node Steve Sakoman
2023-02-01 22:16 ` [OE-core][kirkstone 08/13] libtirpc: Check if file exists before operating on it Steve Sakoman
2023-02-01 22:16 ` [OE-core][kirkstone 09/13] quilt: use upstreamed faildiff.test fix Steve Sakoman
2023-02-01 22:16 ` [OE-core][kirkstone 10/13] native: Drop special variable handling Steve Sakoman
2023-02-02 11:42   ` Richard Purdie [this message]
2023-02-02 14:01     ` Steve Sakoman
2023-02-01 22:16 ` [OE-core][kirkstone 11/13] libusb1: Link with latomic only if compiler has no atomic builtins Steve Sakoman
2023-02-01 22:16 ` [OE-core][kirkstone 12/13] libusb1: Strip trailing whitespaces Steve Sakoman
2023-02-01 22:16 ` [OE-core][kirkstone 13/13] Fix missing leading whitespace with ':append' Steve Sakoman

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=78aa81ec86a05f1b6da3afd1c7af73e97de3aa58.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=steve@sakoman.com \
    /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