Skip to contentSkip to conversation

Conflict between BBCLASSEXTEND and named recipes.

DISCUSSION Jeremy Puhlman 3 participants 4 messages Mar 16, 2012 – Mar 17, 2012

lore
Share & tools
lore
#0 lore raw

There seems to be a bug with available providers when a recipe file provides the same name as an extended recipe. The extended version of the recipe does not seem to be available at all.

Example:

If zlib_1.2.6.bb exists in a layer, with BBCLASSEXTEND="native zlib-nativesdk" defined, and zlib-native_1.2.5.bb exists, the version 1.2.6 of zlib-native is not selectable at all.

bitbake -s | grep zlib

zlib                                                :1.2.6-r0
zlib-native                                         :1.2.5-r0
zlib-nativesdk                                      :1.2.6-r0

Even with PREFERRED_PROVIDER_zlib-naitve = 1.2.6 the results are the same. I have been poking around the parser, but really haven't made any progress, figured I would poke the list.

Signature · 2 lines
Jeremy Puhlman
Montavista Software, LLC.
#1 lore raw
Quoted 11 lines · Jeremy Puhlman

There seems to be a bug with available providers when a recipe file provides the same name as an extended recipe. The extended version of the recipe does not seem to be available at all.

Example:

If zlib_1.2.6.bb exists in a layer, with BBCLASSEXTEND="native zlib-nativesdk" defined, and zlib-native_1.2.5.bb exists, the version 1.2.6 of zlib-native is not selectable at all.

Quoted 8 lines

bitbake -s | grep zlib

zlib                                                :1.2.6-r0
zlib-native                                         :1.2.5-r0
zlib-nativesdk                                      :1.2.6-r0

Even with PREFERRED_PROVIDER_zlib-naitve = 1.2.6 the results are the same. I have been poking around the parser, but really haven't made any progress, figured I would poke the list.

I don't have a solution, but I can confirm that this was a known issue all the way back when BBCLASSEXTEND got introduced in Classic OE. The workaround was to remove or mask the actual *-native.bb recipes.

Signature · 1 line
Denys
#2 lore raw
Quoted 6 lines

I don't have a solution, but I can confirm that this was a known issue all the way back when BBCLASSEXTEND got introduced in Classic OE. The workaround was to remove or mask the actual *-native.bb recipes.

Thanks. I though I searched the archives, but apparently not well enough. My first suggestion was BBMASK and that seemed to work as well.

Signature · 2 lines
Jeremy Puhlman
Montavista Software, LLC.
#3 lore raw
In reply to Jeremy Puhlman
Quoted 11 lines · Jeremy Puhlman

There seems to be a bug with available providers when a recipe file provides the same name as an extended recipe. The extended version of the recipe does not seem to be available at all.

Example:

If zlib_1.2.6.bb exists in a layer, with BBCLASSEXTEND="native zlib-nativesdk" defined, and zlib-native_1.2.5.bb exists, the version 1.2.6 of zlib-native is not selectable at all.

Quoted 8 lines

bitbake -s | grep zlib

zlib                                                :1.2.6-r0
zlib-native                                         :1.2.5-r0
zlib-nativesdk                                      :1.2.6-r0

Even with PREFERRED_PROVIDER_zlib-naitve = 1.2.6 the results are the same. I have been poking around the parser, but really haven't made any progress, figured I would poke the list.

I though that setting PREFERRED_VERSION should be enough in this case.

notice that it's not PREFERRED_PROVIDER and you have "naitve"/"native" typo there. Can you retest with correct form if you haven't already?

Cheers,

Quoted 10 lines
Signature · 8 lines
-- 
Jeremy Puhlman
Montavista Software, LLC.

_______________________________________________
bitbake-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/bitbake-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]