From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 2/2] tclibc-uclibc.inc: Append -uclibc only to target recipes
Date: Tue, 17 May 2011 10:34:59 +0100 [thread overview]
Message-ID: <1305624899.3424.209.camel@rex> (raw)
In-Reply-To: <1305623837.2429.126.camel@phil-desktop>
On Tue, 2011-05-17 at 10:17 +0100, Phil Blundell wrote:
> On Tue, 2011-05-17 at 01:13 +0100, Richard Purdie wrote:
> > The more I looked at that patch, the more holes I could see in what we
> > were doing (and what Angstrom currently does). I started playing around
> > with the patch below which tried to improve on that idea.
> >
> > I then concluded that we might be able to do something like:
> >
> > MACHINEOVERRIDES := "${MACHINE}"
> > MACHINE_append = "-uclibc"
> >
> > since what we're really trying to do in the uclibc case is replace
> > anything MACHINE specific with something containing uclibc?
>
> I think that particular change would be a bad idea for several reasons.
> Firstly, and perhaps most importantly, MACHINE is a primary
> configuration variable and having it magically change under the hood
> seems like it would violate the principle of least surprise. Secondly,
> at a practical level, this would make it hard to use MACHINE for
> anything other than overrides. And thirdly, at a conceptual level, the
> choice of libc is really nothing to do with the MACHINE.
>
> > diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> > index 553c6a2..354668f 100644
> > --- a/meta/classes/sstate.bbclass
> > +++ b/meta/classes/sstate.bbclass
>
> This patch looks good to me (and I would definitely prefer this to the
> solution above). The lines that you have deleted from tclibc-uclibc.inc
> were causing my uclibc builds to fail so I would certainly be glad to
> have them removed.
No question those lines are "wrong" but the solutions various people are
using out there are "wrong" in various ways too (including what is
'working' in ansgtrom at the moment).
A solution where you replace 80% of uses of a variable with a new
variable as per my proposed patch doesn't quite feel right either.
How about this idea:
TMPDIR_append = "-uclibc"
since sstate cache is deliberately outside TMPDIR so anything that can
be reused between builds will automatically.
Simple, effective and addresses a lot of the bugs I can see in the other
approaches...
Cheers,
Richard
next prev parent reply other threads:[~2011-05-17 9:38 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-16 6:04 [PATCH 0/2] Adjust default distrovars Khem Raj
2011-05-16 6:04 ` [PATCH 1/2] default-distrovars.inc: Do not add DISTRO_EXTRA_RDEPENDS and DISTRO_EXTRA_RRECOMMENDS Khem Raj
2011-05-16 6:04 ` [PATCH 2/2] tclibc-uclibc.inc: Append -uclibc only to target recipes Khem Raj
2011-05-16 6:58 ` Koen Kooi
2011-05-16 9:55 ` Khem Raj
2011-05-16 11:41 ` Richard Purdie
2011-05-16 13:11 ` Koen Kooi
2011-05-16 13:50 ` Richard Purdie
2011-05-16 15:43 ` Koen Kooi
2011-05-17 0:13 ` Richard Purdie
2011-05-17 9:17 ` Phil Blundell
2011-05-17 9:34 ` Richard Purdie [this message]
2011-05-17 9:44 ` Phil Blundell
2011-05-17 14:31 ` Richard Purdie
2011-05-17 14:40 ` Phil Blundell
2011-05-18 5:36 ` Khem Raj
2011-05-18 5:49 ` Khem Raj
2011-05-18 7:49 ` Khem Raj
2011-05-18 7:57 ` Richard Purdie
2011-05-18 8:12 ` Khem Raj
2011-05-18 8:47 ` Koen Kooi
2011-05-18 9:55 ` Khem Raj
2011-05-18 8:48 ` Frans Meulenbroeks
2011-05-18 10:09 ` Richard Purdie
2011-05-20 1:10 ` [PATCH 0/2] Adjust default distrovars Saul Wold
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=1305624899.3424.209.camel@rex \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.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