# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.266 2005/06/01 16:20:58 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.267 2005/06/02 20:30:59 wolf31o2 Exp $
+
+ 02 Jun 2005; Chris Gianelloni <wolf31o2@gentoo.org>
+ targets/stage1/stage1-preclean-chroot.sh,
+ targets/support/chroot-functions.sh:
+ Added setup_binutils function and force both of them to run during stage1
+ cleanup.
01 Jun 2005; Chris Gianelloni <wolf31o2@gentoo.org>
examples/livecd-stage2_template.spec:
#!/bin/bash
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-preclean-chroot.sh,v 1.5 2005/04/29 21:31:32 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-preclean-chroot.sh,v 1.6 2005/06/02 20:30:59 wolf31o2 Exp $
. /tmp/chroot-functions.sh
# now, some finishing touches to initialize gcc-config....
unset ROOT
-#setup_gcc
+setup_gcc
+setup_binutils
# stage1 is not going to have anything in zoneinfo, so save our Factory timezone
if [ -d /usr/share/zoneinfo ] ; then
setup_gcc(){
if [ -x /usr/bin/gcc-config ]
then
- mythang=$( cd /etc/env.d/gcc; ls ${clst_CHOST}-* | head -n 1 )
+ mythang=$( cd /etc/env.d/gcc; ls ${clst_CHOST}-* | head -n 1 )
+ if [ -z "${mythang}" ]
+ then
+ mythang=1
+ fi
gcc-config ${mythang}; update_env_settings
fi
}
+setup_binutils(){
+ if [ -x /usr/bin/binutils-config ]
+ then
+ mythang=$( cd /etc/env.d/binutils; ls ${clst_CHOST}-* | head -n 1 )
+ if [ -z "${mythang}" ]
+ then
+ mythang=1
+ fi
+ binutils-config ${mythang}; update_env_settings
+ fi
+}
+
update_env_settings(){
/usr/sbin/env-update
source /etc/profile