Bug#304033: exim4-daemon-light: configure script hangs up -- breaks installation

Ferenc Engard Ferenc Engard <ferenc@engard.hu>, 304033@bugs.debian.org
Sun, 10 Apr 2005 14:48:38 +0200


Package: exim4-daemon-light
Version: 4.50-5
Severity: grave
Justification: renders package unusable

I installed exim4 replacing my old exim3 configuration, and selected to 
convert my config script to v4.

The configuration process of the package above dumped the new exim4
configuration  file, then hanged up. The relevant process list was the
following:

14382 pts/33   S+     0:04 apt-get install exim4 eximon4 exim4-doc-info exim4-doc-html
15165 pts/33   S+     0:07 /usr/bin/dpkg --configure exim4-config exim4-base libgpg-error0 libgcry
15307 pts/33   S+     0:07 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/exim4-d
15313 pts/33   S+     0:00 /bin/sh /var/lib/dpkg/info/exim4-daemon-light.postinst configure
15314 pts/33   S+     0:00 /bin/sh /usr/sbin/invoke-rc.d exim4 start
15330 pts/33   S+     0:00 /bin/sh /etc/init.d/exim4 start
15332 pts/33   S+     0:00 /bin/sh /usr/sbin/update-exim4.conf
15347 pts/33   S+     0:00 /bin/sh /usr/sbin/update-exim4.conf
15348 pts/33   S+     0:00 sed -e s/DEBCONF[^D][^E][^B].*DEBCONF//g
15349 pts/33   S+     0:00 grep -E -v ^[[:space:]]*#
15350 pts/33   S+     0:00 sed -e /^$/N;/\n$/D

Sending SIGHUP to process 15349 resulted:

/usr/sbin/update-exim4.conf: line 250: 15349 Hangup                  grep -E -v '^[[:space:]]*#'
     15350                       | sed -e '/^$/N;/\n$/D'


I looked the (possibly generated) /usr/sbin/update-exim4.conf, and 
(although I didn't checked what it is doing really) I found the following 
code, which looks doubtful:

    276                         sed -e "s/DEBCONF[^D][^E][^B].*DEBCONF//g" \
    277                                 > ${UPEX4C_outputfile}.tmp
    278                 else
    279                         cat /etc/exim4/exim4.conf.template
    280                         removecomments | \
    281                         sed -e "s/DEBCONF[^D][^E][^B].*DEBCONF//g" \
    282                                 > ${UPEX4C_outputfile}.tmp
    283                 fi
    284                 mv -f ${UPEX4C_outputfile}.tmp ${UPEX4C_outputfile}
    285                 chmod ${CFILEMODE} ${UPEX4C_outputfile}
    286                 [ "${UPEX4C_verbose}" = "yes" ] && \

I suspect that from the end of line 279 the "| \" string is missing.

I hope it was not me who made something silly... Regards:
Ferenc Engard

-- Package-specific info:
Exim version 4.50 #1 built 03-Apr-2005 07:22:57
Copyright (c) University of Cambridge 2004
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Support for: iconv() IPv6 GnuTLS
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Configuration file is /var/lib/exim4/config.autogenerated
# /etc/exim4/update-exim4.conf.conf
#
# Edit this file and /etc/mailname by hand and execute update-exim4.conf
# yourself or use 'dpkg-reconfigure exim4-config'
#
# Please note that this is _not_ a dpkg-conffile and that automatic changes
# to this file might happen. The code handling this will honor your local
# changes, so this is usually fine, but will break local schemes that mess
# around with multiple versions of the file.
#
# update-exim4.conf uses this file to determine variable values to replace
# the DEBCONFsomethingDEBCONF strings in the configuration template files.
#
# Most settings found in here do have corresponding questions in the
# Debconf configuration, but not all of them.
#
# This is a Debian specific file

dc_eximconfig_configtype='exim3manual'
dc_other_hostnames='domesticus:domesticus.fery-local.hu:circum-local.hu:valami.hu'
dc_local_interfaces=''
dc_readhost=''
dc_relay_domains='fery-local.hu'
dc_minimaldns='false'
dc_relay_nets='192.168.0.0/16'
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='false'
dc_mailname_in_oh='false'
mailname:linuxserver

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i586)
Kernel: Linux 2.6.6
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages exim4-daemon-light depends on:
ii  exim4-base                  4.50-5       support files for all exim MTA (v4
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libdb4.2                    4.2.52-18    Berkeley v4.2 Database Libraries [
ii  libgnutls11                 1.0.16-13    GNU TLS library - runtime library
ii  libpcre3                    5.0-1        Perl 5 Compatible Regular Expressi

-- no debconf information