# ChangeLog for gentoo/src/catalyst
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.99 2004/10/19 03:39:36 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.100 2004/10/19 04:06:35 zhen Exp $
+
+ 19 Oct 2004; John Davis <zhen@gentoo.org> catalyst, files/catalyst.conf,
+ livecd/runscript-support/kmerge.sh:
+ made kernel caching dependent on the "pkgcache" option so that genkernel's
+ postconf can actually work
18 Oct 2004; John Davis <zhen@gentoo.org>
livecd/runscript/x86-archscript.sh, livecd/runscript-support/kmerge.sh,
#!/usr/bin/python
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.50 2004/10/15 02:48:20 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.51 2004/10/19 04:06:35 zhen Exp $
# Maintained in full by John Davis <zhen@gentoo.org>
def usage():
print "Usage catalyst [options] [-C variable=value...] [ -s identifier]"
- print " -h --help print this help message"
- print " -v --version display version information"
- print " -d --debug enable debugging"
print " -c --config use specified configuration file"
print " -C --cli catalyst commandline (MUST BE LAST OPTION)"
+ print " -d --debug enable debugging"
print " -f --file read specfile"
- print " -V --verbose verbose output"
+ print " -h --help print this help message"
print " -s --snapshot generate a Portage snapshot"
+ print " -v --version display version information"
+ print " -V --verbose verbose output"
print
print "Usage examples:"
print
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/files/catalyst.conf,v 1.6 2004/10/15 02:37:56 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/files/catalyst.conf,v 1.7 2004/10/19 04:06:35 zhen Exp $
# Simple desriptions of catalyst settings. Please refer to the online
# documentation for more information.
# options set different build-time options for catalyst. Some examples are:
# ccache = enables build time ccache support (highly recommended)
-# pkgcache = keeps a tbz2 of every built package (useful if your build stops prematurely)
# distcc = enable distcc support for building. You have to set distcc_hosts in your spec file.
+# pkgcache = keeps a tbz2 of every built package (useful if your build stops prematurely)
options="ccache pkgcache"
# sharedir specifies where all of the catalyst runtime executables are. Most users do
#!/bin/bash
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript-support/Attic/kmerge.sh,v 1.15 2004/10/19 03:39:36 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript-support/Attic/kmerge.sh,v 1.16 2004/10/19 04:06:35 zhen Exp $
die() {
echo "$1"
--postconf="emerge ${clst_kernel_postconf}" || exit 1
# pack up the modules for resuming
- tar cjpf /usr/portage/packages/gk_binaries/${1}-modules-${clst_version_stamp}.tar.bz2 \
- /lib/modules/"${1}" || die "Could not package kernel modules, exiting"
+ if [ -n "${clst_PKGCACHE}" ]
+ then
+ tar cjpf /usr/portage/packages/gk_binaries/${1}-modules-${clst_version_stamp}.tar.bz2 \
+ /lib/modules/"${1}" || die "Could not package kernel modules, exiting"
+ fi
}
# test to see if the kernel .configs are the same, if so, then we skip kernel building
test1=$(md5sum /var/tmp/${clst_kname}.config | cut -d " " -f 1)
test2=$(md5sum /usr/portage/packages/gk_binaries/${clst_kname}-${clst_version_stamp}.config | cut -d " " -f 1)
- if [ "${test1}" == "${test2}" ]
+ if [ "${test1}" == "${test2}" -a -n "${clst_PKGCACHE}" ]
then
echo
echo "No kernel configuration change, skipping kernel build..."
unset USE
# keep the config around so that we can resume at some point
-cp /var/tmp/${clst_kname}.config /usr/portage/packages/gk_binaries/${clst_kname}-${clst_version_stamp}.config
+[ -n "${clst_PKGCACHE}" ] && cp /var/tmp/${clst_kname}.config /usr/portage/packages/gk_binaries/${clst_kname}-${clst_version_stamp}.config