# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 28 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org>
+ targets/grp/grp-chroot.sh, targets/livecd-stage1/livecd-stage1-chroot.sh,
+ targets/stage1/stage1-chroot.sh, targets/stage3/stage3-chroot.sh,
+ targets/stage4/stage4-chroot.sh, targets/support/chroot-functions.sh,
+ targets/tinderbox/tinderbox-chroot.sh:
+ Rearrange some of the functions in chroot-functions.sh in preparation for
+ some upcoming changes and rename setup_portage to setup_pkgmgr.
+
28 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org>
targets/stage1/stage1-controller.sh:
Removing an extra env-update call from stage1's preclean.
fi
}
-setup_portage(){
- # portage needs to be merged manually with USE="build" set to avoid frying
- # our make.conf. emerge system could merge it otherwise.
-# if [ "${clst_AUTORESUME}" = "1" -a -e /tmp/.clst_portage ]
-# then
-# echo "Portage Autoresume point found not emerging portage"
-# else
- USE="build" run_emerge --oneshot --nodeps portage
-# touch /tmp/.clst_portage || exit 1
-# fi
-}
-
-setup_gcc(){
- if [ -x /usr/bin/gcc-config ]
+setup_binutils(){
+ if [ -x /usr/bin/binutils-config ]
then
- mythang=$( cd /etc/env.d/gcc; ls ${clst_CHOST}-* | head -n 1 )
+ mythang=$( cd /etc/env.d/binutils; ls ${clst_CHOST}-* | head -n 1 )
if [ -z "${mythang}" ]
then
mythang=1
fi
- gcc-config ${mythang}; update_env_settings
+ binutils-config ${mythang}; update_env_settings
fi
}
-setup_binutils(){
- if [ -x /usr/bin/binutils-config ]
+setup_gcc(){
+ if [ -x /usr/bin/gcc-config ]
then
- mythang=$( cd /etc/env.d/binutils; 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
- binutils-config ${mythang}; update_env_settings
+ gcc-config ${mythang}; update_env_settings
fi
}
+setup_pkgmgr(){
+ # portage needs to be merged manually with USE="build" set to avoid frying
+ # our make.conf. emerge system could merge it otherwise.
+# if [ "${clst_AUTORESUME}" = "1" -a -e /tmp/.clst_portage ]
+# then
+# echo "Portage Autoresume point found not emerging portage"
+# else
+ USE="build" run_emerge --oneshot --nodeps virtual/portage
+# touch /tmp/.clst_portage || exit 1
+# fi
+}
+
cleanup_distcc() {
rm -rf /etc/distcc/hosts
for i in cc gcc c++ g++; do