summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2001-09-13 03:30:22 +0000
committerDaniel Robbins <drobbins@gentoo.org>2001-09-13 03:30:22 +0000
commit1db31d077d4689ac4a07d00ecca379b754b4fe6f (patch)
treeaee09b646ac6e5b646e1f8a2e9a0908918a23a49 /scripts
parentnew Portage release (diff)
downloadgentoo-2-1db31d077d4689ac4a07d00ecca379b754b4fe6f.tar.gz
gentoo-2-1db31d077d4689ac4a07d00ecca379b754b4fe6f.tar.bz2
gentoo-2-1db31d077d4689ac4a07d00ecca379b754b4fe6f.zip
bootstrap fix for USE
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bootstrap.sh20
1 files changed, 4 insertions, 16 deletions
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index 2bc476d6c314..3baae1d2bc9f 100755
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -24,15 +24,8 @@ cleanup() {
}
#USE may be set from the environment so we back it up for later.
-if [ "${USE-UNSET}" = "UNSET" ]
-then
- use_unset=yes
-else
- use_old="$USE"
- use_unset=no
-fi
+export ORIGUSE="`spython -c 'import portage; print portage.settings["USE"];'`"
export USE="build"
-
#get correct CFLAGS, CHOST, CXXFLAGS, MAKEOPTS since make.conf will be
#overwritten
cp /etc/make.conf /etc/make.conf.build
@@ -46,14 +39,9 @@ export CONFIG_PROTECT=""
cd /usr/portage
emerge $myPORTAGE #separate, so that the next command uses the *new* emerge
emerge $myBASELAYOUT $myBINUTILS $myGCC $myGETTEXT || cleanup 1
-if [ "$use_unset" = "yes" ]
-then
- unset USE
-else
- export USE="$use_old"
-fi
+#make.conf has been overwritten, so we explicitly export our original settings
+export USE="$ORIGUSE"
# This line should no longer be required
-#export USE="`spython -c 'import portage; print portage.settings["USE"];'` bootstrap"
emerge $myGLIBC $myGETTEXT $myBINUTILS $myGCC $myTEXINFO || cleanup 1
-#restore settings
+#restore original make.conf
cleanup 0