From: Mike Crowe <mac@mcrowe.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: "Openembedded-core@lists.openembedded.org"
<Openembedded-core@lists.openembedded.org>
Subject: Re: Use of multilib.conf taints hashes of -native recipes
Date: Thu, 12 Dec 2019 20:07:51 +0000 [thread overview]
Message-ID: <20191212200751.GA6113@mcrowe.com> (raw)
In-Reply-To: <3c5243c3abf579069c651312902ca48a087e9842.camel@linuxfoundation.org>
On Thursday 12 December 2019 at 18:17:37 +0000, Richard Purdie wrote:
> On Thu, 2019-12-12 at 16:05 +0000, Mike Crowe via Openembedded-core
> wrote:
> > We compile for a variety of machines, some of which require
> > multilib.conf
> > and some that do not. I was surprised to discover when switching
> > between
> > machines that the do_populate_sysroot_setscene tasks run for many
> > -native
> > recipe. :(
> >
> > It looks like this is because RECIPE_SYSROOT changes:
> >
> > Variable RECIPE_SYSROOT value changed from '${WORKDIR}/recipe-
> > sysroot' to '${WORKDIR}/${MLPREFIX}recipe-sysroot'
> >
> > This problem goes away if I add the following line to native.bbclass:
> >
> > RECIPE_SYSROOT = "${WORKDIR}/recipe-sysroot"
> >
> > but this feels like I'm solving the problem in the wrong place. Would
> > it be
> > better to modify multilib.conf to say something like:
> >
> > RECIPE_SYSROOT_class-target = "${WORKDIR}/${MLPREFIX}recipe-sysroot"
> >
> > instead? (Although I'm rather worried that this will stop it actually
> > working.)
>
> I'm a little bit surprised we don't have tests which detect this.
>
> "oe-selftest -r ssstatetests"
>
> should have something which detected this, at least from memory. Could
> you take a look and see if we're missing some testcase?
There are only two test cases that mention multilib:
test_sstate_nativesdk_samesigs_multilib
test_sstate_sametune_samesigs
Neither seems to test for this. I shall try to write one that builds
binutils-native both with and without multilib.
Thanks.
Mike.
prev parent reply other threads:[~2019-12-12 20:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-12 16:05 Use of multilib.conf taints hashes of -native recipes Mike Crowe
2019-12-12 17:28 ` Khem Raj
2019-12-12 18:17 ` Richard Purdie
2019-12-12 20:07 ` Mike Crowe [this message]
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=20191212200751.GA6113@mcrowe.com \
--to=mac@mcrowe.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox