From: richard.purdie@linuxfoundation.org
To: Martin Jansa <martin.jansa@gmail.com>
Cc: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [oe-commits] [openembedded-core] 02/09: glib-2.0: add missing locale dependencies to PN-ptest
Date: Sun, 14 Oct 2018 12:20:43 +0100 [thread overview]
Message-ID: <bda03d36ae78dfbe63c48b2747d223e5e1e1ec18.camel@linuxfoundation.org> (raw)
In-Reply-To: <CA+chaQcLQSmXABciMyrUvnVrBoqLqr+jYH+tXV8oOgCGhFrSFA@mail.gmail.com>
On Sat, 2018-10-13 at 23:16 +0200, Martin Jansa wrote:
> I was checking my builds and here is what I've found.
Thanks for digging into this, it has highlighted a few important
issues. I've queued the patches.
> $ grep locale-base env.bash
> $
>
> And in the build without the bbappend:
>
> # $RDEPENDS_bash-ptest [3 operations]
> # rename from RDEPENDS_${PN}-ptest data.py:116 [expandKeys]
> # " make"
> # override[class-native]:rename from RDEPENDS_${PN}-ptest_class-
> native data_smart.py:641 [renameVar]
> # ""
> # override[class-nativesdk]:rename from RDEPENDS_${PN}-ptest_class-
> nativesdk data_smart.py:641 [renameVar]
> # ""
> # pre-expansion value:
> # " make locale-base-fr-fr locale-base-de-de"
> RDEPENDS_bash-ptest=" make locale-base-fr-fr locale-base-de-de"
>
> but also without the RDEPENDS_${PN}-ptest history:
>
> $ grep RDEPENDS.*ptest env.bash
> # override[bash-ptest]:rename from RDEPENDS_${PN}-ptest data.py:116
> [expandKeys]
> # override[bash-ptest_class-native]:rename from RDEPENDS_${PN}-
> ptest_class-native data_smart.py:641 [renameVar]
> # override[bash-ptest_class-nativesdk]:rename from RDEPENDS_${PN}-
> ptest_class-nativesdk data_smart.py:641 [renameVar]
> # $RDEPENDS_bash-ptest [3 operations]
> # rename from RDEPENDS_${PN}-ptest data.py:116 [expandKeys]
> # override[class-native]:rename from RDEPENDS_${PN}-ptest_class-
> native data_smart.py:641 [renameVar]
> # override[class-nativesdk]:rename from RDEPENDS_${PN}-ptest_class-
> nativesdk data_smart.py:641 [renameVar]
> RDEPENDS_bash-ptest=" make locale-base-fr-fr locale-base-de-de"
> # $RDEPENDS_bash-ptest_class-native
> # rename from RDEPENDS_${PN}-ptest_class-native data_smart.py:641
> [renameVar]
> RDEPENDS_bash-ptest_class-native=""
> # $RDEPENDS_bash-ptest_class-nativesdk
> # rename from RDEPENDS_${PN}-ptest_class-nativesdk
> data_smart.py:641 [renameVar]
> RDEPENDS_bash-ptest_class-nativesdk=""
>
> $ grep locale-base env.bash
> # " make locale-base-fr-fr locale-base-de-de"
> RDEPENDS_bash-ptest=" make locale-base-fr-fr locale-base-de-de"
[...]
> It just magically appears in pre-expansion value.
>
> Shouldn't bitbake -e show that "locale-base-fr-fr locale-base-de-de"
> were appended (and in the build with bbappend that they were appended
> and then removed)? That would help me to find out what's going on
> much faster.
Agreed, bitbake needs to do better here. I had a quick poke around and
came up with this:
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index 7b09af5cf1b..4434142a02e 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -267,6 +267,16 @@ class VariableHistory(object):
return
self.variables[var].append(loginfo.copy())
+ def rename_variable_hist(self, oldvar, newvar):
+ if not self.dataroot._tracking:
+ return
+ if oldvar not in self.variables:
+ return
+ if newvar not in self.variables:
+ self.variables[newvar] = []
+ for i in self.variables[oldvar]:
+ self.variables[newvar].append(i.copy())
+
def variable(self, var):
remote_connector = self.dataroot.getVar('_remote_data', False)
if remote_connector:
@@ -619,6 +629,7 @@ class DataSmart(MutableMapping):
val = self.getVar(key, 0, parsing=True)
if val is not None:
+ self.varhistory.rename_variable_hist(key, newkey)
loginfo['variable'] = newkey
loginfo['op'] = 'rename from %s' % key
loginfo['detail'] = val
which now shows:
# $RDEPENDS_bash-ptest [8 operations]
# append /media/build1/poky/meta/recipes-extended/bash/bash.inc:26
# "make"
# _append[libc-glibc] /media/build1/poky/meta/recipes-extended/bash/bash.inc:29
# " locale-base-fr-fr locale-base-de-de"
# _remove[libc-glibc] /media/build1/poky/meta/recipes-extended/bash/bash_4.4.18.bb:43
# "locale-base-fr-fr locale-base-de-de"
# rename from RDEPENDS_${PN}-ptest data.py:116 [expandKeys]
# "make"
# override[class-native]:set /media/build1/poky/meta/classes/ptest.bbclass:13
# ""
# override[class-native]:rename from RDEPENDS_${PN}-ptest_class-native data_smart.py:652 [renameVar]
# ""
# override[class-nativesdk]:set /media/build1/poky/meta/classes/ptest.bbclass:14
# ""
# override[class-nativesdk]:rename from RDEPENDS_${PN}-ptest_class-nativesdk data_smart.py:652 [renameVar]
# ""
# pre-expansion value:
# "make"
RDEPENDS_bash-ptest="make"
which is better but I'm confused why there are the "rename from" for
the overrides which aren't being applied (this is for bash, not bash-
native or bash-nativesdk).
So more investigation is needed...
Cheers,
Richard
next prev parent reply other threads:[~2018-10-14 11:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <153917392546.324.13433409263803938064@git.openembedded.org>
[not found] ` <20181010121845.987A72351DE@git.openembedded.org>
2018-10-11 6:24 ` [oe-commits] [openembedded-core] 02/09: glib-2.0: add missing locale dependencies to PN-ptest Martin Jansa
2018-10-11 11:44 ` Burton, Ross
2018-10-13 0:15 ` Martin Jansa
2018-10-13 10:29 ` Richard Purdie
2018-10-13 21:16 ` Martin Jansa
2018-10-14 11:20 ` richard.purdie [this message]
2018-10-14 11:40 ` Alexander Kanavin
2018-10-14 12:13 ` 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=bda03d36ae78dfbe63c48b2747d223e5e1e1ec18.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=martin.jansa@gmail.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