Gentoo Archives: gentoo-portage-dev

From: Brian Harring <ferringb@×××××.com>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] use.force and package.use.force (bug #142853)
Date: Mon, 07 Aug 2006 21:09:18
Message-Id: 20060807210710.GA10817@seldon
In Reply to: Re: [gentoo-portage-dev] [PATCH] use.force and package.use.force (bug #142853) by Alec Warner
1 On Mon, Aug 07, 2006 at 03:52:35PM +0000, Alec Warner wrote:
2 >
3 > >> Brian, default USE in IUSE is not a backwards compatable change and this
4 > >> is easier ;)
5 > >
6 > > An EAPI bump is pretty simple from where I'm sitting, and implementing
7 > > it isn't all that hard.
8 > >
9 > > Meanwhile, the question should be "which is desirable", not "which can
10 > > I glue in quickest" ;)
11 > >
12 > > ~harring
13 >
14 > This is reality, not the ideal;
15
16 Was also what devs wanted, last time this was discussed on dev ml from
17 what I recall.
18
19 Meanwhile, this is not an 'ideal' if you think it through.
20
21 The request is effectively per node use configuration mangling of the
22 default state- reality being that package.use _already_ exists, and
23 shoehorning which ever is implemented relies on the same bits.
24
25 > and implementing a dep resolver like you
26 > wanted IS hard, thats why it took you and stubbs a ton of time
27 > figuring out what you wanted and then implementing it.
28
29 Way off base here. See the paragraph above- further, while this
30 involves the resolver, it's not actually a resolver mod.
31
32 <sidenote>
33 The design jstubbs and I kicked around (what is now in pkgcore) goes
34 several steps beyond what actually is needed- said design break config
35 instances down and binds it per pkg instance- that's more of an issue
36 for supporting actual use deps though, although said design isn't a
37 requirement; paludis supports it via using (effectively) a construct
38 similar to portages config class.
39
40 We (moreso me on this one) wanted a format agnostic resolver- the
41 design/implementation reflects that choice, but doesn't mean that
42 route is the only way (again, paludis is closer to portage in this
43 regard- it's doable).
44 </sidenote>
45
46 Meanwhile, we're talking about default iuse here; totally unrelated
47 subjects.
48
49 Resolver actually doesn't have a helluva lot to do with this in
50 portages design- at the very least the view that default IUSE requires
51 a "dep resolver like you wanted" (bit vague) pretty much has no
52 relevance, and indicates you're a bit confused on this (especially
53 since the critique is leveled at default IUSE while ignoring that
54 use.force is no different).
55
56 See zacs patch- both use.force and default IUSE require going back
57 to the config obj at some point- the difference is contained in
58 config; finally, EAPI protection should work fine for it- prefix has
59 been relying on that already for a long ass time now.
60
61 ~harring