Patchwork [v2,1/1] default-providers: Set the preferred provider for bluez

mail settings
Submitter Cristian Iorga
Date Aug. 23, 2013, 2:41 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/56355/
State New
Headers show


Cristian Iorga - Aug. 23, 2013, 2:41 p.m.
There is a need for a default provider for bluez
now that bluez5 recipe is also present.

After the introduction of bluez5 recipe,
the following warnings are displayed:

"NOTE: multiple providers are available for runtime libasound-module-bluez (bluez4, bluez5)
 NOTE: consider defining a PREFERRED_PROVIDER entry to match libasound-module-bluez"

Upon debug, bitbake shows:
DEBUG: checking PREFERRED_PROVIDER_bluez4 (value None) against ['bluez4', 'bluez5']
DEBUG: checking PREFERRED_PROVIDER_bluez4-4.101 (value None) against ['bluez4', 'bluez5']
DEBUG: checking PREFERRED_PROVIDER_bluez4-4.101-r5 (value None) against ['bluez4', 'bluez5']
DEBUG: checking PREFERRED_PROVIDER_bluez5 (value None) against ['bluez4', 'bluez5']
DEBUG: checking PREFERRED_PROVIDER_bluez5-5.7 (value None) against ['bluez4', 'bluez5']
DEBUG: checking PREFERRED_PROVIDER_bluez5-5.7-r0 (value None) against ['bluez4', 'bluez5']

Bitbake is faced with "what should provide libasound-module-bluez"
which is a runtime name. It needs to try and find a PREFERRED_PROVIDER
entry which matches this but those use *build time* naming.
So it converts "libasound-module-bluez" into
the canonical ${PN} of bluez4 and bluez5 and then
tries to look those up.
What it actually should do is go one step further
of mapping bluez4/bluex5 into the virtual/bluez
But that does not happen;

Bug opened on this issue: YB5044

Fixes [YOCTO #5030].

Signed-off-by: Cristian Iorga <>
 meta/conf/distro/include/ | 1 +
 1 file changed, 1 insertion(+)


diff --git a/meta/conf/distro/include/ b/meta/conf/distro/include/
index 67cc5f5..9255fd6 100644
--- a/meta/conf/distro/include/
+++ b/meta/conf/distro/include/
@@ -39,3 +39,4 @@  PREFERRED_PROVIDER_console-tools ?= "kbd"
 PREFERRED_PROVIDER_gzip-native ?= "pigz-native"
 PREFERRED_PROVIDER_make ?= "make"
 PREFERRED_PROVIDER_udev ?= "${@base_contains('DISTRO_FEATURES','systemd','systemd','udev',d)}"
+PREFERRED_PROVIDER_bluez4 ?= "bluez4"