1 |
On Sun, 29 Jan 2006 12:12:45 +0100 |
2 |
Alexander Skwar wrote: |
3 |
|
4 |
> Hi! |
5 |
> |
6 |
> Quite a number of packages support a X USE flag. The |
7 |
> package that I'm right now looking at is vlc: |
8 |
> |
9 |
> [ebuild R ] media-video/vlc-0.8.4a USE="alsa arts cdda dvd esd ffmpeg matroska mp3 mpeg nls nsplugin ogg real vlm vorbis win32codecs wxwindows |
10 |
> xml2 xv -3dfx -X -a52 -aac -aalib -avahi -bidi -corba -daap -debug -dts -dvb -fbcon -flac -ggi -gnutls -hal -httpd -joystick -libcaca -lirc -live -mod |
11 |
> -ncurses -opengl -oss -png -samba -screen -sdl -shout -skins -speex -stream -svg -svga -theora -truetype -v4l -vcd -xinerama -xosd" 0 kB |
12 |
> |
13 |
> As you can see, I built vlc with USE=-X. What am I |
14 |
> now missing? When I startup vlc, I still have a X |
15 |
> GUI. |
16 |
|
17 |
I suspect that something else has dragged in the gui part of glc - |
18 |
wxwindows IIRC. |
19 |
|
20 |
> |
21 |
> A different example - gnupg: |
22 |
> |
23 |
> [ebuild R ] app-crypt/gnupg-1.4.2-r3 USE="X caps* ecc* idea* nls readline static* usb zlib -bzip2* -curl* -ldap -smartcard" 21 kB |
24 |
> |
25 |
> As you can see here, gnupg is built with the flag X set. |
26 |
> What has been enabled with that? |
27 |
> |
28 |
|
29 |
A global use flag like X has different effects on different packages. |
30 |
Ususally it affects whether or not an X gui is built. However the only |
31 |
wat to really tell is to read the ebuild. In this case: |
32 |
|
33 |
"RDEPEND="!static? ( |
34 |
${COMMON_DEPEND} |
35 |
X? ( || ( media-gfx/xloadimage media-gfx/xli ) ) |
36 |
) |
37 |
selinux? ( sec-policy/selinux-gnupg )"" |
38 |
|
39 |
This indicates that if the X flag is enabled, there will be a dependency on either media-glx/xloadimage or media-gfx/xli |
40 |
|
41 |
"econf \ |
42 |
[snip] |
43 |
$(use_enable X photo-viewers) \ |
44 |
[snip] |
45 |
|
46 |
${myconf} || die" |
47 |
|
48 |
This indicates that something called photo-viewers is enabled in gnupg |
49 |
if the X flag is present. What this does, i don't know (or care) and |
50 |
will leave it to you to discover. |
51 |
|
52 |
> Also quite a number of libraries support X, like |
53 |
> |
54 |
> [I--] [ ] gnome-base/libbonoboui-2.10.1-r1 (0) |
55 |
> [I--] [ ] gnome-base/libgnomecanvas-2.12.0 (0) |
56 |
> [I--] [ ] gnome-base/libgtop-2.12.2 (2) |
57 |
> [I--] [ ] gnome-base/libglade-0.17-r6 (0) |
58 |
> |
59 |
> What do all of these do with X? And what would go away |
60 |
> if X were disabled (-X)? |
61 |
|
62 |
|
63 |
See above, look at the ebuilds. |
64 |
|
65 |
> |
66 |
-- |
67 |
Nick Rout <nick@×××××××.nz> |
68 |
|
69 |
-- |
70 |
gentoo-user@g.o mailing list |