Package: debconf
Version: 1.4.30.13
Severity: normal
Many maintainer scripts produce output on stdout and error on stderr.
In particular, init.d scripts will write messages such as
Starting proxy server: squid.
to stdout. It would be very convenient to be able to separate messages
such as these from errors which are sent to stderr.
Currently, if a maintainer script uses debconf then stdout is redirected
to stderr which makes the separation impossible.
Here is a patch that uses a simple redirection to preserve the original
stdout so that we can deal with normal output in a different way.
-- System Information
Debian Release: 3.1
Kernel Version: Linux gondolin 2.4.27-hx-1-686-smp #3 SMP Tue Oct 5 20:01:26
EST 2004 i686 GNU/Linux
Versions of the packages debconf depends on:
ii debconf-i18n 1.4.30.13 full internationalization support for debcon
ii perl-base 5.8.4-8 The Pathologically Eclectic Rubbish Lister
debconf-english Not installed or no info
--
--- confmodule.orig 2005-11-04 15:29:21.000000000 +1100
+++ confmodule 2005-11-04 15:30:50.000000000 +1100
@@ -11,7 +11,7 @@
export PERL_DL_NONLAZY
# Since there is no FrontEnd, this program execs a FrontEnd.
# It will then run a new copy of $0 that can talk to it.
- exec /usr/share/debconf/frontend $0 "$@"
+ exec /usr/share/debconf/frontend $0 "$@" 9>&1
fi
# Only do this once.
@@ -22,6 +22,9 @@
#
# To actually send something to standard output, send it to fd 3.
exec 3>&1 1>&2
+ if [ -n "$PERL_DL_NONLAZY" ]; then
+ exec 1>&9 9>&-
+ fi
DEBCONF_REDIR=1
export DEBCONF_REDIR
fi
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]