From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Joshua Lock <josh@linux.intel.com>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH 3/4] bb/cooker: only emit ConfigFilePathFound for files which were parsed
Date: Tue, 09 Aug 2011 15:19:22 +0100 [thread overview]
Message-ID: <1312899562.14274.303.camel@rex> (raw)
In-Reply-To: <3f06f5187755ed7ee59eb4c486733c643a4770ae.1312852599.git.josh@linux.intel.com>
On Mon, 2011-08-08 at 18:18 -0700, Joshua Lock wrote:
> When the requested configuration file is found on disk check the
> against the configuration files in __depends/__base_depends to ensure the
> file was parsed before emitting the ConfigFilePathFound event.
> If the requested file wasn't parsed just return (and don't emit).
>
> Fixes [YOCTO #1246]
>
> Signed-off-by: Joshua Lock <josh@linux.intel.com>
> ---
> lib/bb/cooker.py | 32 ++++++++++++++++++++++++++++++--
> 1 files changed, 30 insertions(+), 2 deletions(-)
>
> diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
> index 6022192..337a817 100644
> --- a/lib/bb/cooker.py
> +++ b/lib/bb/cooker.py
> @@ -609,9 +609,37 @@ class BBCooker:
> collectlog.warn("No bb files matched BBFILE_PATTERN_%s '%s'" % (collection, pattern))
>
> def findConfigFilePath(self, configfile):
> + """
> + Find the location on disk of configfile and if it exists and was parsed by BitBake
> + emit the ConfigFilePathFound event with the path to the file.
> + """
> path = self._findConfigFile(configfile)
> - if path:
> - bb.event.fire(bb.event.ConfigFilePathFound(path), self.configuration.data)
> + if not path:
> + return
> +
> + # Generate a list of parsed configuration files by searching the files
> + # listed in the __depends variable with a .conf suffix.
> + # NOTE: We can't know if we've been called before the variable has been
> + # renamed so if depends isn't set try __base_depends (the variable name
> + # after rename).
> + conffiles = []
> + dep_files = bb.data.getVar('__depends', self.configuration.data) or None
> + if not dep_files:
> + dep_files = bb.data.getVar('__base_depends', self.configuration.data) or set()
Nearly. You need to look at the combined array of __depends and
__base_depends values here...
Cheers,
Richard
next prev parent reply other threads:[~2011-08-09 14:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-09 1:18 [PATCH 0/4] Bug fixes for hob Joshua Lock
2011-08-09 1:18 ` [PATCH 1/4] bb/ui/crumbs/tasklistmodel: prevent hang when removing item Joshua Lock
2011-08-09 1:18 ` [PATCH 2/4] bb/ui/hob: move some code around to avert a race Joshua Lock
2011-08-09 1:18 ` [PATCH 3/4] bb/cooker: only emit ConfigFilePathFound for files which were parsed Joshua Lock
2011-08-09 14:19 ` Richard Purdie [this message]
2011-08-09 1:18 ` [PATCH 4/4] bb/ui/hob: Restore toolchain relevant preference settings for build Joshua Lock
2011-08-09 14:20 ` [PATCH 0/4] Bug fixes for hob Richard Purdie
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=1312899562.14274.303.camel@rex \
--to=richard.purdie@linuxfoundation.org \
--cc=bitbake-devel@lists.openembedded.org \
--cc=josh@linux.intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox