From 13e098eb7013ff92c50351bc38dcfa0b6beab0a8 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Fri, 28 Jul 2006 20:01:51 +0000 Subject: [PATCH] Added patch to fix revdep-rebuild bug #37485 svn path=/; revision=306 --- trunk/ChangeLog | 5 +++++ trunk/src/revdep-rebuild/revdep-rebuild | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 336b660..3cc782e 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,8 @@ +2006-07-28 Paul Varner + * revdep-rebuild: Fix revdep-rebuild to correctly handle --ask being + passed to emerge. Thanks to Sal Gonzalez for + the patch. (Bug #37485) + 2006-07-07 Paul Varner * revdep-rebuild: Rename --no-path to --no-ld-path and change functionality to not set LD_LIBRARY_PATH. This fixes bug #96946 as diff --git a/trunk/src/revdep-rebuild/revdep-rebuild b/trunk/src/revdep-rebuild/revdep-rebuild index ed1e11b..94a3f45 100755 --- a/trunk/src/revdep-rebuild/revdep-rebuild +++ b/trunk/src/revdep-rebuild/revdep-rebuild @@ -658,13 +658,19 @@ if $IS_REAL_MERGE ; then echo fi +# Link file descriptor #6 with stdin +exec 6<&0 + # Run in background to correctly handle Ctrl-C ( - EMERGE_DEFAULT_OPTS="" emerge --oneshot $EMERGE_OPTIONS $REBUILD_LIST + EMERGE_DEFAULT_OPTS="" emerge --oneshot $EMERGE_OPTIONS $REBUILD_LIST <&6 echo $? >$LLIST.6_status ) & wait +# Now restore stdin from fd #6, where it had been saved, and close fd #6 ( 6<&- ) to free it for other processes to use. +exec 0<&6 6<&- + #if $EXACT_EBUILDS ; then # mv -i /usr/portage/profiles/package.mask.hidden /usr/portage/profiles/package.mask # trap - SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM -- 2.26.2