From: Saul Wold <sgw@linux.intel.com>
To: Richard Tollerton <rich.tollerton@ni.com>
Cc: paul.eggleton@linux.intel.com, gratian.crisan@ni.com,
ken.sharp@ni.com, openembedded-core@lists.openembedded.org
Subject: Re: [dylan, master][PATCH] autotools.bbclass: Fix race with sed-native
Date: Fri, 04 Oct 2013 20:22:18 -0700 [thread overview]
Message-ID: <524F85EA.30805@linux.intel.com> (raw)
In-Reply-To: <1380929753-10606-1-git-send-email-rich.tollerton@ni.com>
On 10/04/2013 04:35 PM, Richard Tollerton wrote:
> Suppose the following:
> 1) foo.do_configure/do_build runs in parallel with
> sed-native.do_configure;
> 2) foo.do_configure/do_build makes use of sed (i.e. inherits autotools);
> 3) A previously built sed-native already exists in the native sysroot,
> and in the sstate cache.
>
> Then sed-native may be deleted from its sysroot via
> sstate_clean_manifest while foo.do_configure/do_build is using it,
> leading to an irreproducible build failure.
>
> This fix does for sed-native what's already done for libtool-native,
> with some additional light refactoring.
>
This also starts to create more front end bottle next on autotools
related items before we can really start to parallelize the build.
More thought is required on this.
> Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
> ---
> meta/classes/autotools.bbclass | 26 +++++++++++++++++---------
> 1 file changed, 17 insertions(+), 9 deletions(-)
>
> diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
> index 66c0f5d..2bb2aa3 100644
> --- a/meta/classes/autotools.bbclass
> +++ b/meta/classes/autotools.bbclass
> @@ -7,17 +7,25 @@ def autotools_dep_prepend(d):
>
> if pn in ['autoconf-native', 'automake-native', 'help2man-native']:
> return deps
> - deps += 'autoconf-native automake-native '
> + deps += 'autoconf-native automake-native gnu-config-native '
>
You don't mention anything about this change.
Sau!
> - if not pn in ['libtool', 'libtool-native'] and not pn.endswith("libtool-cross"):
> - deps += 'libtool-native '
> - if not bb.data.inherits_class('native', d) \
> - and not bb.data.inherits_class('nativesdk', d) \
> - and not bb.data.inherits_class('cross', d) \
> - and not d.getVar('INHIBIT_DEFAULT_DEPS', True):
> - deps += 'libtool-cross '
> + if pn in ['libtool', 'libtool-native'] or pn.endswith("libtool-cross"):
> + return deps
> + deps += 'libtool-native '
> +
> + if d.getVar('INHIBIT_DEFAULT_DEPS', True):
> + return deps
> +
> + if pn not in ['sed-native']:
> + deps += 'sed-native '
> +
> + if bb.data.inherits_class('native', d) \
> + or bb.data.inherits_class('nativesdk', d) \
> + or bb.data.inherits_class('cross', d):
> + return deps
> + deps += 'libtool-cross '
>
> - return deps + 'gnu-config-native '
> + return deps
>
> EXTRA_OEMAKE = ""
>
>
next prev parent reply other threads:[~2013-10-05 3:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-04 23:35 [dylan, master][PATCH] autotools.bbclass: Fix race with sed-native Richard Tollerton
2013-10-05 3:22 ` Saul Wold [this message]
2013-10-05 7:37 ` Richard Purdie
2013-10-08 2:44 ` Richard Tollerton
2013-10-08 12:19 ` Richard Purdie
2013-10-08 13:03 ` Enrico Scholz
2013-10-08 17:47 ` Richard Tollerton
2013-10-10 9:00 ` Richard Purdie
2013-10-10 10:29 ` Phil Blundell
2013-10-08 2:55 ` Richard Tollerton
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=524F85EA.30805@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=gratian.crisan@ni.com \
--cc=ken.sharp@ni.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=paul.eggleton@linux.intel.com \
--cc=rich.tollerton@ni.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