Gentoo Archives: gentoo-dev

From: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: l10n.eclass
Date: Fri, 20 Jul 2012 17:10:44
Message-Id: 20120720180910.748470a0@googlemail.com
In Reply to: Re: [gentoo-dev] RFC: l10n.eclass by Mike Gilbert
1 On Fri, 20 Jul 2012 12:39:21 -0400
2 Mike Gilbert <floppym@g.o> wrote:
3 > On Fri, Jul 20, 2012 at 2:54 AM, Ciaran McCreesh
4 > <ciaran.mccreesh@××××××××××.com> wrote:
5 > > On Thu, 19 Jul 2012 18:34:41 -0400
6 > > Mike Gilbert <floppym@g.o> wrote:
7 > >> On Thu, Jul 19, 2012 at 5:13 PM, Zac Medico <zmedico@g.o>
8 > >> wrote:
9 > >> > On 07/19/2012 06:14 AM, Ralph Sennhauser wrote:
10 > >> >> Could be that Portage re-exports a sanitized
11 > >> >> LINGUAS tough, but I doubt it.
12 > >> >
13 > >> > Portage does sanitize it if there are any linguas_* flags in
14 > >> > IUSE, otherwise it lets the variable pass through without
15 > >> > sanitizing it.
16 > >>
17 > >> That's good; we definitely don't want to "sanitize" it if there
18 > >> are no linuguas_* flags in IUSE. This would break LINUGUAS support
19 > >> for many autotools/gettext based packages, where the autotools
20 > >> code parses LINGUAS directly and the ebuild does nothing with it.
21 > >
22 > > If there aren't any linguas_* flags in IUSE, LINGUAS should be
23 > > empty, and will be in future EAPIs. Without that, USE dependencies
24 > > on USE_EXPAND variables don't work.
25 >
26 > How do you figure that?
27
28 If you dep upon foo[linguas_en(+)] and linguas_en isn't in IUSE, what
29 happens?
30
31 > The current portage behavior works well enough; if linugas_* is in
32 > IUSE, LINGUAS is treated as a USE_EXPAND, and use-deps should work
33 > fine.
34 >
35 > Otherwise, it is treated just like a normal environment variable, and
36 > portage doesn't touch it.
37
38 It's not a normal environment variable, and it never has been.
39
40 > For most gettext packages, there is absolutely no reason that the
41 > ebuild maintainer should have to keep track of every translation
42 > available in a given package across version bumps. If you change this
43 > behavior in a future EAPI, you will break this.
44
45 Don't use a USE_EXPAND variable if you don't want USE_EXPAND behaviour.
46
47 --
48 Ciaran McCreesh

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] RFC: l10n.eclass Mike Gilbert <floppym@g.o>
Re: [gentoo-dev] RFC: l10n.eclass Alexandre Rostovtsev <tetromino@g.o>