# ChangeLog for gentoo/src/catalyst
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.17 2004/02/11 19:12:07 drobbins Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.18 2004/02/13 02:41:26 drobbins Exp $
+ 12 Feb 2004; Daniel Robbins <drobbins@gentoo.org>: fixed bugs in previous
+ feature additions (see 11 Feb 2004) and added support for a $clst_conf
+ environment variable. You can use the $clst_conf variable to point to
+ a file to use in place of /etc/catalyst.conf. By setting this variable
+ in your shell, catalyst can easily be used by multiple people on the
+ same machine. Also, ccache support now works for genkernel.
+
11 Feb 2004; Daniel Robbins <drobbins@gentoo.org>: removed file for
livecd-stage2 target, as this is handled by the runscript now. Added support
for "/boot/kernel/foo/use", "/boot/kernel/foo/packages," and made
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/examples/livecd/runscript/Attic/default-runscript.sh,v 1.13 2004/02/11 19:12:07 drobbins Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/examples/livecd/runscript/Attic/default-runscript.sh,v 1.14 2004/02/13 02:41:26 drobbins Exp $
#return codes to be used by archscript
# Append Extraversion
sed -i -e "s:EXTRAVERSION \(=.*\):EXTRAVERSION \1-${clst_kextversion}:" /usr/src/linux/Makefile
fi
+ if [ -n "${clst_CCACHE}" ]
+ then
+ #enable ccache for genkernel
+ export PATH="/usr/lib/ccache/bin:\${PATH}"
+ fi
genkernel ${genkernel_args} --kerneldir=/usr/src/linux --kernel-config=/var/tmp/$clst_kname.config --minkernpackage=/tmp/binaries/$clst_kname.tar.bz2 all || exit 1
#now we merge any kernel-dependent packages
if [ -e /var/tmp/$clst_kname.packages ]
then
- for x in "\$( cat /var/tmp/$clst_kname.packages )"
+ for x in \$( cat /var/tmp/$clst_kname.packages )
do
# we don't want to use the pkgcache for these since the results
# are kernel-dependent.
+ echo DEBUG emerge "\$x"
emerge "\$x"
done
fi
- cd /usr/src/linux
- #mrproper cleans out the tree and allows full unmerging of all subdirs
- make mrproper
cd /usr/src
- #now the unmerge...
+ rm -rf linux*
+ #now the unmerge... (wipe db entry)
emerge -C $clst_ksource
unset USE
EOF
# Distributed under the GNU General Public License version 2
# Copyright 2003-2004 Gentoo Technologies, Inc.
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.16 2004/02/12 19:51:37 drobbins Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.17 2004/02/13 02:41:26 drobbins Exp $
import sys,string,os,types
def arg_parse(mydict,remaining,argv):
"grab settings from argv, storing 'target' in mydict, and everything in remaining for later parsing"
global required_config_file_values
- print "ARGV",argv
for x in argv:
foo=string.split(x,"=")
if len(foo)!=2:
raise CatalystError, "Invalid arg syntax: "+x
remaining[foo[0]]=foo[1]
- print "X",x
if not remaining.has_key("target"):
raise CatalystError, "Required value \"target\" not specified."
mydict["target"]=remaining["target"]
# Distributed under the GNU General Public License version 2
# Copyright 2003-2004 Gentoo Technologies, Inc.
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/Attic/targets.py,v 1.86 2004/02/12 19:51:37 drobbins Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/Attic/targets.py,v 1.87 2004/02/13 02:41:26 drobbins Exp $
import os,string,imp,types,shutil
from catalyst_support import *
#write out /var/tmp/kname.(use|packages) files, used for kernel USE and extra packages settings
for extra in ["use","packages"]:
if self.settings.has_key("boot/kernel/"+kname+"/"+extra):
+ print "DEBUG: has key boot/kernel/"+kname+"/"+extra,self.settings["boot/kernel/"+kname+"/"+extra]
myex=self.settings["boot/kernel/"+kname+"/"+extra]
if type(myex)==types.ListType:
myex=string.join(myex)
myf.write("export USE=\""+myex+"\"\n")
else:
myf.write(myex+"\n")
- myf.close
+ myf.close()
+ else:
+ print "DEBUG: no key boot/kernel/"+kname+"/"+extra
+
retval=os.system("cp "+self.settings["boot/kernel/"+kname+"/config"]+" "+self.settings["chroot_path"]+"/var/tmp/"+kname+".config")
if retval!=0: