From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17598 invoked from network); 9 Sep 2004 04:46:05 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 9 Sep 2004 04:46:05 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.34) id 1C5Gou-0007SR-7D for arch-gentoo-dev@lists.gentoo.org; Thu, 09 Sep 2004 04:46:04 +0000 Received: (qmail 16052 invoked by uid 89); 9 Sep 2004 04:46:03 +0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 6476 invoked from network); 9 Sep 2004 04:46:03 +0000 Date: Wed, 08 Sep 2004 20:49:30 -0700 From: "Robin H. Johnson" In-reply-to: <1094701375.9661.610.camel@simple> To: Gentoo Developers Mail-followup-to: Gentoo Developers Message-id: <20040909034930.GA16008@curie-int.orbis-terrarum.net> MIME-version: 1.0 Content-type: multipart/signed; boundary=sm4nu43k4a2Rpi4c; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-disposition: inline References: <33333.10.0.0.51.1094638559.squirrel@10.0.0.51> <413FA8B7.8010108@gentoo.org> <413FB713.3030404@gentoo.org> <20040909022643.GE6455@curie-int.orbis-terrarum.net> <1094701375.9661.610.camel@simple> User-Agent: Mutt/1.5.6i Subject: Re: [gentoo-dev] per package cflags (was Re: Do we want optimal performance?) X-Archives-Salt: 620ca1bf-0695-4c74-b5af-57111d4e26a8 X-Archives-Hash: bc502c14c8fdb86657871fdc72aa9725 --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 08, 2004 at 11:42:56PM -0400, Ned Ludd wrote: > On Wed, 2004-09-08 at 22:26, Robin H. Johnson wrote: > > On Wed, Sep 08, 2004 at 09:51:15PM -0400, Travis Tilley wrote: > > > Daniel Goller wrote: > > > >although i am against overly tweaking CFLAGS, someone suggested=20 > > > >something that might be more sane to ask for: > > > > > > > >/etc/portage/packages.cflags > > > > > > > >an easy way to maintain your cflags you worked so hard for to obtain= ,=20 > > > >you can trade them in the forums or ebay and then append to your fil= e,=20 > > > >not much work to implement in my eyes, and all the testing work is d= one=20 > > > >by those who want it > > > mkdir /etc/portage and copy this file there (MUCH thanks to solar for= =20 > > > writing this. he like... kicks ass an stuff). it implements an=20 > > > /etc/portage/package.cflags without needing to patch portage. i think= =20 > > > this might require portage 2.0.51_pre... no idea, i havent used 2.0.5= 0=20 > > > in a while. > > [snip] > > Could this be generalized to do /etc/portage/package.env like somebody > > else asked for? > >=20 > > And then simply put a CFLAGS line in the file referenced by package.env, > > as it seems that it really would belong there. >=20 > I played with that idea for a few mins, but unfortunately I found no > easy way in bash to deal with the quotes. > Assuming this syntax. >=20 > sys-apps/paxctl CFLAGS=3D"-Os -fomit-frame-pointer"=20 > sys-devel/gdb CFLAGS=3D"-O2 -g3" > app-misc/beep FEATURES=3D"sfperms sandbox" LDFLAGS=3D"-Wl,-z,now > -Wl,-z,relro" > dev-libs/openssl CFLAGS=3D"-O3 -fno-omit-frame-pointer -m32" > .. >=20 > Maybe somebody else is motivated to do it from the basic idea. I gave up > and settled for the easy way out of package.cflags package.ldflags here > locally. I'll take a look at it and see about hacking up a prototype :-). The general consensus that was reached on the rough design of it was: /etc/portage/package.env: ebuild-atom file=20 where ebuild-atom is a complete version atom per ebuild(5) and file is one or more space-seperated names of files found in /etc/portage/package.env.d/ that get used after /etc/portage/bashrc. --=20 Robin Hugh Johnson E-Mail : robbat2@orbis-terrarum.net Home Page : http://www.orbis-terrarum.net/?l=3Dpeople.robbat2 ICQ# : 30269588 or 41961639 GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 --sm4nu43k4a2Rpi4c Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Robbat2 @ Orbis-Terrarum Networks iD8DBQFBP9LKPpIsIjIzwiwRAt7ZAKCtEEOOgTY06SEwzC85aZRCMITRdACdEV6+ FRRui0PJuNKL7nVhV7438AA= =4ZLM -----END PGP SIGNATURE----- --sm4nu43k4a2Rpi4c--