All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Robert Yang <liezhi.yang@windriver.com>,
	bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH 7/8] bitbake: cooker: fix event notifications
Date: Fri, 02 Feb 2018 11:19:15 +0000	[thread overview]
Message-ID: <1517570355.3090.58.camel@linuxfoundation.org> (raw)
In-Reply-To: <83c30f41462e2f78738b61f7beaf32411949fd7a.1517497731.git.liezhi.yang@windriver.com>

On Thu, 2018-02-01 at 23:15 +0800, Robert Yang wrote:
> There are two kinds of events:
> * directory
>   We always need handle the event since we don't know what inside the
>   directory, for example:
>   $ bitbake --server-only -T -1
>   $ bitbake -p
>   $ mkdir ${TOPDIR}/classes
>   $ cp /path/to/base.bbclass classes
> 
>   The "${TOPDIR}/classes" is a new directory, the event only reports
> that the
>   directory is created, we don't know there is a base.bbclass unless
> the parser
>   runs.
> 
> * file:
>   Use bb.parse.supports() to check whether bitbake supports it or
> not.
> 
> And now the bbwatchedfiles is not needed anymore.
> 
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
>  bitbake/lib/bb/cooker.py | 34 ++++++++++++++++++----------------
>  1 file changed, 18 insertions(+), 16 deletions(-)

I'm not sure you can do this. For example, bitbake itself doesn't
know/care about *.patch files, however if one is referenced in a
SRC_URI and ends up on the watch list, would this change break a patch
file changing causing task checksums to change?

Its looking like we need better tests for some of this code too :/.

Cheers,

Richard



  reply	other threads:[~2018-02-02 11:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-01 15:15 [PATCH 0/8] cooker: fixes and parsing performance improve Robert Yang
2018-02-01 15:15 ` [PATCH 1/8] bitbake: cooker: skip when BBFILE_PATTERN is empty Robert Yang
2018-02-01 15:15 ` [PATCH 2/8] bitbake: cooker: fix for BBFILE_PATTERN matches bbappend Robert Yang
2018-02-01 15:15 ` [PATCH 3/8] bitbake: cooker: don't stop file notifier when cooker is shutdown Robert Yang
2018-02-01 15:15 ` [PATCH 4/8] bitbake: cooker: don't preserve BB_CONSOLELOG Robert Yang
2018-02-05  9:39   ` Richard Purdie
2018-02-08  4:18     ` Robert Yang
2018-02-01 15:15 ` [PATCH 5/8] bitbake: cache: improve debug message Robert Yang
2018-02-01 15:15 ` [PATCH 6/8] bitbake: parse: fixes for resolve_file() Robert Yang
2018-02-01 15:15 ` [PATCH 7/8] bitbake: cooker: fix event notifications Robert Yang
2018-02-02 11:19   ` Richard Purdie [this message]
2018-02-06  8:46     ` Robert Yang
2018-02-01 15:15 ` [PATCH 8/8] bitbake: cooker: improve inotify handling Robert Yang

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=1517570355.3090.58.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=liezhi.yang@windriver.com \
    /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 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.