Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: l10n.eclass
Date: Fri, 20 Jul 2012 18:11:14
Message-Id: CAJ0EP42JSSip5CJ+Tfv5ZQ+NA71rUVFnW8p1ptAHfbDCwK=WmQ@mail.gmail.com
In Reply to: Re: [gentoo-dev] RFC: l10n.eclass by Ciaran McCreesh
1 On Fri, Jul 20, 2012 at 2:03 PM, Ciaran McCreesh
2 <ciaran.mccreesh@××××××××××.com> wrote:
3 > On Fri, 20 Jul 2012 13:55:46 -0400
4 > Mike Gilbert <floppym@g.o> wrote:
5 >> On Fri, Jul 20, 2012 at 2:54 AM, Ciaran McCreesh
6 >> <ciaran.mccreesh@××××××××××.com> wrote:
7 >> > On Thu, 19 Jul 2012 18:34:41 -0400
8 >> > Mike Gilbert <floppym@g.o> wrote:
9 >> >> On Thu, Jul 19, 2012 at 5:13 PM, Zac Medico <zmedico@g.o>
10 >> >> wrote:
11 >> >> > On 07/19/2012 06:14 AM, Ralph Sennhauser wrote:
12 >> >> >> Could be that Portage re-exports a sanitized
13 >> >> >> LINGUAS tough, but I doubt it.
14 >> >> >
15 >> >> > Portage does sanitize it if there are any linguas_* flags in
16 >> >> > IUSE, otherwise it lets the variable pass through without
17 >> >> > sanitizing it.
18 >> >>
19 >> >> That's good; we definitely don't want to "sanitize" it if there
20 >> >> are no linuguas_* flags in IUSE. This would break LINUGUAS support
21 >> >> for many autotools/gettext based packages, where the autotools
22 >> >> code parses LINGUAS directly and the ebuild does nothing with it.
23 >> >
24 >> > If there aren't any linguas_* flags in IUSE, LINGUAS should be
25 >> > empty, and will be in future EAPIs. Without that, USE dependencies
26 >> > on USE_EXPAND variables don't work.
27 >>
28 >> Do you mean that LINGUAS will be empty, or unset (undefined) in an
29 >> ebuild context? The difference is significant here.
30 >
31 > For EAPIs before 5, LINGUAS contains *at least* the things in IUSE
32 > intersected with the ones the user has enabled, with the linguas_
33 > stripped. It's not just "the environment variable in make.conf", since a
34 > user might put linguas_en in package.use.
35 >
36 > For EAPIs 5 and onwards, LINGUAS contains only those things, and
37 > definitely won't contain anything else.
38
39 Let me rephrase my question: If the user has not enabled any of the
40 linguas flags via make.conf or package.use, will the LINGUAS variable
41 be empty or unset in the ebuild environment?

Replies

Subject Author
Re: [gentoo-dev] RFC: l10n.eclass Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>