* [PATCH 0/1] taskdata.py: add RuntimeProviders to close matches
@ 2016-01-22 8:53 Robert Yang
2016-01-22 8:53 ` [PATCH 1/1] " Robert Yang
0 siblings, 1 reply; 2+ messages in thread
From: Robert Yang @ 2016-01-22 8:53 UTC (permalink / raw)
To: bitbake-devel
The following changes since commit b80219eac1695044554c18994124ae32c04642c6:
udev: Add 2 patches to support 4.4 kernel (2016-01-20 17:07:16 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib rbt/rprovides
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=rbt/provides
Robert Yang (1):
taskdata.py: add RuntimeProviders to close matches
bitbake/lib/bb/taskdata.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] taskdata.py: add RuntimeProviders to close matches
2016-01-22 8:53 [PATCH 0/1] taskdata.py: add RuntimeProviders to close matches Robert Yang
@ 2016-01-22 8:53 ` Robert Yang
0 siblings, 0 replies; 2+ messages in thread
From: Robert Yang @ 2016-01-22 8:53 UTC (permalink / raw)
To: bitbake-devel
This is useful for newbie, for example:
$ bitbake rpm-build
ERROR: Nothing PROVIDES 'rpm-build'. Close matches:
pm-utils
rpm RPROVIDES rpm-build
[YOCTO #8881]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
bitbake/lib/bb/taskdata.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/bitbake/lib/bb/taskdata.py b/bitbake/lib/bb/taskdata.py
index b083870..39c899e 100644
--- a/bitbake/lib/bb/taskdata.py
+++ b/bitbake/lib/bb/taskdata.py
@@ -429,7 +429,14 @@ class TaskData:
return
if not item in dataCache.providers:
- bb.event.fire(bb.event.NoProvider(item, dependees=self.get_dependees_str(item), reasons=self.get_reasons(item), close_matches=self.get_close_matches(item, dataCache.providers.keys())), cfgData)
+ close_matches = self.get_close_matches(item, dataCache.providers.keys())
+ # Is it in RuntimeProviders ?
+ all_p = bb.providers.getRuntimeProviders(dataCache, item)
+ for fn in all_p:
+ new = dataCache.pkg_fn[fn] + " RPROVIDES " + item
+ if new not in close_matches:
+ close_matches.append(new)
+ bb.event.fire(bb.event.NoProvider(item, dependees=self.get_dependees_str(item), reasons=self.get_reasons(item), close_matches=close_matches), cfgData)
raise bb.providers.NoProvider(item)
if self.have_build_target(item):
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-22 8:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-22 8:53 [PATCH 0/1] taskdata.py: add RuntimeProviders to close matches Robert Yang
2016-01-22 8:53 ` [PATCH 1/1] " Robert Yang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.