[oe] [PATCH] Allow % as wildcard in the end of PREFERRED_VERSION_pkg

Phil Blundell philb at gnu.org
Tue Sep 15 10:31:51 UTC 2009


On Tue, 2009-09-15 at 11:16 +0200, Martin Jansa wrote:
> I wrote a bit more about my problem here:
> http://article.gmane.org/gmane.comp.handhelds.openembedded/25986
> 
> Simply:
> If I want to prefer bbfile with
> PV=1.0+gitr${SRCPV}
> then PV will change with every commit
> so what PV should be in PREFERRED_VERSION_pkg?
> 
> With this patch I can put there "1.0+git%" which will match just this
> one bbfile.

I would have thought you would be better off setting a positive
DEFAULT_PREFERENCE for your own DISTRO inside the bb file in question.
That doesn't require any bitbake changes and doesn't introduce any
semantically-murky extensions.

Your scheme of setting "1.0+git%" may work fine if there is just a
single git-based bb file in the repository but it would obviously break
down if a second one were ever to appear.  That seems like an unhealthy
state of affairs.

p.






More information about the Openembedded-devel mailing list