Gentoo Archives: gentoo-portage-dev

From: felix@×××××××.com
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] emerge -pv and masked dependencies
Date: Fri, 04 Nov 2005 18:04:38
Message-Id: 20051104180306.GA31775@crowfix.com
In Reply to: Re: [gentoo-portage-dev] emerge -pv and masked dependencies by Jason Stubbs
1 On Sat, Nov 05, 2005 at 01:55:35AM +0900, Jason Stubbs wrote:
2 > On Friday 04 November 2005 22:33, Marius Mauch wrote:
3 > > Ciaran McCreesh wrote:
4 > > > On Thu, 03 Nov 2005 23:14:20 -0800 Brian <dol-sen@×××××.net> wrote:
5 > > > | emerge -pv <package>
6 > > > |
7 > > > | would actually continue listing (modified normal)after finding a
8 > > > | dependency is masked rather than stop on, and report only, the first
9 > > > | one. The masked packages would need to be marked as such [hard
10 > > > | masked, keyword masked], possibly shown grouped in blocks [KEYWORD,
11 > > > | HARD MASKED, STABLE].
12 > > >
13 > > > Problem is, once you hit one bad dependency, you can't carry on and
14 > > > guarantee what the rest of the dep tree is going to be. Example:
15 > > >
16 > > > emerge -pv foo
17 > > >
18 > > > foo DEPENDs upon bar and baz
19 > > > bar DEPENDS upon fnord, and is MASKED
20 > > > baz DEPENDs upon || ( gerbil fnord )
21 > >
22 > > Well, that and other semantic issues (what to do with multiple
23 > > candidates for example?).
24 >
25 > Multiple candidates is the most worrying for me as well. a-1.1 is masked and
26 > requires >=b-1.0. b has 1.0 and 1.1 both of which are masked. b-1.0 requires
27 > c-1.0 while b-1.1 requires c-1.1. c-1.1 masked but c-1.0 isn't. Should the
28 > above "keep going" just grab the highest *masked* version at each stage?
29 >
30 > Either way, while there are bugs such as error messages being truncated,
31 > requests such as "allow me to break my system easier" are truly far from my
32 > mind. Of course, supplied patches will always be reviewed.
33
34
35 Wait a sec --
36
37 emerge -pv means pretend, so it can't break anything. Furthermore,
38 even without the -p, no one is asking it to keep on going, only asking
39 that it show all errors it can find before bailing. Its current
40 behavior is like a compiler that aborts on the first error. I would
41 rather it go on, show me all errors, until it either gets too many, or
42 runs out of them, rather than bailing on the first one.
43
44 Further, it would be nice if emerge behaved more like make -k, or had
45 an equivalent option. It wouldn't hurt anything if it were to give up
46 on one package and continue to the next if possible. If foo depends
47 on bar, and bar fails, sure bail on foo, but why not continue with the
48 next candidate if it doesn't depend on either?
49
50 I haven't used python in years, but neither request sounds like that
51 big a deal.
52
53 --
54 ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
55 Felix Finch: scarecrow repairman & rocket surgeon / felix@×××××××.com
56 GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
57 I've found a solution to Fermat's Last Theorem but I see I've run out of room o
58 --
59 gentoo-portage-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-portage-dev] emerge -pv and masked dependencies Jason Stubbs <jstubbs@g.o>