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:55:50
Message-Id: 20120720185419.23244eb7@googlemail.com
In Reply to: Re: [gentoo-dev] RFC: l10n.eclass by Alexandre Rostovtsev
1 On Fri, 20 Jul 2012 13:43:15 -0400
2 Alexandre Rostovtsev <tetromino@g.o> wrote:
3 > > If you dep upon foo[linguas_en(+)] and linguas_en isn't in IUSE,
4 > > what happens?
5 >
6 > Fatal error. If a package installs its translations implicitly via
7 > gettext's rules depending on the value of LINGUAS at configure time,
8 > then obviously other packages must rely on that package having
9 > installed any particular translation.
10
11 Uh, the entire point of the (+) is that it's *not* a fatal error if you
12 have a default.
13
14 > > > Otherwise, it is treated just like a normal environment variable,
15 > > > and portage doesn't touch it.
16 > >
17 > > It's not a normal environment variable, and it never has been.
18 >
19 > LINGUAS has been an environment variable with a special meaning for
20 > gettext-based build systems, which are rather popular in the free
21 > software world, since, oh, at least the year 2002 or so, when
22 > gettext-0.11 was released. Maybe even earlier.
23
24 And? Gentoo has decided to handle it otherwise.
25
26 > > > For most gettext packages, there is absolutely no reason that the
27 > > > ebuild maintainer should have to keep track of every translation
28 > > > available in a given package across version bumps. If you change
29 > > > this behavior in a future EAPI, you will break this.
30 > >
31 > > Don't use a USE_EXPAND variable if you don't want USE_EXPAND
32 > > behaviour.
33 >
34 > Thousands of packages rely on a particular interpretation of LINGUAS
35 > that has been standard across all distros for a decade. If that
36 > behavior changed in EAPI5, then EAPI5 is not suitable for adoption in
37 > Gentoo.
38
39 The feature was already approved by the Council for the EAPI originally
40 known as 3. It's necessary to make use dependency defaults work
41 correctly for USE_EXPAND variables (which they currently do not, due to
42 it being omitted from what became EAPI 4).
43
44 --
45 Ciaran McCreesh

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] RFC: l10n.eclass Alexandre Rostovtsev <tetromino@g.o>
Re: [gentoo-dev] RFC: l10n.eclass Ian Stakenvicius <axs@g.o>