# ChangeLog for gentoo/src/catalyst
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.101 2004/10/19 04:09:13 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.102 2004/10/21 17:06:21 wolf31o2 Exp $
+
+ 21 Oct 2004; Chris Gianelloni <wolf31o2@gentoo.org> catalyst,
+ livecd/runscript/sparc-archscript.sh,
+ livecd/runscript/sparc64-archscript.sh,
+ livecd/runscript-support/kmerge.sh,
+ livecd/runscript-support/livecdfs-update.sh, modules/catalyst_support.py:
+ Fixing gpm support by uncommenting default settings. Fixing case where
+ boot/kernel/$kname/packages or boot/kernel/$kname/postconf were empty.
+ Changing sparc kernel files from kernel* to kernel-* so kernel.msg does
+ not get renamed. Fixed a problem where we were accidentally removing the
+ hwdata-knoppix versions of pci.ids and usb.ids and linking
+ /usr/share/misc/*.ids to non-existent files. This should hopefully be it
+ for 2004.3 and catalyst 1.1.0.
19 Oct 2004; John Davis <zhen@gentoo.org> arch/ia64.py:
patch from vapier@gentoo.org for bug #68080
#!/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.51 2004/10/19 04:06:35 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.52 2004/10/21 17:06:21 wolf31o2 Exp $
# Maintained in full by John Davis <zhen@gentoo.org>
if "pkgcache" in string.split(conf_values["options"]):
print "Package cache support enabled."
conf_values["PKGCACHE"]="1"
+
+ if "kerncache" in string.split(conf_values["options"]):
+ print "Kernel cache support enabled."
+ conf_values["KERNCACHE"]="1"
if "distcc" in string.split(conf_values["options"]):
print "Distcc support enabled."
#!/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.16 2004/10/19 04:06:35 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript-support/Attic/kmerge.sh,v 1.17 2004/10/21 17:06:21 wolf31o2 Exp $
die() {
echo "$1"
do
clst_kernel_postconf="${clst_kernel_postconf} ${x}"
done
+ GK_ARGS="${GK_ARGS} --postconf=\"${clst_kernel_postconf}\""
+ fi
+
+ if [ -e "/var/tmp/${clst_kname}.packages" ]
+ then
+ 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.
+ clst_kernel_merge="${clst_kernel_merge} ${x}"
+ done
+ GK_ARGS="${GK_ARGS} --callback=\"${clst_kernel_merge}\""
fi
if [ "${clst_livecd_devmanager}" == "udev" ]
# build with genkernel using the set options
# callback is put here to avoid escaping issues
- genkernel ${GK_ARGS} --callback="emerge ${clst_kernel_merge}" \
- --postconf="emerge ${clst_kernel_postconf}" || exit 1
+ genkernel ${GK_ARGS} || exit 1
# pack up the modules for resuming
- if [ -n "${clst_PKGCACHE}" ]
+ if [ -n "${clst_KERNCACHE}" ]
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"
EXV=`grep ^EXTRAVERSION\ \= /usr/src/linux/Makefile | sed -e "s/EXTRAVERSION =//" -e "s/ //g"`
clst_fudgeuname=${VER}.${PAT}.${SUB}${EXV}
-# now we merge any kernel-dependent packages
-if [ -e "/var/tmp/${clst_kname}.packages" ]
-then
- 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.
- clst_kernel_merge="${clst_kernel_merge} ${x}"
- done
-fi
-
# kernel building happens here
# does the old config exist? if it does not, we build by default
if [ -e "/usr/portage/packages/gk_binaries/${clst_kname}-${clst_version_stamp}.config" ]
# 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}" -a -n "${clst_PKGCACHE}" ]
+ if [ "${test1}" == "${test2}" -a -n "${clst_KERNCACHE}" ]
then
echo
echo "No kernel configuration change, skipping kernel build..."
unset USE
# keep the config around so that we can resume at some point
-[ -n "${clst_PKGCACHE}" ] && cp /var/tmp/${clst_kname}.config /usr/portage/packages/gk_binaries/${clst_kname}-${clst_version_stamp}.config
+[ -n "${clst_KERNCACHE}" ] && cp /var/tmp/${clst_kname}.config /usr/portage/packages/gk_binaries/${clst_kname}-${clst_version_stamp}.config
#!/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/livecdfs-update.sh,v 1.16 2004/10/19 03:39:36 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript-support/Attic/livecdfs-update.sh,v 1.17 2004/10/21 17:06:21 wolf31o2 Exp $
/usr/sbin/env-update
source /etc/profile
echo "livecd" > /etc/hostname
echo "gentoo" > /etc/dnsdomainname
+# gpm fixes
+sed -i -e 's/#MOUSE=imps2/MOUSE=imps2/' \
+ -e 's:#MOUSEDEV=/dev/input/mice:MOUSEDEV=/dev/input/mice:' \
+ /etc/conf.d/gpm
+
# fstab tweaks
#sed -i -e '/\/dev\/[RBS]*/ s/^/#/' /etc/fstab
echo "tmpfs / tmpfs defaults 0 0" >> /etc/fstab
# tweak the livecd fstab so that users know not to edit it
# http://bugs.gentoo.org/show_bug.cgi?id=60887
mv /etc/fstab /etc/fstab.old
-echo "###############################################" >> /etc/fstab
-echo "## ATTENTION: THIS IS THE FSTAB ON THE LIVECD" >> /etc/fstab
-echo "## PLEASE EDIT THE FSTAB at /mnt/gentoo/etc/fstab" >> /etc/fstab
-echo "###############################################" >> /etc/fstab
+echo "####################################################" >> /etc/fstab
+echo "## ATTENTION: THIS IS THE FSTAB ON THE LIVECD ##" >> /etc/fstab
+echo "## PLEASE EDIT THE FSTAB at /mnt/gentoo/etc/fstab ##" >> /etc/fstab
+echo "####################################################" >> /etc/fstab
cat /etc/fstab.old >> /etc/fstab
rm /etc/fstab.old
echo "alias mv='mv -i'" >> /etc/profile
echo "alias pico='nano -w'" >> /etc/profile
echo "alias rm='rm -i'" >> /etc/profile
+echo "alias grep='grep --color'" >> /etc/profile
# make sure we have the latest pci and hotplug ids
if [ -d /usr/share/hwdata ]
then
- [ -f /usr/share/misc/pci.ids ] && rm -f /usr/share/hwdata/pci.ids
- [ -f /usr/share/misc/usb.ids ] && rm -f /usr/share/hwdata/usb.ids
- ln -s /usr/share/misc/pci.ids /usr/share/hwdata/pci.ids
- ln -s /usr/share/misc/usb.ids /usr/share/hwdata/usb.ids
+ [ -f /usr/share/misc/pci.ids ] && rm -f /usr/share/misc/pci.ids
+ [ -f /usr/share/misc/usb.ids ] && rm -f /usr/share/misc/usb.ids
+ ln -s /usr/share/hwdata/pci.ids /usr/share/misc/pci.ids
+ ln -s /usr/share/hwdata/usb.ids /usr/share/misc/usb.ids
fi
# tweak the motd for gentoo releases
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript/Attic/sparc-archscript.sh,v 1.5 2004/10/15 02:40:00 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript/Attic/sparc-archscript.sh,v 1.6 2004/10/21 17:06:21 wolf31o2 Exp $
case $1 in
kernel)
tar xjvf ${kbinary} -C ${clst_cdroot_path}/boot
# change kernel name from "kernel" to "gentoo", for example
- mv ${clst_cdroot_path}/boot/kernel* ${clst_cdroot_path}/boot/${x}
+ mv ${clst_cdroot_path}/boot/kernel-* ${clst_cdroot_path}/boot/${x}
# change initrd name from "initrd" to "gentoo.igz", for example
mv ${clst_cdroot_path}/boot/initrd* ${clst_cdroot_path}/boot/${x}.igz
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript/Attic/sparc64-archscript.sh,v 1.6 2004/10/15 02:40:00 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript/Attic/sparc64-archscript.sh,v 1.7 2004/10/21 17:06:21 wolf31o2 Exp $
case $1 in
kernel)
tar xjvf ${kbinary} -C ${clst_cdroot_path}/boot
# change kernel name from "kernel" to "gentoo", for example
- mv ${clst_cdroot_path}/boot/kernel* ${clst_cdroot_path}/boot/${x}
+ mv ${clst_cdroot_path}/boot/kernel-* ${clst_cdroot_path}/boot/${x}
# change initrd name from "initrd" to "gentoo.igz", for example
mv ${clst_cdroot_path}/boot/initrd* ${clst_cdroot_path}/boot/${x}.igz
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.29 2004/10/15 02:27:58 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.30 2004/10/21 17:06:21 wolf31o2 Exp $
import sys,string,os,types,re
required_config_file_values=["storedir","sharedir","distdir","portdir"]
valid_config_file_values=required_config_file_values[:]
valid_config_file_values.append("PKGCACHE")
+valid_config_file_values.append("KERNCACHE")
valid_config_file_values.append("CCACHE")
valid_config_file_values.append("DISTCC")
valid_config_file_values.append("ENVSCRIPT")