From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j5DINNpM011191 for ; Mon, 13 Jun 2005 18:23:23 GMT Received: from smtp1.stealer.net ([82.165.37.24]) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1DhtbF-0004GU-2a for gentoo-dev@lists.gentoo.org; Mon, 13 Jun 2005 18:23:53 +0000 Received: from sven by smtp1.stealer.net with local id 1DhtbF-0000nS-Bp for gentoo-dev@lists.gentoo.org from sender swegener@gentoo.org; Mon, 13 Jun 2005 18:23:53 +0000 Date: Mon, 13 Jun 2005 20:23:53 +0200 From: Sven Wegener To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] use.force support Message-ID: <20050613182352.GD4585@lightning.stealer.net> References: <20050613144048.GB4585@lightning.stealer.net> <42ADB8A2.2040606@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9dgjiU4MmWPVapMU" Content-Disposition: inline In-Reply-To: <42ADB8A2.2040606@gentoo.org> User-Agent: Mutt/1.5.8i X-Archives-Salt: 9eaaaa91-63c8-4cc4-acba-9dc549b790e6 X-Archives-Hash: ecee8469df8eb393e7ec547320c29601 --9dgjiU4MmWPVapMU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 13, 2005 at 06:47:30PM +0200, Harald van D??k wrote: > Just a thought, but how about making use.mask lock flags instead of > forcing them off? Meaning, if use.mask contains ncurses, and > make.defaults contains USE=3D"ncurses", this would have the same effect as > what ncurses in use.force would do. IMO, this would keep things a bit > simpler. But again, just a thought; I don't know if it'd cause any > problems for portage. I like to have them separate. USE and use.mask are incremental, that means we might lock (via use.mask) a flag that is not set by the profile the use.mask is in. This might result in unwanted locking. Considering we want to use.mask (as in the old meaning, forcing it to be off) ncurses in the current profile, then we also need to USE=3D"-ncurses" in the profile to make sure the flag is off and not activated by another profile. This needs to be done for all flags that should be use.mask'ed and that are, depending on the profile, quite a lot. Means double management work. Other solution is to modify portage to evaluate every use.mask and USE on a per profile level. But that's somehow against the cascading aspect of the profiles. > Question: with use.force, what happens if a flag is both masked and > forced? Does it get turned on, get turned off, or get portage to > complain and abort? Good question. I would prefer to turn the flag off and make portage print a message. Sven --=20 Sven Wegener Gentoo Linux Developer http://www.gentoo.org/ --9dgjiU4MmWPVapMU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD4DBQFCrc84AXomK8S72HoRAoXqAJYx8yUD2Ls2jJiCakGwXeKS3DWKAJ9OLHO1 O/V3bvFgQupU6hQ1ddXuMQ== =Rg5J -----END PGP SIGNATURE----- --9dgjiU4MmWPVapMU-- -- gentoo-dev@gentoo.org mailing list