[oe] RFC: When PREFERRED_PROVIDER does not build, don't try other alternatives by default

Phil Blundell pb at reciva.com
Sat Aug 30 10:32:56 UTC 2008


On Sat, 2008-08-30 at 19:24 +0930, Rod Whitby wrote:
> Ah, I forgot to say that the circumstances in which I see this are
> probably coincident with when I invoke bitbake with -k.

Oh right.  Yes, in that case, what you are seeing is expected.  As the
name suggests, PREFERRED_PROVIDER only affects the relative
attractiveness of the different possible providers for a given virtual:
it will not cause bitbake to build a package that wouldn't otherwise
have been considered, nor will it prevent other providers from being
considered if the preferred one is unavailable.  All it does is change
the ordering of bitbake's internal list of build candidates.

So, I think the problem you're seeing is actually unrelated to
PREFERRED_PROVIDER.  It sounds like what you really want is a variant of
"-k" that will cause bitbake to make only one attempt at building a
given virtual (as opposed to trying all the providers in descending
preference order, which is what happens now) but still allow it to
continue with other packages even if that one attempt fails.  That would
be easy enough to add, I imagine, and wouldn't have any compatibility
implications.  Patches welcome! :-)

p.






More information about the Openembedded-devel mailing list