| Submitter | Shane Wang |
|---|---|
| Date | Feb. 29, 2012, 2:15 p.m. |
| Message ID | <93713faf8701668260d1822f9be8c8e6deaafc03.1330523904.git.shane.wang@intel.com> |
| Download | mbox | patch |
| Permalink | /patch/22485/ |
| State | New |
| Headers | show |
Comments
On Wed, 2012-02-29 at 22:15 +0800, Shane Wang wrote: > From: Dongxiao Xu <dongxiao.xu@intel.com> > > Currently for non-x86 architecture, there are un-resolved dependency > issue when generate universe dependency tree. Therefore disable the > handling of "NoProvider" event in Hob to enable the build for non-x86 > architectures. After we resolved the dependency for universe, we still > need to handle this event in Hob. > > Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> > --- > bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 37 ++++++++++++++------------ > 1 files changed, 20 insertions(+), 17 deletions(-) Shouldn't you be using world and not universe for this? I suspect world shouldn't show the NoProvider issues? Cheers, Richard
On Thu, 2012-03-01 at 15:23 +0000, Richard Purdie wrote: > On Wed, 2012-02-29 at 22:15 +0800, Shane Wang wrote: > > From: Dongxiao Xu <dongxiao.xu@intel.com> > > > > Currently for non-x86 architecture, there are un-resolved dependency > > issue when generate universe dependency tree. Therefore disable the > > handling of "NoProvider" event in Hob to enable the build for non-x86 > > architectures. After we resolved the dependency for universe, we still > > need to handle this event in Hob. > > > > Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> > > --- > > bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 37 ++++++++++++++------------ > > 1 files changed, 20 insertions(+), 17 deletions(-) > > Shouldn't you be using world and not universe for this? > > I suspect world shouldn't show the NoProvider issues? Unluckily world also has the same issue, since core-image-minimal-initramfs and initramfs-live-install recipes are all contained in world area. Thanks, Dongxiao > > Cheers, > > Richard > > > _______________________________________________ > bitbake-devel mailing list > bitbake-devel@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/bitbake-devel
Patch
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index 6c109fc..9c82bfe 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py @@ -215,23 +215,26 @@ class HobHandler(gobject.GObject): elif isinstance(event, bb.command.CommandCompleted): self.current_phase = None self.run_next_command() - - elif isinstance(event, bb.event.NoProvider): - if event._runtime: - r = "R" - else: - r = "" - if event._dependees: - self.error_msg += " Nothing %sPROVIDES '%s' (but %s %sDEPENDS on or otherwise requires it)" % (r, event._item, ", ".join(event._dependees), r) - else: - self.error_msg += " Nothing %sPROVIDES '%s'" % (r, event._item) - if event._reasons: - for reason in event._reasons: - self.error_msg += " %s" % reason - - self.commands_async = [] - self.emit("command-failed", self.error_msg) - self.error_msg = "" + # TODO: Currently there are NoProvider issues when generate + # universe tree dependency for non-x86 architecture. + # Comment the follow code to enable the build of non-x86 + # architectures in Hob. + #elif isinstance(event, bb.event.NoProvider): + # if event._runtime: + # r = "R" + # else: + # r = "" + # if event._dependees: + # self.error_msg += " Nothing %sPROVIDES '%s' (but %s %sDEPENDS on or otherwise requires it)" % (r, event._item, ", ".join(event._dependees), r) + # else: + # self.error_msg += " Nothing %sPROVIDES '%s'" % (r, event._item) + # if event._reasons: + # for reason in event._reasons: + # self.error_msg += " %s" % reason + + # self.commands_async = [] + # self.emit("command-failed", self.error_msg) + # self.error_msg = "" elif isinstance(event, bb.command.CommandFailed): self.commands_async = []