Your message dated Sun, 30 Mar 2008 10:03:47 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#351031: debconf/zsh problem
has caused the Debian Bug report #351031,
regarding DEBCONF_USE_CDEBCONF - errors with /bin/zsh as /bin/sh
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
351031: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=351031
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: debconf
Version: 1.4.70
Severity: important


I'm using /bin/zsh as /bin/sh.
Whereas the old code:

,---- [ /usr/share/debconf/confmodule before 1.4.70 ]
| # Only do this once.
| if [ -z "$DEBCONF_REDIR" ]; then
|         # Redirect standard output to standard error. This prevents common
|         # mistakes by making all the output of the postinst or whatever
|         # script is using this library not be parsed as confmodule commands.
|         #
|         # To actually send something to standard output, send it to fd 3.
|         exec 3>&1 1>&2
|         DEBCONF_REDIR=1
|         export DEBCONF_REDIR
| fi
`----

worked as expected the new code fails:

,---- [/usr/share/debconf/confmodule 1.4.70 ]
| # Only do this once.
| if [ -z "$DEBCONF_REDIR" ]; then
|         # Redirect standard output to standard error. This prevents common
|         # mistakes by making all the output of the postinst or whatever
|         # script is using this library not be parsed as confmodule commands.
|         #
|         # To actually send something to standard output, send it to fd 3.
|         exec 3>&1
|         if [ "$DEBCONF_USE_CDEBCONF" ]; then
|                 exec 1>&5
|         else
|                 exec 1>&2
|         fi
|         DEBCONF_REDIR=1
|         export DEBCONF_REDIR
| fi
`----

Example:

# /usr/share/debconf/frontend /var/lib/dpkg/info/apmd.postinst configure || 
echo problem
problem

This causes every package using '. /usr/share/debconf/confmodule' in
maintainer scripts failing install/upgrade.

If I add an 'echo' before the 'exec 1>&2'-line it works.
It also works if I remove the "$DEBCONF_USE_CDEBCONF"-code.

regards,
-mika-


--- End Message ---
--- Begin Message ---
On Sun, Mar 30, 2008 at 02:20:33PM +0200, Michael Prokop wrote:
> No, I can't reproduce the bug anymore. :)

Thanks, closing.


--- End Message ---

Reply via email to