[pkg-firebird-general] Stable package firebird2.0-super ( support preseed ?

Damyan Ivanov dam at modsoftsys.com
Sat Jan 10 19:36:39 UTC 2009

-=| Lucas Brasilino, Sat, Jan 10, 2009 at 04:03:56PM -0200 |=-
> Dear maintainer:
> For a while I've been looking around to make firebird2.0-super from
> backports work
> with preseed in a Debian Etch Custom CD.
> After looking 'config' file, it states that
> shared/firebird/sysdba_password/first_install value
> goes to the hidden template shared/firebird/sysdba_password/new_password.
> So I did in my preseed file:
> firebird2.0-super shared/firebird/enabled boolean true
> firebird2.0-super shared/firebird/sysdba_password/first_install password qwerty
> firebird2.0-super shared/firebird/purge_databases boolean false
> firebird2.0-super shared/firebird/purge_security boolean false
> But SYSDBA.password file is not created and ENABLE_SUPER_SERVER does
> not turn to 'yes'.  After playing around, I've made a
> script like:
> #!/bin/sh -e
> set -e
> . /usr/share/debconf/confmodule
> set -u
> # Source LSB function library.
> . /lib/lsb/init-functions
> FB_VER="2.0"
> FB_FLAVOUR="super"
> . /usr/share/firebird${FB_VER}-common/functions.sh
> # query debconf backend
> askForDBAPassword
> And it _does_ creates SYSDBA.password file with the default password
> (masterkey).
> It seems that first it isn't running postinst and somehow not getting
> values from templates.....
> When I use 'dpkg-reconfigure firebird2.0-super' things goes right.
> Am I messing something or it's a bug??

It is a bug in the .config script. It gets the default value for the 
'enabled' setting based on the current state of the default file, and 
if the default file is missing, a hardcoded 'false' value is used.

This all starts around line 37 of the .config.

The right fix would be in the case default file is missing to try to 
get the default value from debconf (which could be preseeded), and 
only if that fails, use 'false'.

If you can provide a patch (preferably against the master branch of 
the git repository at git://git.debian.org/git/pkg-firebird/2.0.git), 
that would be very welcome.

dam            JabberID: dam at jabber.minus273.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-firebird-general/attachments/20090110/ea040d2b/attachment.pgp 

More information about the pkg-firebird-general mailing list