From: Patrick Ohly <patrick.ohly@gmx.de>
To: openembedded-devel@lists.openembedded.org
Cc: Otavio Salvador <otavio@ossystems.com.br>,
Mario Domenech Goulart <mario@ossystems.com.br>
Subject: Re: [meta-java][PATCH] move from bb.data.getVar(x, d, 1) to d.getVar(x, True)
Date: Mon, 05 Dec 2016 13:13:23 +0100 [thread overview]
Message-ID: <1480940003.17535.32.camel@gmx.de> (raw)
In-Reply-To: <CABcZANkz-QEg-+rLr0q-W8BD5K6Z=UFs3MUpZHQXRO+T2xF2hw@mail.gmail.com>
On Tue, 2016-11-29 at 13:16 -0700, Christopher Larson wrote:
> On Tue, Nov 29, 2016 at 9:48 AM, Cody P Schafer <dev@codyps.com> wrote:
>
> > bb.data.getVar was removed, need to use the modern mechanism.
> >
> > Signed-off-by: Cody P Schafer <dev@codyps.com>
> > ---
> > classes/java-library.bbclass | 4 ++--
> > recipes-core/icedtea/icedtea7-native.inc | 2 +-
> > recipes-core/openjdk/openjdk-7-common.inc | 2 +-
> > recipes-core/openjdk/openjdk-8-common.inc | 10 +++++-----
> > recipes-core/openjdk/openjdk-common.inc | 6 +++---
> > 5 files changed, 12 insertions(+), 12 deletions(-)
> >
> > diff --git a/classes/java-library.bbclass b/classes/java-library.bbclass
> > index 144cd2f..58d5a40 100644
> > --- a/classes/java-library.bbclass
> > +++ b/classes/java-library.bbclass
> > @@ -23,8 +23,8 @@ def java_package_name(d):
> > pre=""
> > post=""
> >
> > - bpn = bb.data.getVar('BPN', d, 1)
> > - ml = bb.data.getVar('MLPREFIX', d, 1)
> > + bpn = d.getVar('BPN', True)
> > + ml = d.getVar('MLPREFIX', True)
> >
>
> If you’re working on master, even the ‘, True’ is no longer needed, FYI.
I suspect that meta-java master is meant to work with more than just
bitbake master, so keeping the parameter makes sense.
I think the change is okay and I'd love to see it merged as soon as
possible. In Ostro OS, updating to bitbake and OE-core master is blocked
by this meta-java incompatibility with bitbake master.
Can someone with commit rights to meta-java please merge it?
Bye, Patrick
next prev parent reply other threads:[~2016-12-05 12:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-29 16:48 [meta-java][PATCH] move from bb.data.getVar(x, d, 1) to d.getVar(x, True) Cody P Schafer
2016-11-29 20:16 ` Christopher Larson
2016-12-05 12:13 ` Patrick Ohly [this message]
2016-12-05 12:39 ` Otavio Salvador
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=1480940003.17535.32.camel@gmx.de \
--to=patrick.ohly@gmx.de \
--cc=mario@ossystems.com.br \
--cc=openembedded-devel@lists.openembedded.org \
--cc=otavio@ossystems.com.br \
/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