Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: USE flags dri, cups, pppd
Date: Mon, 21 Jan 2013 02:43:11
Message-Id: pan.2013.01.21.02.42.39@cox.net
In Reply to: Re: [gentoo-dev] USE flags dri, cups, pppd by Ciaran McCreesh
1 Ciaran McCreesh posted on Sun, 20 Jan 2013 22:00:20 +0000 as excerpted:
2
3 > -----BEGIN PGP SIGNED MESSAGE-----
4 > Hash: SHA1
5 >
6 > On Sun, 20 Jan 2013 16:59:24 -0500 "Rick \"Zero_Chaos\" Farina"
7 > <zerochaos@g.o> wrote:
8 >> chithanh, maybe you can explain to everyone why USE=dri is needed for
9 >> base profile. You seem to be the most knowledgable here, can you cite
10 >> a specific example for how/why a non-desktop profile machine would need
11 >> USE=dri. I think that the example may make it more obvious to people
12 >> what is right or wrong here.
13 >
14 > Your question is the wrong one to ask. What you should ask is whether a
15 > non-desktop profile machine *would be in any way affected by* USE=dri.
16
17 Exactly so.
18
19 equery h -p dri
20
21 ... returns, with a single exception, only x11-drivers/xf86-video-* xorg
22 graphics driver packages. The single exception is x11-libs/libvdpau.
23
24 So the only way the status of USE=dri even /matters/ is if one of those
25 graphics drivers or that vdpau library is installed. And for those
26 packages, USE=+dri is the best default, regardless of whether they're
27 installed for some reason on a server, or on a desktop. Nothing else
28 cares.
29
30
31 That said, there IS the argument for eliminating USE flag pollution in
32 profiles where they aren't likely to be used in any case. For the server
33 non-X-installed server case, just having the flag there means time out of
34 every responsible server admin's life, just to figure out that the flag
35 is simply noise they don't have to worry about, and from this point of
36 view, shouldn't even be seeing.
37
38 I mean, while it's technically true that a USE flag not actually used by
39 any packages won't make a difference, that logic, taken to its
40 conclusion, would lead to every USE flag ever used by a single package
41 showing up in both global USE and in profiles, since the claim is that it
42 doesn't make a difference if no installed package uses the flag anyway,
43 but we REALLY REALLY need a default, just in case you DO decide to
44 install the one obscure package that actually DOES use the flag!
45
46
47 So were we starting fresh, the best case would be to put the dri USE flag
48 in the desktop profile, instead of in base, simply to avoid the USE flag
49 noise pollution in non-desktop profiles. However, the argument here is
50 that we're not starting fresh, and changing it now could break a lot of
51 users.
52
53 But I think those supporting that argument may have lost sight of the
54 context: The context is the new 13.0 profiles, and from all I've seen
55 (Dale can back me up as he's far more involved on the user lists and
56 forums), users switching/upgrading profiles generally /expect/ to have a
57 few config changes they might need to deal with. Thus, while the flag
58 arguably shouldn't be changed in the old soon-to-be-deprecated 10.x
59 profiles to avoid breaking people, the new 13.0 profiles are a chance to
60 cleanup that USE flag pollution -- likely the best chance we're going to
61 get for a few years.
62
63
64 So that's what I (and others, but less explicitly) propose, leaving
65 USE=dri where it is in the old and soon-to-be-deprecated 10.x profiles so
66 nobody gets broken, while in the new 13.0 profiles, USE=dri is moved from
67 base to desktop. That way, it'll still be defaulted on for desktop where
68 most people will want it, but won't appear in the new base, thus
69 eliminating the pollution for people unlikely to care about it, there.
70 And the only possibility for breakage will be with the profile upgrade,
71 when people should expect and thus be prepared to deal with a bit of
72 config change.
73
74 --
75 Duncan - List replies preferred. No HTML msgs.
76 "Every nonfree program has a lord, a master --
77 and if you use the program, he is your master." Richard Stallman

Replies

Subject Author
Re: [gentoo-dev] Re: USE flags dri, cups, pppd Ben de Groot <yngwin@g.o>