From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IUD4o-0004Wl-AD for garchives@archives.gentoo.org; Sun, 09 Sep 2007 03:03:10 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l892tSbH007906; Sun, 9 Sep 2007 02:55:28 GMT Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l892rRnO005519 for ; Sun, 9 Sep 2007 02:53:27 GMT Received: (qmail 65456 invoked by uid 0); 9 Sep 2007 02:53:26 -0000 Received: from r141.net.upc.cz (HELO ?192.168.1.1?) (62.24.83.141) by smtp.dkm.cz with SMTP; 9 Sep 2007 02:53:26 -0000 Message-ID: <46E36025.6030003@gentoo.org> Date: Sun, 09 Sep 2007 04:53:25 +0200 From: Vlastimil Babka User-Agent: Thunderbird 2.0.0.6 (X11/20070811) 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 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] USE flag how are they supposed to work? References: <46E3213E.5010307@lix-world.net> <46E325B8.2060605@gentoo.org> <46E33324.4010805@lix-world.net> In-Reply-To: <46E33324.4010805@lix-world.net> X-Enigmail-Version: 0.95.3 OpenPGP: id=4E61DE84; url=subkeys.pgp.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 452f573e-3c39-4948-8666-b15333aa31cd X-Archives-Hash: 237b3a96ca03f813556bfa0f7c99ac4a -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Steen Eugen Poulsen wrote: > Alistair Bush skrev: >> * It is used by many different packages. > > yes, this is the rubber rule. It pretty much allows any use flag to be > promoted to global when it has XX packages with it, the confusion comes > because the number of package using a flag is no indication whatever you > should set the flag globally or pr. package. Right, the only indication is if you want the functionality of the flag globally or per package :) > Seem to me that the word global is used in the portage tree to mean one > thing and then when we edit make.conf and /etc/portage we get another > global/local meaning. That's right. Global/local use flag descriptions have no relation to global/local setting via make.conf/package.use. As a non-dev you might just ignore the first classification. >>> I'm trying to write a Replicator for /etc/portage and that leads me to >>> work with USE flags, trying to design the replication of them among >>> similar systems, but I can't find the golden set of rules for how best >>> to apply USE flags. >>> >>> There seem to be a global/local USE flag system, but many so called >>> global flags has duplicated description marking them as local flags, or >>> they enable unneeded optional support. >> >> Unneeded by whom? > > The package in order for it to work. You don't need Java, Python, Perl, > Lua, whatever scripting support in most packages. For most of the ones > I've seen, I have to go write a Java/Python/Perl/Lua program, before I > actually need it. Well then don't enable those flags globally (that they are "global" doesn't mean you have to), enable them only for packages which have depending packages requiring them. Which you currently find out only by errors (graceful die messages, except bugs like the one you mentioned :) until there are finally use deps. > The words is given different meaning depending on whatever I'm looking > at the portage tree or working on configuring emerge. The portage trees > global flag, is no indication whatever I should put the flag in USE="" > in make.conf, in many cases a portage tree global flag is more an > indication that I should use it locally pr. package. Right, as mentioned above, there is no relation, although the "global/local" notion may suggest it. One might even ask why we have separate use.desc and use.local.desc then. Good question :) IMHO it's mostly administrative thing so people don't add many new global flags without consultation, but still can quickly add local flags just for their package. - -- Vlastimil Babka (Caster) Gentoo/Java -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG42AktbrAj05h3oQRAkfjAJ4zdWFWzLAswbDTq/hvszouoI1gYgCfV/j4 w0aFRUzi5RbOJMAs9M7O3no= =7Y8j -----END PGP SIGNATURE----- -- gentoo-dev@gentoo.org mailing list