| Summary: | bitbake-layers: canonical name of recipe | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Patrick Ohly <patrick.ohly> |
| Component: | bitbake | Assignee: | Paul Eggleton <bluelightning> |
| Status: | VERIFIED FIXED | QA Contact: | Cristina Agurida <cristina-danielax.agurida> |
| Severity: | normal | ||
| Priority: | Medium | CC: | cristina-danielax.agurida, poky.bs.watcher, poky.watcher, richard.purdie |
| Version: | unspecified | ||
| Target Milestone: | 1.9 M1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Patrick Ohly
2015-03-25 14:12:43 UTC
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 |