From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19659 invoked from network); 9 Sep 2004 01:47:44 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 9 Sep 2004 01:47:43 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.34) id 1C5E2J-0001jM-3S for arch-gentoo-dev@lists.gentoo.org; Thu, 09 Sep 2004 01:47:43 +0000 Received: (qmail 2325 invoked by uid 89); 9 Sep 2004 01:47:42 +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 27937 invoked from network); 9 Sep 2004 01:47:42 +0000 Message-ID: <413FB713.3030404@gentoo.org> Date: Wed, 08 Sep 2004 21:51:15 -0400 From: Travis Tilley User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040811) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org References: <33333.10.0.0.51.1094638559.squirrel@10.0.0.51> <413FA8B7.8010108@gentoo.org> In-Reply-To: <413FA8B7.8010108@gentoo.org> Content-Type: multipart/mixed; boundary="------------090307070207060701060300" Subject: [gentoo-dev] per package cflags (was Re: Do we want optimal performance?) X-Archives-Salt: 7b1da8d9-1bf4-4dba-b861-0842be9559b9 X-Archives-Hash: abc2674a7aa24b113c272d3865b2e26a --------------090307070207060701060300 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Daniel Goller wrote: > although i am against overly tweaking CFLAGS, someone suggested > 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, > you can trade them in the forums or ebay and then append to your file, > not much work to implement in my eyes, and all the testing work is done > by those who want it mkdir /etc/portage and copy this file there (MUCH thanks to solar for writing this. he like... kicks ass an stuff). it implements an /etc/portage/package.cflags without needing to patch portage. i think this might require portage 2.0.51_pre... no idea, i havent used 2.0.50 in a while. Travis Tilley --------------090307070207060701060300 Content-Type: text/plain; name="bashrc" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="bashrc" # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # /etc/portage/bashrc if [ "$0" = "/usr/lib/portage/bin/ebuild.sh" ]; then if [ "${DEBUG}" != "" ]; then echo ---------------------------------------------------- echo \$_=$_ echo \$\*=$* echo \$@=$@ echo \$0=$0 echo PORTDIR=$PORTDIR echo CATEGORY=$CATEGORY echo PN=$PN echo PV=$PV echo PR=$PR echo PF=$PF echo P=$P echo USER=$USER echo HOME=$HOME echo PATH=${PATH} echo LD_PRELOAD=${LD_PRELOAD} echo ---------------------------------------------------- fi eecho() { [ "$NOCOLOR" = "false" ] && echo -ne '\e[1;34m>\e[1;36m>\e[1;35m>\e[0m ' || echo -n ">>> " echo "$*" } case "$*" in # stay really quiet here. depend) : ;; *) if [ "$(/bin/basename /${LD_PRELOAD})" = "libsandbox.so" ]; then eecho "$USER +sandbox($*) $PWD" else eecho "$USER -sandbox($*) $PWD" fi if [ -e ${ROOT}/etc/portage/package.cflags ]; then save_IFS IFS=$'\n' for x in $(/bin/cat ${ROOT}/etc/portage/package.cflags); do unset IFS x="$(echo $x)" IFS=$'\n' if [ "${x:0:1}" != "#" ]; then PKG="${x%%[$'\t\n ']*}" if [ "$PKG" == "$CATEGORY/$PN" ]; then export CFLAGS="${x/$PKG/}" eecho "Using package.cflags entry for $PN - CFLAGS=\"${CFLAGS}\"" fi fi done restore_IFS fi ;; esac fi --------------090307070207060701060300 Content-Type: text/plain; charset=us-ascii -- gentoo-dev@gentoo.org mailing list --------------090307070207060701060300--