[Pkg-sympa-devel] Bug#631162: sympa: Package will not configure if dbconfig-common is not used
Michael Howe
michael at michaelhowe.org
Mon Jun 20 21:24:27 UTC 2011
Package: sympa
Version: 6.0.1+dfsg-4
Severity: important
Hello,
When installing, sympa prompts whether to use dbconfig-common or not.
If you select not to, the installation then fails, leaving the package
partially configured:
dbconfig-common: writing config to /etc/dbconfig-common/sympa.conf
Creating config file /etc/dbconfig-common/sympa.conf with new version
Unknown database type .
dpkg: error processing sympa (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
sympa
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up sympa (6.0.1+dfsg-4) ...
dbconfig-common: writing config to /etc/dbconfig-common/sympa.conf
Unknown database type .
dpkg: error processing sympa (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
sympa
Looking at the postinst script, it looks like it's the following that's
causing the installation to fail:
name=$dbc_dbname
case "$dbc_dbtype" in
mysql)
type=mysql;;
pgsql)
type=Pg;;
sqlite*)
type=SQLite;
name="$dbc_basepath/$dbc_dbname";;
*)
echo "Unknown database type $dbc_dbtype.";
exit 1;;
esac
However, since I chose not to use dbconfig-common, I don't think that
this should be being called.
Trying to run dpkg --configure simply ends up with the postinst script
exiting, so it's impossible to get the package out of the 'partially
configured' state, hence the severity of 'important'.
Unfortunately, I'm not particularly familiar with postinst scripts, and
so haven't tried to provide a patch, but would it be possible/sensible
to test if dbconfig-install was set, and if not, skip the translation of
dbconfig-common parameters to sympa's configuration values?
Cheers,
Michael
-- System Information:
Debian Release: 6.0.1
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages sympa depends on:
ii adduser 3.112+nmu2 add and remove users and groups
ii dbconfig-common 1.8.46+squeeze.0 common framework for packaging dat
ii debconf [debconf-2.0] 1.5.36.1 Debian configuration management sy
ii exim4-daemon-light [ma 4.72-6+squeeze2 lightweight Exim MTA (v4) daemon
ii libarchive-zip-perl 1.30-3 Perl module for manipulation of ZI
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libcgi-fast-perl 5.10.1-17squeeze1 CGI::Fast Perl module
ii libcgi-pm-perl 3.49-1squeeze1 module for Common Gateway Interfac
ii libcrypt-ciphersaber-p 0.61-4 Perl module implementing CipherSab
ii libdbd-mysql-perl 4.016-1 Perl5 database interface to the My
ii libdbd-pg-perl 2.17.1-2 Perl DBI driver for the PostgreSQL
ii libdbd-sqlite3-perl 1.29-3 Perl DBI driver with a self-contai
ii libdbi-perl 1.612-1 Perl Database Interface (DBI)
ii libfile-copy-recursive 0.38-1 Perl extension for recursively cop
ii libhtml-format-perl 2.04-2 format HTML syntax trees into text
ii libhtml-stripscripts-p 1.03-1 module to filter scripts out of HT
ii libhtml-tree-perl 3.23-2 Perl module to represent and creat
ii libintl-perl 1.20-1 Uniforum message translations syst
ii libio-stringy-perl 2.110-4 Perl modules for IO from scalars a
ii libmailtools-perl 2.06-1 Manipulate email in perl programs
ii libmime-charset-perl 1.008-1 Perl module for MIME character set
ii libmime-encwords-perl 1.012-1 Perl interface to deal with RFC 20
ii libmime-lite-html-perl 1.23-1 Transform HTML page into MIME emai
ii libmime-tools-perl [li 5.428-1 Perl5 modules for MIME-compliant m
ii libmsgcat-perl 1.03-5 Locale::Msgcat perl module
ii libnet-ldap-perl 1:0.4001-2 client interface to LDAP servers
ii libnet-netmask-perl 1.9015-4 parse, manipulate and lookup IP ne
ii libregexp-common-perl 2010010201-1 module with common regular express
ii libtemplate-perl 2.22-0.1 template processing system written
ii libterm-progressbar-pe 2.09-6 Perl module to print a progress ba
ii libxml-libxml-perl 1.70.ds-1 Perl interface to the libxml2 libr
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii mhonarc 2.6.16-1 Mail to HTML converter
ii perl 5.10.1-17squeeze1 Larry Wall's Practical Extraction
ii perl-modules [libcgi-p 5.10.1-17squeeze1 Core Perl modules
ii perl-suid 5.10.1-17squeeze1 runs setuid Perl scripts
ii sqlite 2.8.17-6 command line interface for SQLite
ii sqlite3 3.7.3-1 A command line interface for SQLit
ii sysklogd [system-log-d 1.5-6 System Logging Daemon
Versions of packages sympa recommends:
ii ca-certificates 20090814+nmu2 Common CA certificates
ii doc-base 0.9.5 utilities to manage online documen
ii locales 2.11.2-10 Embedded GNU C Library: National L
ii logrotate 3.7.8-6 Log rotation utility
pn mysql-server | postgresql <none> (no description available)
Versions of packages sympa suggests:
pn apache2 | httpd-cgi <none> (no description available)
pn libapache2-mod-fcgid <none> (no description available)
ii libsoap-lite-perl 0.712-2 Perl implementation of a SOAP clie
ii openssl 0.9.8o-4squeeze1 Secure Socket Layer (SSL) binary a
-- Configuration Files:
/etc/sympa/sympa.conf-smime.in [Errno 13] Permission denied: u'/etc/sympa/sympa.conf-smime.in'
-- debconf information:
* sympa/dbconfig-install: false
sympa/listmaster: listmaster at zarquon.internal.michaelhowe.org
wwsympa/wwsympa_url: http://zarquon.internal.michaelhowe.org/wws
* wwsympa/webserver_restart: true
sympa/upgrade-backup: true
sympa/pgsql/changeconf: false
sympa/internal/skip-preseed: true
sympa/remote/host:
sympa/internal/reconfiguring: false
sympa/remove-error: abort
* wwsympa/webserver_type: Apache 2
sympa/dbconfig-remove:
sympa/mysql/method: unix socket
sympa/language: en_US
sympa/pgsql/method: unix socket
sympa/install-error: abort
sympa/pgsql/no-empty-passwords:
sympa/pgsql/authmethod-admin: ident
sympa/passwords-do-not-match:
sympa/missing-db-package-error: abort
sympa/remove_spool: false
sympa/remote/newhost:
sympa/pgsql/manualconf:
sympa/remote/port:
sympa/hostname: zarquon.internal.michaelhowe.org
sympa/pgsql/authmethod-user: password
sympa/dbconfig-upgrade: true
sympa/use_soap: false
sympa/db/dbname:
sympa/database-type:
sympa/db/basepath:
wwsympa/fastcgi: false
sympa/db/app-user:
sympa/purge: false
sympa/mysql/admin-user: root
sympa/dbconfig-reinstall: false
sympa/pgsql/admin-user: postgres
sympa/upgrade-error: abort
wwsympa/remove_spool: false
More information about the Pkg-sympa-devel
mailing list