From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from skinny.southernlinux.net (ns2.rednecks.net [64.192.52.5]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j5DNAvP7027491 for ; Mon, 13 Jun 2005 23:11:07 GMT Received: (qmail 13335 invoked by uid 210); 13 Jun 2005 19:10:59 -0400 Received: from 10.10.10.188 by skinny (envelope-from , uid 201) with qmail-scanner-1.25st (clamdscan: 0.82/934. f-prot: 4.4.2/3.14.11. spamassassin: 3.0.2. perlscan: 1.25st. Clear:RC:1(10.10.10.188):. Processed in 0.056052 secs); 13 Jun 2005 23:10:59 -0000 Received: from unknown (HELO ?10.10.10.188?) (10.10.10.188) by 0 with SMTP; 13 Jun 2005 19:10:58 -0400 Subject: Re: [gentoo-dev] use.force support From: Ned Ludd To: gentoo-dev@lists.gentoo.org In-Reply-To: <20050613144048.GB4585@lightning.stealer.net> References: <20050613144048.GB4585@lightning.stealer.net> Content-Type: text/plain Date: Mon, 13 Jun 2005 18:56:43 -0400 Message-Id: <1118703403.28392.5.camel@localhost> 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 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 7b474ee1-7866-462e-8e94-8ffc3a0cacf0 X-Archives-Hash: f420b51fa634c67dfb24dfa832370ca6 On Mon, 2005-06-13 at 16:40 +0200, Sven Wegener wrote: > Hi all! > > We just had a short discussion over in #gentoo-portage and the idea of > an use.force file for profiles came up. It allows us to force some USE > flags to be turned on for a profile. It's not possible to disable this > flag by make.conf, the environment or package.use. But we would not be > Gentoo, if we don't leave a backdoor. You can disable the flag by > putting -flag in /etc/portage/profile/use.force if you really need to. > Same goes for sub-profiles that need to disable this flag. > > This use.force support might be used as an replacement for some > USE_EXPANDs like ELIBC and KERNEL because they are prone to break if the > USE_EXPANDed variable is also set in the environment. Like this: > > sven@luna ~ $ KERNEL="foo" emerge --info | grep ^USE= > USE="x86 ... userland_GNU kernel_foo elibc_glibc" I'm in favor of this. Would you mind calling it package.autouse, package.use.auto or are you set on .force? > I gues use.force has some other places where it is useful. Like the > default-darwin profiles which use ARCH="ppc" and USE="ppc-macos" but the > ppc-macos flag can be removed by using USE="-ppc-macos" in the > environment. Or selinux profiles, to force the selinux flag to be turned > on. > > Comments? > > Cheers, > Sven > -- Ned Ludd -- gentoo-dev@gentoo.org mailing list