Gentoo Archives: gentoo-dev

From: Aron Griffis <agriffis@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] per-runlevel make.conf settings
Date: Tue, 09 Nov 2004 15:35:08
Message-Id: 20041109152659.GB2363@kaf.zk3.dec.com
In Reply to: [gentoo-dev] per-runlevel make.conf settings by Aaron Walker
1 Aaron Walker wrote: [Tue Nov 09 2004, 05:26:28AM EST]
2 > Comments/suggestions/flames?
3
4 It's a lot easier to override make.conf via environment variables.
5 All the variables either directly override or augment when they're in
6 the environment.
7
8 For example, in make.conf:
9
10 CFLAGS="-O2 -march=athlon-xp -pipe"
11 CXXFLAGS="${CFLAGS}"
12 CHOST="i686-pc-linux-gnu"
13 USE="blah blah blah"
14 FEATURES="ccache collision-protect sfperms strict"
15 GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo ftp://gentoo.chem.wisc.edu/gentoo"
16
17 then put this in a profile/.bash_profile/.bashrc (depending on how you
18 like to do things):
19
20 if [ -n "$IM_AT_WORK" ]; then # use an appropriate test
21 MAKEOPTS="-j2"
22 SYNC=rsync://some_rsync_server_only_accessible_from_work/gentoo-portage
23 DISTDIR="/path/to/some/nfs/mounted/distdir"
24 export MAKEOPTS SYNC DISTDIR
25 else
26 FEATURES="distcc cvs digest sign" # this is cumulative
27 MAKEOPTS="-j5"
28 PORTAGE_GPG_DIR="/home/ka0ttic/.gnupg"
29 PORTAGE_GPG_KEY="ED34A45E"
30 SYNC=rsync://zeus/gentoo-portage
31 GENTOO_MIRRORS="http://zeus/gentoo/
32 ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo
33 ftp://gentoo.chem.wisc.edu/gentoo"
34 export FEATURES MAKEOPTS PORTAGE_GPG_DIR PORTAGE_GPG_KEY SYNC GENTOO_MIRRORS
35 fi
36
37 Regards,
38 Aron
39
40 --
41 Aron Griffis
42 Gentoo Linux Developer

Replies

Subject Author
Re: [gentoo-dev] per-runlevel make.conf settings Paul de Vrieze <pauldv@g.o>