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 1MSoSf-0004mC-1o for garchives@archives.gentoo.org; Mon, 20 Jul 2009 08:43:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DF81CE020D; Mon, 20 Jul 2009 08:43:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B99FDE020D for ; Mon, 20 Jul 2009 08:43:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 3F1E566A53 for ; Mon, 20 Jul 2009 08:43:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.991 X-Spam-Level: X-Spam-Status: No, score=-2.991 required=5.5 tests=[AWL=0.608, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1] 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 79yI+lJCuJGZ for ; Mon, 20 Jul 2009 08:42:57 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id CDA7E66A22 for ; Mon, 20 Jul 2009 08:42:55 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MSoSP-0006NL-PT for gentoo-portage-dev@gentoo.org; Mon, 20 Jul 2009 08:42:49 +0000 Received: from ip68-231-21-207.ph.ph.cox.net ([68.231.21.207]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Jul 2009 08:42:49 +0000 Received: from 1i5t5.duncan by ip68-231-21-207.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Jul 2009 08:42:49 +0000 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: "official way" for setting per package CFLAGS and FEATURES? Date: Mon, 20 Jul 2009 08:42:39 +0000 (UTC) Message-ID: References: <1247940945.2134.2.camel@localhost> <4A638016.3040602@gentoo.org> 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-21-207.ph.ph.cox.net User-Agent: Pan/0.133 (House of Butterflies) Sender: news Content-Transfer-Encoding: quoted-printable X-Archives-Salt: d55b56b5-d627-4161-b2ea-828577b4eede X-Archives-Hash: 1430a153b7022b7cccf70fe530d10299 Zac Medico posted 4A638016.3040602@gentoo.org, excerpted below, on Sun, 19 Jul 2009 13:20:38 -0700: > Pacho Ramos wrote: >> Hello, I would want to always merge xorg-server, libdrm, and intel >> driver (that likes to crash a lot) to be always compiled with debuggin= g >> symbols and FEATURES=3D"${FEATURES} splitdebug" > I use pre_pkg_setup hooks defined in /etc/portage/env. Does /etc/portage/env work for the python part of portage yet, or just=20 the ebuild.sh layer? Either way should work for the above (and I too use it regularly for=20 CFLAGS, etc), but if the python components don't see it, it won't work=20 for dependency checking, fetching, FEATURES used by emerge itself not the= =20 ebuild.sh callout, etc. IIRC that used to be a limitation, but I'm not=20 sure it still applies. (Also, as I've seen it explained, the reason it's not better documented=20 is deliberate, because there's no standard way to include env file=20 contents in reports such as emerge --info for bug reports and the like. =20 Without that, many devs are reluctant to have it widely known due to the=20 bug squashing problems its likely to cause, so it remains a semi-secret,=20 known mainly by the Gentoo power users, who hopefully know to report its=20 use when it applies. If you check bugs I've filed, for instance, say for= =20 parallel make aka MAKEOPTS, you'll note that I often mention that I=20 verified that MAKEOPTS=3D-j1 works by setting it in the appropriate env=20 file.) --=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