[Debconf-devel] Bug#779920: debconf: questions sourced from a template owned by another package block purge/install of other package

Paul Gevers elbrus at debian.org
Fri Mar 6 12:38:05 UTC 2015


Package: debconf
Version: 1.5.24
Severity: normal
Control: blocks 578960 by -1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

dbconfig-common can not be purged and reinstalled correctly without
purging all reverse dependent packages. This has been reported against
dbconfig-common a long time ago (578960 and merged bugs), but I don't
believe that the bug is actually in dbconfig-common. To prevent the
the bug list of debconf to be "poluted" by the duplicates I file a new
bug against debconf which can just be closed if you really think this
is something that dbconfig-common should work around itself.

(Analysis from bug 578960 by Sean Finney) This is what happens:

dbconfig-common installs a collection of templates.  Example from
debconf config.dat cache file:

 Name: dbconfig-common/database-type 
 Template: dbconfig-common/database-type
 Owners: dbconfig-common

Later, someone installs a webapp (say, phpbb3), which registers a subset
of these packages from dbconfig-common.  Relevant entries in debconf
cache file:

 Name: dbconfig-common/database-type 
 Template: dbconfig-common/database-type
 Owners: dbconfig-common

 Name: phpbb3/database-type
 Template: dbconfig-common/database-type
 Value: 
 Owners: phpbb3
 Variables:
  database_types = mysql, pgsql, sqlite
  pkg = phpbb3

Later, both packages are removed, and even later dbconfig-common is
purged (but not phpbb3).  config.dat cache now contains:


 Name: phpbb3/database-type
 Template: dbconfig-common/database-type
 Value: 
 Owners: phpbb3
 Variables:
  database_types = mysql, pgsql, sqlite
  pkg = phpbb3

And the template still exists in templates.dat

And even later, dbconfig-common is reinstalled.  However, config.dat
cache is the same as before (i.e. no dbconfig-common/database-type ).

I'm guessing that the un-purged package with the registered copy of the
template is preventing dbconfig-common from properly setting up its own
debconf-stuff, and as pointed out it requires purging not just
dbconfig-common but all dbconfig-common using packages in order to get a
working behavior again.



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJU+Z+fAAoJEJxcmesFvXUK1kgH/Re8IcYt1oZviNFydLJ4zM0K
VlRAmH0vuW0uryCR/KOX8SrLc2yr7QkT8HmtmSuPYlwzr1Nb/1foQed7dgX3iZmP
iU7tD8kOP6d+KTcVFtzI/HwgJejxW3gkb6ZjZmo057tHfXQWkB0F20CU+IirXW0e
pI88BxyCcu+a8NqnpuXG3nJS94dPvEoOPHwMgYJN+QjuidX8HZYZQX7uI0o4aX4y
J+wwB64AZl1Z5ilq5O8rm7IoI81quMdAqdyynW6mK9NL39vlKbXy13ad/4g9z8ae
Qxntum8SliV8BW+1tm2nQvI97N0GIk5Q5FGM6QLEC7dnt6Z7+bXDDd3JzHmMA3I=
=d5lQ
-----END PGP SIGNATURE-----



More information about the Debconf-devel mailing list