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 1QxNnY-0005Bx-Pc for garchives@archives.gentoo.org; Sat, 27 Aug 2011 18:40:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8E12521C14C; Sat, 27 Aug 2011 18:39:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 5DA0421C120 for ; Sat, 27 Aug 2011 18:39:39 +0000 (UTC) Received: from [192.168.1.201] (195.150.222.87.dynamic.jazztel.es [87.222.150.195]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pacho) by smtp.gentoo.org (Postfix) with ESMTPSA id 30FC31B401B for ; Sat, 27 Aug 2011 18:39:37 +0000 (UTC) Subject: Re: [gentoo-portage-dev] "official way" for setting per package CFLAGS and FEATURES? From: Pacho Ramos To: gentoo-portage-dev@lists.gentoo.org In-Reply-To: <4E4FC7F3.7030107@gentoo.org> References: <1247940945.2134.2.camel@localhost> <4A638016.3040602@gentoo.org> <4E4FC7F3.7030107@gentoo.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-m1TiOvIxxCn4pyNAdriV" Date: Sat, 27 Aug 2011 20:39:33 +0200 Message-ID: <1314470373.15976.2.camel@localhost> 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 X-Mailer: Evolution 2.32.3 X-Archives-Salt: X-Archives-Hash: 8c5a097a3e27bc4bc1e9f30bf5b3e111 --=-m1TiOvIxxCn4pyNAdriV Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El s=C3=A1b, 20-08-2011 a las 07:42 -0700, Zac Medico escribi=C3=B3: > On 07/19/2009 01:20 PM, Zac Medico wrote: > > 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" > >> > >> Searching in google seems that there are some available hacks done by > >> some forums users, but they seem to be a bit old and, before trying > >> them, I would want to know if there is an "official" way of doing it. > >> > >> Thanks a lot :-) > >=20 > > I use pre_pkg_setup hooks defined in /etc/portage/env. For example: > >=20 > > cat /etc/portage/env/sys-libs/glibc > >=20 > > pre_pkg_setup() { > > local x > > for x in installsources splitdebug ; do > > if ! has $x $FEATURES ; then > > elog "bashrc is adding $x to FEATURES for $PN" > > FEATURES=3D"$FEATURES $x" > > fi > > done > >=20 > > if ! hasq -ggdb $CFLAGS ; then > > elog "bashrc is adding \"-ggdb\" to CFLAGS for $PN" > > CFLAGS=3D"$CFLAGS -ggdb" > > fi > > } >=20 > Please note that the above approach has been deprecated since > portage-2.1.9.24, due to inclusion of package.env support: >=20 > http://bugs.gentoo.org/show_bug.cgi?id=3D44796 >=20 > In order to accomplish the same thing with package.env, you'd put > something like "sys-libs/glibc debug.conf" in /etc/portage/package.env, > and then you put your FEATURES and CFLAGS variable settings in > /etc/portage/env/debug.conf (same format as make.conf). This is > documented in the portage man page. Thanks a lot for the updated information, will migrate to new approach as soon as possible :-) --=-m1TiOvIxxCn4pyNAdriV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEABECAAYFAk5ZOeUACgkQCaWpQKGI+9R6mACeICEG2TqMf2F+1Snq3+qt4mPa qMUAn2XKqM07L15yZXpcejhWSOvDeyc3 =ZIpT -----END PGP SIGNATURE----- --=-m1TiOvIxxCn4pyNAdriV--