I'd expect recipes to show up in the "bitbake-layers show-recipes" output under the name of their .bb file. In Dizzy and master (shortly before Fido) and possibly older releases, one gets unexpected output at least for openssl: > bitbake-layers show-recipes 2>&1 | grep openssl nativesdk-openssl: > bitbake-layers show-recipes openssl === Available recipes: === openssl: meta 1.0.2 > bitbake-layers show-recipes -f 2>&1 | grep openssl /data2/yocto/iot-os/meta/recipes-connectivity/openssl/openssl_1.0.2.bb Note that it shows up as "nativesdk-openssl" in the first command variation.
Looking at the code in list_recipes() it sorts using sorted(pkg_pn) and only displays the first one matching a given file so "nativesdk-openssl" comes first and takes priority over openssl. Reassigning to Paul to see what the intent of the code is...
A possible fix: diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index c1c65aa..9824629 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers @@ -501,7 +501,12 @@ skipped recipes will also be listed, with a " (skipped)" suffix. if len(allproviders[p]) > 1 or not show_multi_provider_only: pref = preferred_versions[p] - preffile = bb.cache.Cache.virtualfn2realfn(pref[1])[0] + realfn = bb.cache.Cache.virtualfn2realfn(pref[1]) + preffile = realfn[0] + # We only display once per recipe, we should prefer non extended versions of the recipe if + # present (so openssl, not nativesdk-openssl which would otherwise sort first). + if realfn[1] and realfn[0] in self.bbhandler.cooker.recipecache.pkg_fn: + continue if preffile not in preffiles: preflayer = self.get_file_layer(preffile) multilayer = False
Hmm, yes, this is definitely not desirable. Richard, your fix looks OK to me (although the comment probably ought to say "e.g. in OpenEmbedded" next to the example). Do you want to send the fix as a patch or shall I?
Fix merged to master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=df9069d958fc9348f0afe63a7d0e0a0454ebe9b4
Verified on master: fcc67ae90feeceee204bdb36e45eacf8d056779a