From: fuzzyray Date: Sun, 3 Sep 2006 22:23:15 +0000 (-0000) Subject: Remove unused environment variables before calling emerge. Bug #142074 X-Git-Tag: gentoolkit-0.2.4.3~199 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ab3a4f40cb99fd1b33ac6ffacdcae3e89c0d6cb0;p=gentoolkit.git Remove unused environment variables before calling emerge. Bug #142074 svn path=/; revision=314 --- diff --git a/trunk/src/revdep-rebuild/revdep-rebuild b/trunk/src/revdep-rebuild/revdep-rebuild index 9093b40..7548525 100755 --- a/trunk/src/revdep-rebuild/revdep-rebuild +++ b/trunk/src/revdep-rebuild/revdep-rebuild @@ -333,6 +333,10 @@ then fi fi +# Clean up no longer needed environment variables +unset PREVIOUS_SEARCH_DIRS PREVIOUS_SEARCH_DIRS_MASK PREVIOUS_LD_LIBRARY_MASK PREVIOUS_PORTAGE_ROOT PREVIOUS_OPTIONS +unset PRELIMINARY_SEARCH_DIRS PRELIMINARY_SEARCH_DIRS_MASK PRELIMINARY_LD_LIBRARY_MASK PRELIMINARY_CALLED_OPTIONS + # Log our environment echo "SEARCH_DIRS=\"$SEARCH_DIRS\"" > $LIST.0_env echo "SEARCH_DIRS_MASK=\"$SEARCH_DIRS_MASK\"" >> $LIST.0_env @@ -646,6 +650,9 @@ else echo -e " done.\n ($LLIST.5_order)" fi +# Clean up no longer needed environment variables +unset COMPLETE_LD_LIBRARY_PATH SEARCH_DIRS SEARCH_DIRS_MASK LD_LIBRARY_MASK PORTAGE_ROOT CALLED_OPTIONS + REBUILD_LIST="$(cat $LLIST.5_order | sed s/^/=/ | tr '\n' ' ')" trap - SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM