From: Phil Blundell <pb@pbcl.net>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Cc: Kang@smtp1.linux-foundation.org, poky@yoctoproject.org
Subject: Re: [PATCH 1/1] eglibc: migrate configurability from oe
Date: Fri, 03 Jun 2011 10:49:23 +0100 [thread overview]
Message-ID: <1307094563.2529.226.camel@phil-desktop> (raw)
In-Reply-To: <1307089346.27470.624.camel@rex>
On Fri, 2011-06-03 at 09:22 +0100, Richard Purdie wrote:
> On Fri, 2011-06-03 at 14:47 +0800, Kang Kai wrote:
> > From: Kang Kai <kai.kang@windriver.com>
> >
> > Migrate configurability from oe, try to shrink minimal image size
> >
> > The switch is in local.conf.sample, uncomment the line
> > DISTRO_FEATURES_EGLIBC = ""
> > and write what options you want to enable.
> >
> > If want to disable locale-code charsets or locales, you have to uncomment
> > PACKAGE_NO_GCONV = 1
> > Because without this, it fails on package_do_split_gconvs in libc-package.bbclass
>
> I have some comments:
>
> a) I think these should become flags in DISTRO_FEATURES with an
> "eglibc-" prefix so something like "spawn" would become "eglibc-spawn"
I'm not sure I agree with that. Some, maybe most, of these flags are
not really specific to eglibc (in concept, even if eglibc is the only
package which respects them at the moment). Some of them (eg ipv6) are
already established DISTRO_FEATURES which are used in various other
places; others, including perhaps your spawn example, are specifically
bound to the contents of the C library but could equally well be
respected by uclibc. So, for the latter group, I think just
"libc-spawn" would be better than "eglibc-spawn". Maybe
"libc-has-spawn" would be even better, to make it clear that we're
talking about a feature within libc and not a specific variant of libc.
In an ideal world there would also be a mechanism for packages to
declare that they require a particular feature from libc, i.e. a recipe
could say
DISTRO_REQUIRED_FEATURES = "libc-spawn"
and it would then be a configuration error to try to build that recipe
for a distro that doesn't admit the necessary things.
> b) I think we need to create a local.conf.sample.extended which has
> information about more advanced settings a user can configure. I don't
> want every setting in local.conf as standard as it gives the user the
> impression they have to change them which they don't. Some existing data
> in local.conf.sample can be moved over.
Agreed.
> c) The code triggered by PACKAGE_NO_GCONV should also trigger if you set
> the appropriate eglibc- feature flags automatically. Having two
> variables you have to keep track of the combinations of is just plain
> wrong. They should be controlled by one flag only. If there is generic
> packaging code that handles these we might not need the "eglibc-" prefix
> for those options.
I didn't fully understand the commentary around PACKAGE_NO_GCONV so I'm
not sure that I have a meaningful opinion on that one yet. As far as I
know, though, there is no generic packaging code for gconvs (unlike
locales, which are handled generically in package.bbclass) but, again,
the concept of gconvs is not eglibc specific and there are other libs
which might provide them.
p.
next prev parent reply other threads:[~2011-06-03 9:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-03 6:47 [PATCH 0/1] eglibc: enable eglibc configurability V2 Kang Kai
2011-06-03 6:47 ` [PATCH 1/1] eglibc: migrate configurability from oe Kang Kai
2011-06-03 8:22 ` Richard Purdie
2011-06-03 8:54 ` Kang Kai
2011-06-03 9:52 ` Richard Purdie
2011-06-03 8:57 ` Koen Kooi
2011-06-03 9:51 ` Richard Purdie
2011-06-03 18:00 ` Khem Raj
2011-06-03 9:49 ` Phil Blundell [this message]
2011-06-03 11:32 ` [PATCH 0/1] eglibc: enable eglibc configurability V2 Phil Blundell
2011-06-03 11:50 ` Richard Purdie
2011-06-03 12:06 ` Phil Blundell
-- strict thread matches above, loose matches on Subject: below --
2011-06-03 1:41 [PATCH 0/1] eglibc: enable eglibc configurability Kang Kai
2011-06-03 1:41 ` [PATCH 1/1] eglibc: migrate configurability from oe Kang Kai
2011-06-03 1:14 ` Saul Wold
2011-06-03 1:23 ` Kang Kai
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=1307094563.2529.226.camel@phil-desktop \
--to=pb@pbcl.net \
--cc=Kang@smtp1.linux-foundation.org \
--cc=openembedded-core@lists.openembedded.org \
--cc=poky@yoctoproject.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