Openembedded Bitbake Development
 help / color / mirror / Atom feed
From: Joshua Lock <josh@linux.intel.com>
To: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH 02/11] Hob: Disable the handling of "NoProvider" event
Date: Wed, 14 Mar 2012 12:37:57 -0700	[thread overview]
Message-ID: <4F60F395.9080502@linux.intel.com> (raw)
In-Reply-To: <42a098d7aa3f119f3f6735be07da727591ef8118.1331716896.git.dongxiao.xu@intel.com>



On 14/03/12 02:26, Dongxiao Xu wrote:
> 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.

I'm not sure we'll ever be able to strongly guarantee that NoProvider 
issues won't creep in. Would we better off coming up with a more tenable 
long term solution?

>
> Signed-off-by: Dongxiao Xu<dongxiao.xu@intel.com>

This is a reasonable short-term solution

Signed-off-by: Joshua Lock <josh@linux.intel.com>

> ---
>   lib/bb/ui/crumbs/hobeventhandler.py |   37 ++++++++++++++++++----------------
>   1 files changed, 20 insertions(+), 17 deletions(-)
>
> diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py
> index 6c109fc..9c82bfe 100644
> --- a/lib/bb/ui/crumbs/hobeventhandler.py
> +++ b/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 = []

-- 
Joshua '贾詡' Lock
         Yocto Project "Johannes factotum"
         Intel Open Source Technology Centre



  reply	other threads:[~2012-03-14 19:47 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-14  9:26 [PATCH 00/11][PULL] Hob: Functionality and GUI fixes Dongxiao Xu
2012-03-14  9:26 ` [PATCH 01/11] Hob: add "Close" button to "BinbDialog" Dongxiao Xu
2012-03-14 19:38   ` Joshua Lock
2012-03-14  9:26 ` [PATCH 02/11] Hob: Disable the handling of "NoProvider" event Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock [this message]
2012-03-15  8:31     ` Xu, Dongxiao
2012-03-15 22:35       ` Joshua Lock
2012-03-14  9:26 ` [PATCH 03/11] cooker: add package rdepends and rrecommends info Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-14  9:26 ` [PATCH 04/11] Hob: Fix the image installation dependency Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-15  6:02     ` Xu, Dongxiao
2012-03-15 17:47       ` Joshua Lock
2012-03-14  9:26 ` [PATCH 05/11] Hob: Remove the reset button in recipe/package selection page Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-14  9:26 ` [PATCH 06/11] Hob: Remove the indication in machine/base image combobox Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-14  9:26 ` [PATCH 07/11] Hob: Remove the recipe/package populated signal Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-14  9:26 ` [PATCH 08/11] Hob: Show recipe/package editing button after base image is selected Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-14  9:26 ` [PATCH 09/11] Hob: Emit command-failed signal even if error msg is None Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-14  9:26 ` [PATCH 10/11] Hob: Add stop button for parsing progress Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-15  0:44     ` Xu, Dongxiao
2012-03-14  9:26 ` [PATCH 11/11] Hob: improve recipe/package selection performance Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-14 23:54     ` Xu, Dongxiao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F60F395.9080502@linux.intel.com \
    --to=josh@linux.intel.com \
    --cc=bitbake-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox