[Dbconfig-common-devel] line 9: dbc_logline: command not found

Andreas Tille tillea at rki.de
Tue Mar 6 21:44:35 CET 2007


HI,

I try to debug package scripts using dbconfig common.
The <pkg>.config script looks like this:

#!/bin/sh -e
# config maintainer script for gnumed-server using dbconfig-common
DEBCONF_DEBUG=developer

export dbc_debug=1

PKG=gnumed-server-common

# source debconf stuff
. /usr/share/debconf/confmodule

echo `date`: $0 $@ >> /var/tmp/gnumed-server_inst.log

# source dbconfig-common shell library, and call the hook function
if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
     . /usr/share/dbconfig-common/dpkg/config.pgsql
     dbc_go ${PKG} $@
fi

echo `date`: $0 $@ >> /var/tmp/gnumed-server_inst.log

#DEBHELPER#

When I try to install a package containing this config script
I get the following error:

Preparing to replace gnumed-server-common 0.2.4.2-1 (using gnumed-server-common_0.2.4.2-1_all.deb) ...
(config) dbc_go() gnumed-server-common configure 0.2.4.2-1.
dbc_config() gnumed-server-common configure 0.2.4.2-1.
dbc_set_dbtype_defaults().
dbc_register_debconf().
dbc_read_package_config().
dbc_preseed_package_debconf().
dbc_read_package_debconf().
dbc_set_dbtype_defaults() pgsql.
settings determined from dbc_read_package_debconf:.
         dbc_install=true.
         dbc_upgrade=true.
         dbc_remove=.
         dbc_dbtype=pgsql.
         dbc_dbuser=gnumedservercommon.
         dbc_dbpass=8zVL4DIks4P8.
         dbc_dbadmin=postgres.
         dbc_dbadmpass=.
         dbc_dbserver=.
         dbc_dbport=.
         dbc_dbname=gnumedservercommon.
         dbc_authmethod_admin=ident.
         dbc_authmethod_user=ident.
         dbc_ssl=.
dbc_get_app_pass().
/usr/share/dbconfig-common/dpkg/preinst: line 9: dbc_logline: command not found
dpkg: error processing gnumed-server-common_0.2.4.2-1_all.deb (--install):
  subprocess pre-installation script returned error exit status 127
(postrm) dbc_go() gnumed-server-common abort-upgrade 0.2.4.2-1.
dbc_config() gnumed-server-common abort-upgrade 0.2.4.2-1.
dbc_set_dbtype_defaults().
Errors were encountered while processing:
  gnumed-server-common_0.2.4.2-1_all.deb


The "critical" line 9 just wants me to say

    dbc_logline "W: use of dbc preinst hooks is now unnecesary and deprecated"

which does not seem to be a show stopper for my purpose but a bug of
dbconfig common in any case.

Kind regards

          Andreas.

-- 
http://fam-tille.de



More information about the Dbconfig-common-devel mailing list