1 |
On 8/24/06, Arnau Bria <arnau@×××××××××.net> wrote: |
2 |
> just one more question, how do you know what "feature" provides each |
3 |
> use in a package? |
4 |
> I mean, how did you know wireshark needed gtk, but talking in general... |
5 |
|
6 |
Well, in general....experience. And experimentation. And emerge -pv |
7 |
cat-egory/package. |
8 |
|
9 |
Flags like gtk, qt, and X are _generally_ used to add in graphical |
10 |
interfaces. USE=crypt is _generally_ used to add encryption support. |
11 |
USE=hal generally adds some kind of hot-plug device support for |
12 |
desktops. But these are more guidelines that one gains from using and |
13 |
working with Gentoo, and not rules. For example, sys-apps/dbus has |
14 |
qt, qt4, and gtk flags...but there is no GUI for dbus. In fact in the |
15 |
case of sys-apps/dbus, these are used to link against those toolkits |
16 |
for the purpose of emitting events through to the user's desktop. |
17 |
|
18 |
Global useflags are described in /usr/portage/profiles/use.desc, but |
19 |
as they are "global", and the descriptions short, they don't really |
20 |
tell you a whole lot. Global flags can have very different meanings |
21 |
for different packages, and there is no document that says "gtk is |
22 |
required to build the wireshark GUI for wireshark." |
23 |
|
24 |
The situation is a little better for local use flags |
25 |
(/usr/portage/profiles/use.local.desc), as those flags are specific to |
26 |
a package, so can have a more specific description. |
27 |
|
28 |
So there was not really any good way for you to know that you needed |
29 |
USE=gtk to get the GUI. Even reading the ebuild would have only told |
30 |
you that it causes the configure script to be run with "--with-gtk2", |
31 |
whatever that means. |
32 |
|
33 |
However, it is frequently useful to look at what use flags a package |
34 |
supports by doing "emerge -pv cat-egory/package". This will give you |
35 |
a list of use flags that are available, and maybe an idea of what they |
36 |
might do in the context of the package. Indeed, this is what I did |
37 |
for wireshark to discover that it had a gtk useflag, and from that, it |
38 |
was obvious to me that it would be required to get the gtk-based GUI. |
39 |
|
40 |
-Richard |
41 |
-- |
42 |
gentoo-user@g.o mailing list |