Your message dated Tue, 30 May 2006 14:32:12 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#368714: fixed in dbconfig-common 1.8.14
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: dbconfig-common
Version: 1.8.13
Severity: normal

When there are no configuration files in /etc/dbconfig-common the config
maintainer script suffers an error as it does not check the result of a
shell expansion. 

The offending code is lines 199-202 of dpkg/config.

The root cause is that the expansion will return the literal string 
"/etc/dbconfig-common/*.conf" if it could not match any actual
configuration files. This string is then passed directly into
dbconfig-generate-include which generates an error as shown below:

Unpacking db-test-sqlite (from db-test-sqlite_2.0_all.deb) ...
Setting up db-test-sqlite (2.0) ...
unable to read input file /etc/dbconfig-common/*.conf
dpkg: error processing db-test-sqlite (--install):
 subprocess post-installation script returned error exit status 10

As the script is set -e this causes the installation to fail. 

The patch below offers one possible solution to the problem,
alternatively dbconfig common could run 'shopt -s nullglob' to request
bash returns an empty string when the expansion fails.

--- dpkg/config (revision 216)
+++ dpkg/config (working copy)
@@ -197,6 +197,7 @@
                        # package, and create a list of hosts.
                        _preconf_list=` (
                        for f in /etc/dbconfig-common/*.conf; do
+                               test -f $f || continue
                                eval \`dbconfig-generate-include --dbserver=_s 
$f | grep -v '^#'\`
                                [ "$_s" ] && echo $_s
                        done

Cheers


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-xen
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)

Versions of packages dbconfig-common depends on:
ii  debconf [debconf-2.0]         1.5.1      Debian configuration management sy
ii  pwgen                         2.05-1     Automatic Password generation
ii  ucf                           2.0010     Update Configuration File: preserv

dbconfig-common recommends no packages.

-- debconf information:
  dbconfig-common/internal/reconfiguring: false
  dbconfig-common/import-oldsettings:
  dbconfig-common/dbconfig-upgrade: true
  dbconfig-common/passwords-do-not-match:
  dbconfig-common/pgsql/authmethod-admin: ident
  dbconfig-common/pgsql/revertconf: false
  dbconfig-common/install-error: abort
  dbconfig-common/remove-error: abort
  dbconfig-common/db/dbname: ${pkg}
  dbconfig-common/pgsql/no-empty-passwords:
  dbconfig-common/mysql/method: unix socket
  dbconfig-common/remember-admin-pass: false
  dbconfig-common/pgsql/admin-user: postgres
  dbconfig-common/mysql/admin-user: root
  dbconfig-common/remote/host:
  dbconfig-common/pgsql/manualconf:
  dbconfig-common/pgsql/changeconf: false
  dbconfig-common/remote/newhost:
  dbconfig-common/dbconfig-install: true
  dbconfig-common/pgsql/method: unix socket
  dbconfig-common/pgsql/authmethod-user: ident
  dbconfig-common/upgrade-error: abort
  dbconfig-common/database-type:
  dbconfig-common/dbconfig-remove: true
  dbconfig-common/db/app-user:
  dbconfig-common/pgsql/no-user-choose-other-method:
  dbconfig-common/remote/port:
  dbconfig-common/upgrade-backup: true
  dbconfig-common/performing_upgrade: false
  dbconfig-common/purge: false


--- End Message ---
--- Begin Message ---
Source: dbconfig-common
Source-Version: 1.8.14

We believe that the bug you reported is fixed in the latest version of
dbconfig-common, which is due to be installed in the Debian FTP archive:

dbconfig-common_1.8.14.dsc
  to pool/main/d/dbconfig-common/dbconfig-common_1.8.14.dsc
dbconfig-common_1.8.14.tar.gz
  to pool/main/d/dbconfig-common/dbconfig-common_1.8.14.tar.gz
dbconfig-common_1.8.14_all.deb
  to pool/main/d/dbconfig-common/dbconfig-common_1.8.14_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
sean finney <[EMAIL PROTECTED]> (supplier of updated dbconfig-common package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 30 May 2006 23:15:35 +0200
Source: dbconfig-common
Binary: dbconfig-common
Architecture: source all
Version: 1.8.14
Distribution: unstable
Urgency: low
Maintainer: sean finney <[EMAIL PROTECTED]>
Changed-By: sean finney <[EMAIL PROTECTED]>
Description: 
 dbconfig-common - common framework for packaging database applications
Closes: 366761 368219 368714
Changes: 
 dbconfig-common (1.8.14) unstable; urgency=low
 .
   [sean finney]
   * provide a new hint option dbc_sql_substitutions, which will pipe
     all provided sql files through the template-based substitution
     filter of dbconfig-generate-include before being processed
     (closes: #366761).
   * andrew mcmillan found a spelling error, so i ran aspell over all
     the documentation :)
   * provide a new hint option dbc_authmethod_user for the packager
     to provide the "sane default" for how the application's database
     user should authenticate for pgsql applications (closes: #368219).
     we'll soon provide a better (automagic) detection, but it shouldn't
     break things if you start using this feature before then.
   * extra sanity check for a glob that might not expand in some circumstances,
     from matt brown (closes: #368714).
   * more code consolidation, configfile-vs-debconf fixes, removal of some
     obsolete code/templates.
Files: 
 95104251f20d34f74c8a000912f03817 549 admin optional dbconfig-common_1.8.14.dsc
 59ab3aaa1a36f3fde2de169423046160 191793 admin optional 
dbconfig-common_1.8.14.tar.gz
 e7dfde39709730235f5d725c4ceaa410 343846 admin optional 
dbconfig-common_1.8.14_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEfLgdynjLPm522B0RAtUAAJ0bLF4y8sElFEZxSVW9yECp9n25UgCeLy8z
/awhh4Ne4q9Yv7DzLuNc5bE=
=KmLe
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to