Gentoo Archives: gentoo-dev

From: Steve Long <slong@××××××××××××××××××.uk>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Re: News item: World file handling changes in Portage-2.2
Date: Tue, 19 Aug 2008 20:17:05
Message-Id: g8f9n7$edp$1@ger.gmane.org
In Reply to: Re: [gentoo-dev] Re: News item: World file handling changes in Portage-2.2 by Joe Peterson
1 Joe Peterson wrote:
2
3 > Duncan wrote:
4 >> That's an interesting idea. I don't personally care either way, as long
5 >> as @world continues to /not/ include system/@system, but having world
6 >> (without the @) continue to include system /would/ be useful for backward
7 >> compatibility. I think it'd be much better in terms of ease of educating
8 >> the vast majority of stable users, as the @ is new anyway, so it can have
9 >> new behaviour without a problem, but having new behaviour for world does
10 >> present a significant re-education/retraining issue.
11
12 Yeah that was my thinking (only better expressed ;)
13
14 > The only drawback I see is that we would then have the following:
15 >
16 > @system == system
17 > ...but...
18 > @world != world
19 >
20 > This, I would think, could cause confusion too - and we'd have to live
21 > with and document this "quirk".
22 >
23 I don't see that as major from a user pov; as soon as you see @ you're in
24 set territory, which is for finer-grained control. We already expect users
25 to have the ability to read docs and the like, and this way we're not
26 introducing any surprises; for the standard update procedure we're all used
27 to, sets don't come into it.
28
29 > How about issuing a warning when portage starts if the user specifies
30 > "world" (with no "@" sign) as the only specified target *and* @system is
31 > not in world_sets?
32 >
33 It's starting to get tricky.. ;)
34
35 > It would warn that the world set no longer automatically includes system
36 > (i.e., @system) and also that it is better, from now on, to explicitly
37 > use the "@" sign for all sets like world and system (since these two are
38 > special cases grandfathered in).
39 >
40 .. and we still get the issue that future usage would mean needing:
41 emerge @world @system # or should it be the other way round?
42 ..when we used to have a simple 'emerge world'[1]. I don't see how that
43 helps our users. iow the change feels like a loss, not an improvement
44 (which the set code certainly is), when a little tweaking with the option
45 parser would mean we had both uses. I see it as polishing the UI, nothing
46 more.
47
48 Maybe there's a case for dropping system as a special-case over time, and
49 giving a deprecation warning. Personally I don't see the problem with
50 simply continuing to support it, or even changing to mean system without
51 any user-defined stuff/ as per-profile; option parsing is hardly the
52 bottleneck ;)
53
54 [1] Assuming user doesn't want @world always including @system, which makes
55 sense to a power-user who would be interested in sets, as Duncan showed.

Replies