From: Denys Dmytriyenko <denis@denix.org>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 4/4] sstate: Avoid indirect bison/flex-native dependencies
Date: Tue, 10 Apr 2018 10:33:11 -0400 [thread overview]
Message-ID: <20180410143311.GD3228@denix.org> (raw)
In-Reply-To: <1515690095-6391-4-git-send-email-richard.purdie@linuxfoundation.org>
Richard,
Was this patch ever merged? I don't see it in master - were there any problems
or concerns?
On Thu, Jan 11, 2018 at 05:01:35PM +0000, Richard Purdie wrote:
> This avoids adding flex-native or bison-native to the sysroot without a specific
> dependency in the recipe and means indirect dependencies (e.g. X -> Y -> binutils-cross -> flex-native)
> no longer met the dependency incidentally. This improves determinism and avoid
> build failures when people switch to external toolchains.
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
> meta/classes/sstate.bbclass | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> index 6808942..7509561 100644
> --- a/meta/classes/sstate.bbclass
> +++ b/meta/classes/sstate.bbclass
> @@ -921,6 +921,13 @@ def setscene_depvalid(task, taskdependees, notneeded, d, log=None):
> if taskdependees[task][1] == "do_stash_locale" or taskdependees[task][1] == "do_gcc_stash_builddir":
> return True
>
> + # Don't pull in flex-native or bison-native without a specific dependency in the recipe
> + # This improves determinism in the metadata and avoids the dependency being met incidentally,
> + # e.g. from binutils-cross which doesn't happen in the external toolchain case
> + if taskdependees[task][1] == 'do_populate_sysroot':
> + if taskdependees[task][0] == "flex-native" or taskdependees[task][0] == "bison-native":
> + return True
> +
> # We only need to trigger packagedata through direct dependencies
> # but need to preserve packagedata on packagedata links
> if taskdependees[task][1] == "do_packagedata":
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
next prev parent reply other threads:[~2018-04-10 14:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-11 17:01 [PATCH 1/4] perf: Add missing bison-native and flex-native dependencies Richard Purdie
2018-01-11 17:01 ` [PATCH 2/4] at: Add missing bison-native dependency Richard Purdie
2018-01-11 17:01 ` [PATCH 3/4] gcc: Add missing flex-native dependency Richard Purdie
2018-01-11 17:01 ` [PATCH 4/4] sstate: Avoid indirect bison/flex-native dependencies Richard Purdie
2018-04-10 14:33 ` Denys Dmytriyenko [this message]
2018-04-10 16:36 ` Richard Purdie
2018-04-10 16:48 ` Denys Dmytriyenko
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=20180410143311.GD3228@denix.org \
--to=denis@denix.org \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.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 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.