diff options
author | Daniel Robbins <drobbins@gentoo.org> | 2001-09-13 03:30:22 +0000 |
---|---|---|
committer | Daniel Robbins <drobbins@gentoo.org> | 2001-09-13 03:30:22 +0000 |
commit | 1db31d077d4689ac4a07d00ecca379b754b4fe6f (patch) | |
tree | aee09b646ac6e5b646e1f8a2e9a0908918a23a49 /scripts/bootstrap.sh | |
parent | new Portage release (diff) | |
download | gentoo-2-1db31d077d4689ac4a07d00ecca379b754b4fe6f.tar.gz gentoo-2-1db31d077d4689ac4a07d00ecca379b754b4fe6f.tar.bz2 gentoo-2-1db31d077d4689ac4a07d00ecca379b754b4fe6f.zip |
bootstrap fix for USE
Diffstat (limited to 'scripts/bootstrap.sh')
-rwxr-xr-x | scripts/bootstrap.sh | 20 |
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 |