Gentoo Archives: gentoo-user

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