1 |
> On Fri, 8 January 2016, at 1:13 p.m., gevisz <gevisz@×××××.com> wrote: |
2 |
> |
3 |
> 2016-01-08 13:50 GMT+02:00 Stroller <stroller@××××××××××××××××××.uk>: |
4 |
>> |
5 |
>>> On Fri, 8 January 2016, at 12:32 a.m., gevisz <gevisz@×××××.com> wrote: |
6 |
>>> |
7 |
>>> Just of curiosity compiled gtypist with nls use flag. |
8 |
>>> Now it accepts ru.typ! But it is a bug because nls flag |
9 |
>>> is supposed to only switch on the translation of the |
10 |
>>> corresponding menu and help messages. So, it should |
11 |
>>> accept ru.typ even if compiled without the nls use flag! |
12 |
>> |
13 |
>> I'm glad you're sorted. You should let the gtypist devs know of this bug. |
14 |
> |
15 |
> Thank you for your help! |
16 |
> |
17 |
> However, before turning to the gtypist devs, I should clarify one more, |
18 |
> may be stupid, question, namely: "Who is responsible for the correct |
19 |
> `functioning' of the use flags?" Because I always thought that the use |
20 |
> flags are a unique feature of the Gentoo distribution (and therefore, it |
21 |
> is the the Gentoo devs who are responsible for them) but your advice |
22 |
> above implies that it is not true. |
23 |
|
24 |
The ebuild is (mostly) just a wrapper for preceding software installation tools, like make and gcc. |
25 |
|
26 |
In a previous message you showed us that the Gtypist devs had asked you "Can you check whether this appears when running ./configure? Also, which arguments are used for ./configure?" |
27 |
|
28 |
In the case of the nls USE flag, the ebuild is just calling configure with certain arguments: |
29 |
|
30 |
src_configure() { |
31 |
econf $(use_enable nls) |
32 |
} |
33 |
|
34 |
src_install() { |
35 |
emake DESTDIR="${D}" install |
36 |
} |
37 |
|
38 |
Note the IUSE variable. This lists all (non-special) use flags that are |
39 |
used by the ebuild. This is used for the emerge -pv output, amongst |
40 |
other things. |
41 |
|
42 |
The package's ./configure script takes the usual --enable-nls or |
43 |
--disable-nls argument. We use the use_enable utility function to |
44 |
generate this automatically, depending on the user's USE flags (see |
45 |
Query Functions Reference). |
46 |
|
47 |
This is a top google hit for use_enable: https://devmanual.gentoo.org/quickstart/ |
48 |
|
49 |
Stroller. |