[oe] [PATCH 2/2] task-base: Introduce DISTRO_apm and convert recipes to use it.

Phil Blundell philb at gnu.org
Fri Dec 4 09:14:37 UTC 2009


On Fri, 2009-12-04 at 08:28 +0100, Sebastian Spaeth wrote:
> This is my take on solving our problem that we want a different "apm"
> provider. Koen outlined this solution, so this way I went.
> 
> All recipes that RDPEND on "apm" basically get a
> 
> DISTRO_apm ?= "apm"
> RDEPEND    += ${DISTRO_apm}
> 
> This could also be done with a virtual/apm package, and a
> PREFERED_PROVIDER set to apm for all distros. Which would even be
> cleaner I think, with the downside that all other distros would need to
> set a prefered provider too.

The latter approach does sound rather better to me.  This is exactly
what virtuals are for, and I'm not sure that we want a massive
proliferation of DISTRO_foo variables that effectively shadow
PREFERRED_PROVIDER. 

You're right that there is a bit of an issue with adding new virtuals,
in that old distros need to remain pinned to the provider they were
getting previously rather than being left to flap in the wind.  Your
proposal of adding a new include file sounds like a reasonable way to
address that, though I'm not completely enamoured of the "sane-"
terminology.  I think something like "compatibility-providers.inc" or
even "legacy-providers.inc" would better capture what the file is for.

p.






More information about the Openembedded-devel mailing list