Gentoo Archives: gentoo-portage-dev

From: Martin Vaeth <martin@×××××.de>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] Re: Dynamic USE dependencies
Date: Wed, 08 Apr 2015 07:46:13
Message-Id: mg2mb5$e1$1@ger.gmane.org
In Reply to: Re: [gentoo-portage-dev] Re: Dynamic USE dependencies by Rich Freeman
1 Rich Freeman <rich0@g.o> wrote:
2 >
3 > Keep in mind that keeping track of past decisions made by portage does
4 > not require user-editable config files in /etc.
5
6 Yes, but you might not always agree with portage's decisions,
7 and the resolution might be non-unique.
8 Although the user might always influence it with /etc/portage/package.use
9 it might be better to keep this transparent to the user - therefore,
10 I suggested a directory in /etc and not in /var
11 (Moreover, a cache would not make sense, since the
12 previous decision could always be trivially calculated from /var/db/pkg,
13 and the user-selected state of the USE-flag for the corresponding
14 package. You could not check the validity of such a cache, since
15 you cannot check whether USE or /etc/portage/package.use has changed)
16
17 > That said, portage still has to spend time basically re-validating the
18 > consistency of the entire system
19
20 *Validating* consistency is not time-consuming. Looking for possibilities
21 to unset use-flags is a much more time-consuming story.
22 If everything is consistent or can easily be resolved, you hardly need
23 any backtracking...

Replies

Subject Author
Re: [gentoo-portage-dev] Re: Dynamic USE dependencies Rich Freeman <rich0@g.o>