[oe] [PATCH] introduction of virtual/libusb0

Stanislav Brabec utx at penguin.cz
Wed Jun 24 22:00:12 UTC 2009


Chris Larson wrote:

> DEFAULT_PREFERENCE is just default behavior when no PREFERRED_PROVIDER
> is set by the distro.

I just tested it without any of DEFAULT_PREFERENCE nor
PREFERRED_PROVIDER. It defaults to the old libusb.

With setting of PREFERRED_PROVIDER_virtual/libusb0 ?= "libusb-compat" in
the angstrom distro config, it uses to libusb-compat (but just only for
angstrom).

When I remove this line from the distro config and set
DEFAULT_PREFERENCE = "-1" to all old libusb recipes (and even setting
DEFAULT_PREFERENCE = "1" in libusb-compat), it still populates old
libusb instead of expected libusb-compat (using the virtual requires
from the patch above).

Maybe it compares version number and makes bad assumption that
libusb-0.1.12 > libusb-compat-0.1.0.

I would like to encourage everybody to use new libusb-compat, unless
configured opposite... I am not sure how to do it. Is there any default
config for default values of PREFERRED_PROVIDER?

> I'm just pointing out that you could use
> "libusb" rather than "virtual/libusb0", and avoid having to change the
> multitude of recipes.

It would not avoid it. Some of recipes use libusb, some of them use
libusb-compat, both want just any libusb0. It caused building both and
moving one to morgue just after the build of the feed.


________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus





More information about the Openembedded-devel mailing list