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 | f4afc2877abf3420b7481c797a79902b2b8fa8ba (patch) | |
tree | 73fc0c53ac0b905dc91fc71f0c0c29a536ea1b0d /scripts | |
parent | new Portage release (diff) | |
download | historical-f4afc2877abf3420b7481c797a79902b2b8fa8ba.tar.gz historical-f4afc2877abf3420b7481c797a79902b2b8fa8ba.tar.bz2 historical-f4afc2877abf3420b7481c797a79902b2b8fa8ba.zip |
bootstrap fix for USE
Diffstat (limited to 'scripts')
-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 |