Bug#383267: postinst incorrectly concatenating apache/server-name with value

2006-08-16 Thread Matthew Exley
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-3Log 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: [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#308591: apache-ssl: 1.3.33-5 won't install: Template parse error near `www-sivut.`

2005-05-11 Thread Matthew Exley
Package: apache-ssl
Version: 1.3.33-5
Severity: grave
Justification: renders package unusable


Output from dpkg --configure apache-ssl:

Setting up apache-ssl (1.3.33-5) ...
Template parse error near `www-sivut.', in stanza #5 of 
/var/lib/dpkg/info/apache-ssl.templates
dpkg: error processing apache-ssl (--configure):
 subprocess post-installation script returned error exit status 255
Errors were encountered while processing:
 apache-ssl




-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.9.2010043
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) (ignored: LC_ALL set to 
en_GB)

Versions of packages apache-ssl depends on:
ii  apache-common   1.3.33-5 support files for all Apache webse
ii  debconf 1.4.49   Debian configuration management sy
ii  dpkg1.10.27  Package maintenance system for Deb
ii  libc6   2.3.2.ds1-21 GNU C Library: Shared libraries an
ii  libdb4.24.2.52-18Berkeley v4.2 Database Libraries [
ii  libexpat1   1.95.8-3 XML parsing C library - runtime li
ii  libmagic1   4.12-1   File type determination library us
ii  libssl0.9.7 0.9.7g-1 SSL shared libraries
ii  logrotate   3.7-2Log rotation utility
ii  mime-support3.33-1   MIME files 'mime.types'  'mailcap
ii  openssl 0.9.7g-1 Secure Socket Layer (SSL) binary a
ii  perl5.8.4-8  Larry Wall's Practical Extraction 
ii  ssl-cert1.0-11   Simple debconf wrapper for openssl

-- debconf information:
* apache-ssl/server-name: apu.exley.net
* apache-ssl/enable-suexec: false
* apache-ssl/document-root: /var/www
* apache-ssl/server-admin: [EMAIL PROTECTED]
* apache-ssl/init: true


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#308591: PATCH for apache-ssl.templates

2005-05-11 Thread Matthew Exley
Package: apache-ssl
Version: 1.3.33-5
Followup-For: Bug #308591


OK, here's a short patch which fixes the problem and lets it be
installed, although since I don't read Finnish I've got no idea whether
I've changed the semantics behind the entry:

--- apache-ssl.templates.org2005-05-11 11:54:52.521381145 +0100
+++ apache-ssl.templates2005-05-11 11:55:57.060602985 +0100
@@ -244,8 +244,7 @@
  El valor por omisión es establecer este valor a /var/www, en concordancia
  con el FHS. Si va a utilizar un valor distinto a éste los contenidos de
  /var/www NO serán modificados o movidos.
-Description-fi.ISO-8859-15: Aseta hakemisto, joka sisältää oletusarvoisen 
apache-ssl-palvelimen
-www-sivut.
+Description-fi.ISO-8859-15: Aseta hakemisto, joka sisältää oletusarvoisen 
apache-ssl-palvelimen www-sivut.
  Oletuksena käytetään tiedostojärjestelmähierarkian (FHS) mukaisesti
  hakemistoa /var/www. Jos käytät jotain muuta asetusta, hakemiston
  /var/www sisältöön EI kosketa.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]