From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8AFDA138A6C for ; Wed, 8 Apr 2015 07:46:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6F263E0849; Wed, 8 Apr 2015 07:46:11 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E1AF0E0835 for ; Wed, 8 Apr 2015 07:46:10 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YfkgQ-00070s-8G for gentoo-portage-dev@lists.gentoo.org; Wed, 08 Apr 2015 09:46:03 +0200 Received: from pc123.math.cas.cz ([147.231.88.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Apr 2015 09:45:53 +0200 Received: from martin by pc123.math.cas.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Apr 2015 09:45:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-portage-dev@lists.gentoo.org From: Martin Vaeth Subject: [gentoo-portage-dev] Re: Dynamic USE dependencies Date: Wed, 8 Apr 2015 07:45:41 +0000 (UTC) Message-ID: References: <5520CCA6.6020801@gentoo.org> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pc123.math.cas.cz User-Agent: slrn/1.0.1 (Linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org X-Archives-Salt: 805185fa-69bb-4402-8e0e-26edb57f9910 X-Archives-Hash: ffc8ef656ec8f386224806c0c9e578e3 Rich Freeman wrote: > > Keep in mind that keeping track of past decisions made by portage does > not require user-editable config files in /etc. Yes, but you might not always agree with portage's decisions, and the resolution might be non-unique. Although the user might always influence it with /etc/portage/package.use it might be better to keep this transparent to the user - therefore, I suggested a directory in /etc and not in /var (Moreover, a cache would not make sense, since the previous decision could always be trivially calculated from /var/db/pkg, and the user-selected state of the USE-flag for the corresponding package. You could not check the validity of such a cache, since you cannot check whether USE or /etc/portage/package.use has changed) > That said, portage still has to spend time basically re-validating the > consistency of the entire system *Validating* consistency is not time-consuming. Looking for possibilities to unset use-flags is a much more time-consuming story. If everything is consistent or can easily be resolved, you hardly need any backtracking...