[OE-core] [PATCH 0/5] Enable VPN support in ConnMan

Richard Purdie richard.purdie at linuxfoundation.org
Tue May 14 10:18:48 UTC 2013


On Tue, 2013-05-14 at 10:22 +0100, Tomas Frydrych wrote:
> On 13/05/13 15:53, Phil Blundell wrote:
> > On Mon, 2013-05-13 at 12:32 +0100, Tomas Frydrych wrote:
> >> On 13/05/13 12:06, Burton, Ross wrote:
> >>> The problem with bbappends is that they break every time the package
> >>> in oe-core changes version.
> >>
> >> I see this as a good thing; if I maintain a bbappend, I want to know
> >> when the base package changes its a version, and I get an immediate
> >> error due to bbappend to a non-existent file.
> > 
> > Personally, for the .bbappends that I maintain, I would much rather not
> > have to go around renaming a bunch of files every time I merge a new
> > version of oe-core and all the recipes get upgraded. 
> > 
> > But, if you enjoy the errors, you could easily enough get them back even
> > if the filenames didn't change:
> > 
> > python() {
> >     tolerable_pvs = [ '1.0', '1.1', '1.2' ]
> >     pv = d.getVar('PV', True)
> >     if not pv in tolerable_pvs:
> >         bb.fatal("encountered intolerable version %s of underlying recipe, please adjust me accordingly" % pv)
> > }
> > 
> > or something.  One could wrap that in some extra sugar and put it in
> > base.bbclass if having the boilerplate in each .bbappend is unappealing.
> 
> I do like this approach; I'd probably wrap it in a class and let the
> bbappend maintainer to decide if their bbappend deserves this or not.

I'd take a patch adding this form of function to the core. I'd also take
a patch to have bitbake do some primitive wildcard (% along the lines of
PREFERRED_VERSION?) type match on the bbappend filenames. It will add in
a few new interesting corner cases such as one bbappend matching
multiple recipes. We have to keep in mind bitbake has no knowledge of
the filename format, that is metadata defined.

Cheers,

Richard





More information about the Openembedded-core mailing list