* Re: [bitbake-devel] [PATCH] providers: Use new override syntax when handling pn- "override" [not found] <169EEBD79694E731.9667@lists.openembedded.org> @ 2021-08-26 17:45 ` Peter Kjellerstedt 2021-08-27 8:31 ` Richard Purdie 0 siblings, 1 reply; 2+ messages in thread From: Peter Kjellerstedt @ 2021-08-26 17:45 UTC (permalink / raw) To: bitbake-devel@lists.openembedded.org > -----Original Message----- > From: bitbake-devel@lists.openembedded.org <bitbake- > devel@lists.openembedded.org> On Behalf Of Peter Kjellerstedt > Sent: den 26 augusti 2021 19:37 > To: bitbake-devel@lists.openembedded.org > Subject: [bitbake-devel] [PATCH] providers: Use new override syntax when > handling pn- "override" > > Make versionVariableMatch() support pn-foo overrides using the new > override syntax. > > Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> > --- > bitbake/lib/bb/providers.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py > index 516d45e4aa..8c1c31a5c5 100644 > --- a/bitbake/lib/bb/providers.py > +++ b/bitbake/lib/bb/providers.py > @@ -94,7 +94,7 @@ def versionVariableMatch(cfgData, keyword, pn): > > # pn can contain '_', e.g. gcc-cross-x86_64 and an override cannot > # hence we do this manually rather than use OVERRIDES > - ver = cfgData.getVar("%s_VERSION_pn-%s" % (keyword, pn)) > + ver = cfgData.getVar("%s_VERSION:pn-%s" % (keyword, pn)) > if not ver: > ver = cfgData.getVar("%s_VERSION_%s" % (keyword, pn)) > if not ver: I do not know why PREFERRED_VERSION_<foo> & co have not been changed to the new syntax, but I will argue that at least PREFERRED_VERSION_pn-<foo> should be changed to PREFERRED_VERSION:pn-<foo> as per above to not cause confusion. Though I am unsure if anyone actually uses that format, at least I didn't know it was even supported until I found the above code. //Peter ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [bitbake-devel] [PATCH] providers: Use new override syntax when handling pn- "override" 2021-08-26 17:45 ` [bitbake-devel] [PATCH] providers: Use new override syntax when handling pn- "override" Peter Kjellerstedt @ 2021-08-27 8:31 ` Richard Purdie 0 siblings, 0 replies; 2+ messages in thread From: Richard Purdie @ 2021-08-27 8:31 UTC (permalink / raw) To: Peter Kjellerstedt, bitbake-devel@lists.openembedded.org On Thu, 2021-08-26 at 17:45 +0000, Peter Kjellerstedt wrote: > > -----Original Message----- > > From: bitbake-devel@lists.openembedded.org <bitbake- > > devel@lists.openembedded.org> On Behalf Of Peter Kjellerstedt > > Sent: den 26 augusti 2021 19:37 > > To: bitbake-devel@lists.openembedded.org > > Subject: [bitbake-devel] [PATCH] providers: Use new override syntax when > > handling pn- "override" > > > > Make versionVariableMatch() support pn-foo overrides using the new > > override syntax. > > > > Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> > > --- > > bitbake/lib/bb/providers.py | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py > > index 516d45e4aa..8c1c31a5c5 100644 > > --- a/bitbake/lib/bb/providers.py > > +++ b/bitbake/lib/bb/providers.py > > @@ -94,7 +94,7 @@ def versionVariableMatch(cfgData, keyword, pn): > > > > # pn can contain '_', e.g. gcc-cross-x86_64 and an override cannot > > # hence we do this manually rather than use OVERRIDES > > - ver = cfgData.getVar("%s_VERSION_pn-%s" % (keyword, pn)) > > + ver = cfgData.getVar("%s_VERSION:pn-%s" % (keyword, pn)) > > if not ver: > > ver = cfgData.getVar("%s_VERSION_%s" % (keyword, pn)) > > if not ver: > > I do not know why PREFERRED_VERSION_<foo> & co have not been changed to > the new syntax, but I will argue that at least PREFERRED_VERSION_pn-<foo> > should be changed to PREFERRED_VERSION:pn-<foo> as per above to not cause > confusion. Though I am unsure if anyone actually uses that format, at > least I didn't know it was even supported until I found the above code. I think this was some plan of mine to migrate PREF_VER_<name> to PREF_VER_pn- which would at least be more consistent with how we do things. The pn- override was much more recent that the original variable. Obviously the plan didn't get far. Rather than change PREF_VER_ to PREF_VER:, I'd probably propose we move over to pn-. Cheers, Richard ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-27 8:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <169EEBD79694E731.9667@lists.openembedded.org>
2021-08-26 17:45 ` [bitbake-devel] [PATCH] providers: Use new override syntax when handling pn- "override" Peter Kjellerstedt
2021-08-27 8:31 ` Richard Purdie
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.