Bug#383267: postinst incorrectly concatenating apache/server-name with value
Package: apache
Version: 1.3.34-3
Followup-For: Bug #383267
I did a "set -x" on /var/lib/dpkg/info/apache.postinst
After doing the db_conf section, I noticed this:
>
>+ db_set apache/server-name apu.exley.net
>+ _db_cmd 'SET apache/server-name' apu.exley.net
>+ printf '%s\n' 'SET apache/server-nameapu.exley.net'
>+ IFS='
>'
>+ read -r _db_internal_line
>+ RET='10 apache/server-nameapu.exley.net doesn'\''t exist'
>+ case ${_db_internal_line%%[ ]*} in
>+ return 10
>dpkg: error processing apache (--configure):
> subprocess post-installation script returned error exit status 10
> Errors were encountered while processing:
> apache
...Looks to me like there's a missing space between var and value,
although I'm not sure
This bug also applies to apache-ssl which is failing with the same
problem (I don't know how to "link" the bug to two packages, my
apologies).
further checking shows the problem is in
/usr/share/apache/postinst.common, lines 163-184. The bug is manifested
by the call to db_set on line 186, but I think it's introduced in the
awk call in line 164. Actually, I'm not sure that the problem isn't in
_db_cmd itself
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (900, 'unstable'), (500, 'testing'), (200, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.2006010301
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) (ignored: LC_ALL set to en_GB)
Versions of packages apache depends on:
ii apache-common 1.3.34-3 support files for all Apache webse
ii debconf [debconf-2.0] 1.5.3 Debian configuration management sy
ii libc6 2.3.6-19 GNU C Library: Shared libraries
ii libdb4.4 4.4.20-7 Berkeley v4.4 Database Libraries [
ii libexpat1 1.95.8-3.2 XML parsing C library - runtime li
ii libmagic1 4.17-3 File type determination library us
ii logrotate 3.7.1-3 Log rotation utility
ii lsb-base 3.1-14 Linux Standard Base 3.1 init scrip
ii mime-support 3.37-1 MIME files 'mime.types' & 'mailcap
ii perl 5.8.8-6.1 Larry Wall's Practical Extraction
apache recommends no packages.
-- debconf information:
* apache/enable-suexec: true
* apache/server-name: apu.exley.net
* apache/document-root: /var/www
* apache/server-port: 80
* apache/init: true
* apache/server-admin: webmaster@apu.exley.net
Reply to: