[oe] [PATCH] introduction of virtual/libusb0
Chris Larson
clarson at kergoth.com
Wed Jun 24 20:47:32 UTC 2009
On Wed, Jun 24, 2009 at 1:38 PM, Stanislav Brabec<utx at penguin.cz> wrote:
> Chris Larson wrote:
>> +++ b/recipes/bluez/bluez.inc
>> > +DEPENDS = "gstreamer gst-plugins-base virtual/libusb0 dbus glib-2.0"
>> This is wrong. libusb0 does not replace libusb1.
>
> It was an attempt to make unrelated fix. bluez.inc is actually required
> only by bluez-hcidump_1.42.bb. And bluez-hcidump_1.42.bb does not
> require libusb at all (or at least not directly). So in fact it should
> be probably removed completely.
Understood.
>> It's worth noting that this could be done in a much less intrusive way.
>>
>> In libusb-compat:
>> PROVIDES += "libusb"
>>
>> In libusb:
>> DEFAULT_PREFERENCE = "-1", or just set the PREFERRED_PROVIDER_libusb =
>> "libusb-compat" in the distros.
>
> I didn't know that DEFAULT_PREFERENCE_distroname is possible. But if
> this will work and allow distro maintainers to select one of another,
> then it may be used as well. But I still think that distro config is a
> more convenient way.
DEFAULT_PREFERENCE is just default behavior when no PREFERRED_PROVIDER
is set by the distro. I'm just pointing out that you could use
"libusb" rather than "virtual/libusb0", and avoid having to change the
multitude of recipes.
--
Chris Larson
clarson at kergoth dot com
clarson at mvista dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Software Engineer
MontaVista Software, Inc.
More information about the Openembedded-devel
mailing list