summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2003-06-06 06:09:26 +0000
committerDaniel Robbins <drobbins@gentoo.org>2003-06-06 06:09:26 +0000
commita1493e205d866f6c46d4fd8c18c11fd236767f04 (patch)
tree8fc8300cc527d00b8307162e7ba7dec2e1c662d5 /scripts
parentBump (diff)
downloadgentoo-2-a1493e205d866f6c46d4fd8c18c11fd236767f04.tar.gz
gentoo-2-a1493e205d866f6c46d4fd8c18c11fd236767f04.tar.bz2
gentoo-2-a1493e205d866f6c46d4fd8c18c11fd236767f04.zip
New bootstrap script that no longer compiles gcc and binutils twice, which
is unnecessary. Way back in the early days of gentoo, we did this for paranoia. These days, we've learned that this is not particularly helpful. Bootstraps should complete faster now.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bootstrap.sh36
1 files changed, 11 insertions, 25 deletions
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index 000704bb04c6..ebb11bdb62bd 100755
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2
-# $Header: /var/cvsroot/gentoo-x86/scripts/bootstrap.sh,v 1.42 2003/03/05 04:37:25 bcowan Exp $
+# $Header: /var/cvsroot/gentoo-x86/scripts/bootstrap.sh,v 1.43 2003/06/06 06:09:26 drobbins Exp $
# IMPORTANT NOTE:
# This script now accepts an optional argument.
@@ -153,19 +153,8 @@ export AUTOCLEAN="no"
# Allow portage to overwrite stuff
export CONFIG_PROTECT="-*"
-
-if [ "$1" = "" ] || [ "$1" = "0" -o "$1" = "1.5" ]
-then
- #
- # First stage of bootstrap (aka build stage)
- #
- cd /usr/portage
- export USE="-* build bootstrap"
- # Separate, so that the next command uses the *new* emerge
- emerge ${myPORTAGE} || cleanup 1
- emerge ${myBASELAYOUT} ${myTEXINFO} ${myGETTEXT} ${myBINUTILS} ${myGCC} || cleanup 1
- # make.conf has been overwritten, so we explicitly export our original settings
-fi
+
+USE="-* build bootstrap" emerge ${myPORTAGE} || cleanup 1
if [ -x /usr/bin/gcc-config ]
then
@@ -186,17 +175,14 @@ then
${GCC_CONFIG} "`${GCC_CONFIG} --get-current-profile`" &> /dev/null
fi
-if [ "$1" = "" ] || [ "$1" = "0" -o "$1" = "2" ]
-then
- #
- # Second stage of boostrap
- #
- export USE="${ORIGUSE} bootstrap"
- emerge ${myGLIBC} ${myBASELAYOUT} ${myTEXINFO} ${myGETTEXT} ${myZLIB} ${myBINUTILS} ${myGCC} || cleanup 1
- # ncurses-5.3 and up also build c++ bindings, so we need to rebuild it
- export USE="${ORIGUSE}"
- emerge ${myNCURSES} || cleanup 1
-fi
+export USE="${ORIGUSE} bootstrap"
+for x in ${myTEXINFO} ${myGETTEXT} ${myBINUTILS} ${myGCC} ${myGLIBC} ${MYBASELAYOUT} ${myZLIB}
+do
+ emerge $x || cleanup 1
+done
+# ncurses-5.3 and up also build c++ bindings, so we need to rebuild it
+export USE="${ORIGUSE}"
+emerge ${myNCURSES} || cleanup 1
# Restore original make.conf
cleanup 0