Gentoo Archives: gentoo-dev

From: Mart Raudsepp <leio@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] Masterplan for solving LINGUAS problems
Date: Wed, 01 Jun 2016 09:18:44
In Reply to: [gentoo-dev] [RFC] Masterplan for solving LINGUAS problems by "Michał Górny"
1 Ühel kenal päeval, T, 31.05.2016 kell 14:49, kirjutas Michał Górny:
2 > Since the previous thread doesn't seem to have brought any good
3 > solution to the problem other than stopping to (ab)use LINGUAS
4 > as USE_EXPAND, I would like to start a RFC on a draft solution that
5 > I'd like afterwards to propose to the Council.
6 >
7 >
8 > Rationale
9 > ---------
10 >
11 > The direct reason for this is that LINGUAS is treated as non-standard
12 > special variable by multiple build systems. This includes the
13 > following
14 > problems:
15 >
16 > 1. no localizations are installed if it is set to an empty value
17 > (which
18 > happens in EAPI 5 when the ebuild does not use the flags),
20 Why not just add a USE_EXPAND_DONTTOUCH variable to profiles, like
21 there is already a USE_EXPAND_HIDDEN, which tells the PM to not play
22 with the envvar, and just use it for USE expansion when the ebuild does
23 use it?
24 Point being, it leaves it unset, when it's unset, and it leaves it set
25 to empty value or a value when it is so.
27 Obviously with a better name than USE_EXPAND_DONTTOUCH, but you get the idea.
29 I suppose this doesn't solve the case of PM not knowing about what is inside a binary package, but if said variable also affected the metadata of the result, this should be possible to handled with some PM work, while not duplicating places to set languages to be compiled/installed.
31 The common case should be to support language x, y and z, and not wanting to change that, and never or rarely build binary packages (just as a backup before upgrade).
32 This is how I believe Gentoo is used as a source based distribution.
34 And big roll-outs with staging and binary packages have capable overlords knowing what's up in this area.
36 As this idea is too obvious, I'm sure it has come up before and dismissed, but as I don't remember it mentioned in the previous thread, nor with a quick skim over them, here it is anyways.
39 Mart