Hi!  I think the following fix for this bug has broken some packages:

--- dbconfig-common-1.8.24/dpkg/common  2006-08-31 05:55:06.000000000 -0700
+++ dbconfig-common-1.8.25/dpkg/common  2006-10-10 02:31:03.000000000 -0700
@@ -218,8 +218,16 @@ dbc_preseed_package_debconf(){
 
        # set the dbtype
        db_set $dbc_package/database-type "$dbc_dbtype"
+       
+       # the following db-specific settings always need to be preseeded, even
+       # if we don't know that we're configuring for the given database type
+       #
+       # set the psql authentication method
+       db_set $dbc_package/pgsql/authmethod-admin "$dbc_authmethod_admin"
+       db_set $dbc_package/pgsql/authmethod-user "$dbc_authmethod_user"


Seen while installing torrentflux:

-e dbc_preseed_package_debconf().
debconf (developer): <-- SET torrentflux/dbconfig-install true
debconf (developer): --> 0 value set
debconf (developer): <-- SET torrentflux/dbconfig-upgrade true
debconf (developer): --> 0 value set
debconf (developer): <-- SET torrentflux/dbconfig-remove 
debconf (developer): --> 0 value set
debconf (developer): <-- SET torrentflux/database-type mysql
debconf (developer): --> 0 value set
debconf (developer): <-- SET torrentflux/pgsql/authmethod-admin 
debconf (developer): --> 10 torrentflux/pgsql/authmethod-admin doesn't exist
dpkg: error processing torrentflux (--configure):
 subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
 torrentflux
E: Sub-process /usr/bin/dpkg returned an error code (1)

It seems that the pgsql-specific stuff wasn't registered for the 
mysql-only program.  Based on what this was supposed to fix, should 
pgsql/authmethod-* go into the standard templates?

(possible patch attached)

-- 
Kees Cook                                            @outflux.net
diff -uNrp dbconfig-common-1.8.25-kees/dpkg/common 
dbconfig-common-1.8.25/dpkg/common
--- dbconfig-common-1.8.25-kees/dpkg/common     2006-10-13 16:42:18.314741468 
-0700
+++ dbconfig-common-1.8.25/dpkg/common  2006-10-10 02:31:03.000000000 -0700
@@ -31,13 +31,13 @@ dbc_config(){
        ### some internal variables
        ###
        # templates common to all database types
-       dbc_standard_templates="database-type dbconfig-install dbconfig-upgrade 
dbconfig-remove dbconfig-reinstall password-confirm app-password-confirm purge 
upgrade-backup passwords-do-not-match install-error upgrade-error remove-error 
internal/reconfiguring pgsql/authmethod-admin pgsql/authmethod-user"
+       dbc_standard_templates="database-type dbconfig-install dbconfig-upgrade 
dbconfig-remove dbconfig-reinstall password-confirm app-password-confirm purge 
upgrade-backup passwords-do-not-match install-error upgrade-error remove-error 
internal/reconfiguring"
 
        # templates common to mysql database types
        dbc_mysql_templates="mysql/method remote/host remote/newhost 
mysql/app-pass mysql/admin-user mysql/admin-pass remote/port db/dbname 
db/app-user"
 
        # templates common to postgresql database types
-       dbc_pgsql_templates="pgsql/method remote/host remote/newhost 
pgsql/app-pass pgsql/admin-user pgsql/admin-pass remote/port pgsql/changeconf 
pgsql/manualconf db/dbname db/app-user pgsql/no-empty-passwords"
+       dbc_pgsql_templates="pgsql/method remote/host remote/newhost 
pgsql/app-pass pgsql/admin-user pgsql/admin-pass remote/port 
pgsql/authmethod-admin pgsql/authmethod-user pgsql/changeconf pgsql/manualconf 
db/dbname db/app-user pgsql/no-empty-passwords"
 
        # templates common to sqlite database types
        dbc_sqlite_templates="db/dbname db/basepath"

Reply via email to