[oe] [RFC] Stop on multiple providers but none explicitly specified

Tom Rini trini at kernel.crashing.org
Thu May 15 18:38:49 UTC 2008


On Thu, May 15, 2008 at 05:42:06PM +0100, Richard Purdie wrote:
> On Wed, 2008-05-14 at 23:36 +0200, Leon Woestenberg wrote:
> > Hello all,
> > 
> > in trying to explain a new user why his build fails, it was the
> > classic situation of multiple providers available but non specified:
> > 
> > NOTE: multiple providers are available for virtual/libc
> > (external-toolchain, uclibc);
> > NOTE: consider defining PREFERRED_PROVIDER_virtual/libc
> > 
> > Now, as far as I know, this makes the build non-deterministic, because
> > bitbake "just" chooses one.
> > 
> > Why do we want this behaviour? I cannot see any benefit in this situation.
> > 
> > We should at least prefer one over the other, or just bail out in my opinion.
> 
> Bitbake will pick one, the options in brackets are in the order bitbake
> will choose them. We sort them alphabetically iirc since that is more
> deterministic than depending on parsing order which was the previous
> approach.

There's still a problem here.  I've sometimes seen external-toolchain
picked for one thing I've forgotten when setting up for uclibc.  Having
the build just fail here would be nice.

-- 
Tom Rini




More information about the Openembedded-devel mailing list