From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NQ1JH-00036O-4J for garchives@archives.gentoo.org; Wed, 30 Dec 2009 16:22:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F040EE0835; Wed, 30 Dec 2009 16:21:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CFD20E0835 for ; Wed, 30 Dec 2009 16:21:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 6B4B0677DC for ; Wed, 30 Dec 2009 16:21:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.553 X-Spam-Level: X-Spam-Status: No, score=-2.553 required=5.5 tests=[AWL=0.046, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jusvYuISCH8E for ; Wed, 30 Dec 2009 16:21:14 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id DAC436779E for ; Wed, 30 Dec 2009 16:21:13 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1NQ1IJ-0000oR-7c for gentoo-portage-dev@gentoo.org; Wed, 30 Dec 2009 17:21:07 +0100 Received: from ip68-231-22-224.ph.ph.cox.net ([68.231.22.224]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Dec 2009 17:21:07 +0100 Received: from 1i5t5.duncan by ip68-231-22-224.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Dec 2009 17:21:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-portage-dev@lists.gentoo.org From: Duncan <1i5t5.duncan@cox.net> Subject: [gentoo-portage-dev] Re: forcing a USE flag if another is on Date: Wed, 30 Dec 2009 16:20:45 +0000 (UTC) Message-ID: References: <4B3B6794.7050202@oversi.com> 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 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip68-231-22-224.ph.ph.cox.net User-Agent: Pan/0.133 (House of Butterflies) Sender: news Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c264fce0-72ee-4feb-8ead-cd90afce15c5 X-Archives-Hash: 3caf4067d596a5708fb6e1b676dc55ff Amit Dor-Shifer posted on Wed, 30 Dec 2009 16:45:40 +0200 as excerpted: > Is there some method of specifing "if USE flag X is enabled, enable USE > flag y as-well"? Something like a "conditional" use.force file in > profiles/. Amit That should be doable globally using /etc/portage/bashrc or the like ( /etc/portage/profile/bashrc). For specific packages, it's doable using=20 /etc/portage/env/cat-egory/ files, altho that's not so well=20 documented. In any of those cases, syntax is standard bash, so you get the full range= =20 of bash conditionals and scripting available to setup your environment as= =20 complicated as you wish. (However, it is my understanding that the=20 /etc/portage/env files only get sourced for the bash/ebuild.sh side of=20 portage, not for the python side, so stuff like depchecks and features=20 that are dealt with on the python side, won't necessarily work as=20 expected. Test it if in doubt... or put it in one of the bashrcs, with a= =20 conditional so it's only applied to the package in question.) --=20 Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman