Gentoo Archives: gentoo-portage-dev

From: Brian Harring <ferringb@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] sane USE_EXPAND + IUSE check
Date: Wed, 17 Aug 2005 02:34:45
Message-Id: 20050817023400.GK25398@nightcrawler
In Reply to: Re: [gentoo-portage-dev] [PATCH] sane USE_EXPAND + IUSE check by Jason Stubbs
1 On Wed, Aug 17, 2005 at 10:41:12AM +0900, Jason Stubbs wrote:
2 > You hijacked a thread again...
3 Bleh, headers (yes I've been lazy and just hitting reply on previous
4 messages to lift the to :P)
5
6
7 > On Wednesday 17 August 2005 09:52, Brian Harring wrote:
8 > > basically, use_expand'd vars need to be exempted from IUSE checks, as
9 > > long as the USE_EXPAND var is in IUSE.
10 >
11 > I don't really like the idea of this without a companion patch that provides
12 > some way to get a list of relevant env vars and their possible settings to
13 > the user without having to look at the ebuild. The list of possiblities
14 > could live in use.desc or a similar file, but at minimum the list of vars
15 > needs to be provided.
16 Fix in the meantime since people are poking about it; a proper lock
17 down of IUSE makes sense, exempting
18 A) addition of Yet Another File To Profiles
19 B) if you do it within portdir (as per the norm), it effectively
20 changes IUSE for all ebuilds viewed, meaning QA complaints in binpkgs
21 and overlay ebuilds (where it may be valid in that context).
22
23 > Another patch is also required that will allow disabling of the QA check on
24 > certain vars, preferably defined in a file in the tree similar to
25 > info_vars. This would be used for vars such as USERLAND which are profile
26 > defined.
27 Why whitelist some vars, but not others? If you're locking the
28 USE_EXPAND'd vars down for full IUSE check, any profile defined var
29 should be limited in the same way, imo. A var not used in a profile
30 is effectively dead ebuild code, even if the profile has disappeared;
31 that said, still suffers the same issues as B above.
32
33 > In other words, don't kill the QA check without addressing the issue that
34 > the QA check is warning about. ;)
35 Issues above kind of strike me as it being more trouble then worth-
36 personally, I'd rather see IUSE for that ebuild have the known
37 USE_EXPAND'd var variations it uses listed, with some form of
38 filtering to keep people from attempting dumb things like userland_BSD
39 when they're on userland_GNU (hypothetical example).
40 ~harring

Replies

Subject Author
Re: [gentoo-portage-dev] [PATCH] sane USE_EXPAND + IUSE check Jason Stubbs <jstubbs@g.o>