Gentoo Archives: gentoo-dev

From: Donnie Berkholz <spyderous@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Dirt: To shove under the rug or not shove under the rug? (aka another round of USE_EXPAND)
Date: Tue, 27 Sep 2005 15:40:10
Message-Id: 433966D9.3040401@gentoo.org
In Reply to: [gentoo-dev] Dirt: To shove under the rug or not shove under the rug? (aka another round of USE_EXPAND) by Jason Stubbs
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Jason Stubbs wrote:
5 | Removing the QA check while the QA problem still exists is, in my
6 mind, just
7 | plain ludicrous. Removing the QA check once the QA problem is fixed
8 doesn't
9 | make much sense to me either. However, adjusting the check where
10 necessary to
11 | match the fix is reasonable.
12 |
13 | So what needs to be done to fix it? Well, what is the purpose of
14 USE_EXPAND?
15 | Put simply, it is to allow the user to select one or more features of a
16 | package from a list of choices. How is this different to USE flags? The
17 | choices all pertain to one aspect of the package(s).
18
19 What I have done in my ebuilds using USE_EXPAND is add extra IUSE-like
20 variables, for example:
21
22 IUSE_VIDEO_CARDS="radeon sis mga"
23 IUSE_INPUT_DEVICES="synaptics wacom"
24
25 for `use video_cards_sis` etc..
26
27 This would allow for possible QA checks. Potentially, portage could look
28 through and display things at --verbose like:
29
30 [ebuild N ] x11-base/x11-drm-20050807 +dga -nls VIDEO_CARDS="+sis
31 +mga -radeon" 538 kB [2]
32
33 USE_EXPAND allows grouping a similar set of USE flags together to
34 indicate their relatedness, and it is particularly useful when there are
35 both USE_EXPAND and non-USE_EXPAND flags on the same ebuild. It is also
36 useful when a number of packages make use of the same group of
37 USE_EXPAND variables.
38
39 The main problem with USE_EXPAND right now is that people just don't
40 realize it exists, so they don't take advantage of it. We need a way to
41 tell them, such as the --verbose output I suggested and some more
42 documentation.
43
44 Thanks,
45 Donnie
46 -----BEGIN PGP SIGNATURE-----
47 Version: GnuPG v1.4.2 (GNU/Linux)
48
49 iD8DBQFDOWbZXVaO67S1rtsRAulnAKCkevKbDcd1ib2S9W3m8Ila797KGgCeLWNS
50 ZY+Fat5UX9sjVA0r+yB159U=
51 =Kysv
52 -----END PGP SIGNATURE-----
53 --
54 gentoo-dev@g.o mailing list

Replies