Your message dated Thu, 16 Jul 2015 12:04:42 +0000
with message-id <[email protected]>
and subject line Bug#518322: fixed in debconf 1.5.57
has caused the Debian Bug report #518322,
regarding debconf: db_register broken in corner case.
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
518322: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=518322
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debconf
Version: 1.5.25
Severity: normal

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

hi,

i have a corner case scenario where i think db_register gets broken.

to reproduce:

- - install package A the includes some "source" templates
- - install package B that registers the templates via db_register
- - remove (w/out purge) package B
- - remove (--purge) package A
- - install package A and package C, the latter of which uses db_register
  just like package B

at the last step, the templates are still in the database showing up with
owner as package B (should be B *and* A), but db_register does not seem
to find the template on subsequent calls.  purging all three packages
and reinstalling package A and package C gets things working again.


for some non-abstract context, package A == dbconfig-common, which
uses register extensively as part of automatic database configuration for
other packages.  if package B were one webapp, and package C another, the
result is that the automatic database configuration is broken until all
packages (and others) are purged and reinstalled.

i'm going to go out on a limb and say that there's a bug with either:

- - when A is purged, all of A's templates should be purged, including those 
  registered by other packages, (which if they are sane must be in
  rcfiles state or on the way to being removed/purged themselves) should
  be purged.

- - when a package is installed and first imports its templates into debconf,
  some extra support must be added to overwrite/merge with a template that
  has the same name but different owner.

i guess i'd side with the former, since "debconf is a cache" and all that.


in retrospect i'm quite surprised that dbconfig-common handles this as
gracefully as it does:

+ db_register dbconfig-common/database-type cacti/database-type
debconf (developer): <-- REGISTER dbconfig-common/database-type 
cacti/database-type
debconf (developer): --> 10 No such template, "dbconfig-common/database-type"
+ return 1
+ _dbc_debug 'dbconfig-common not yet setup, deferring configuration.'
+ '[' insane ']'
+ dbc_logline 'dbconfig-common not yet setup, deferring configuration.'
+ printf 'dbconfig-common not yet setup, deferring configuration..\n'
dbconfig-common not yet setup, deferring configuration..

i.e. the package installs but with broken configuration.  because of this
and because it's such an exotic corner case i'm keeping severity at normal :)


        sean



- -- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debconf depends on:
ii  debconf-i18n                  1.5.25     full internationalization support 
ii  perl-base                     5.10.0-19  minimal Perl system

Versions of packages debconf recommends:
ii  apt-utils                     0.7.20.2   APT utility programs

Versions of packages debconf suggests:
ii  debconf-doc                  1.5.25      debconf documentation
ii  debconf-utils                1.5.25      debconf utilities
ii  gnome-utils                  2.20.0.1-3  GNOME desktop utilities
ii  libgnome2-perl               1.042-1+b1  Perl interface to the GNOME librar
pn  libnet-ldap-perl             <none>      (no description available)
pn  libqt-perl                   <none>      (no description available)
pn  libterm-readline-gnu-perl    <none>      (no description available)
ii  perl                         5.10.0-19   Larry Wall's Practical Extraction 
ii  whiptail                     0.52.2-11.3 Displays user-friendly dialog boxe

- -- debconf information:
  debconf-apt-progress/title:
  debconf-apt-progress/info:
* debconf/priority: medium
  debconf-apt-progress/preparing:
  debconf-apt-progress/media-change:
* debconf/frontend: Dialog

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

iD8DBQFJr8vGynjLPm522B0RAm3lAJ9Ail1qIEnWoTEmgpvhcA13iGIdiQCdFlOZ
Nj4I3C6PFkhuJS6TfvowAhU=
=Vtku
-----END PGP SIGNATURE-----



--- End Message ---
--- Begin Message ---
Source: debconf
Source-Version: 1.5.57

We believe that the bug you reported is fixed in the latest version of
debconf, which is due to be installed in the Debian FTP archive.

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.
Colin Watson <[email protected]> (supplier of updated debconf 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: SHA256

Format: 1.8
Date: Thu, 16 Jul 2015 12:33:36 +0100
Source: debconf
Binary: debconf debconf-i18n debconf-doc debconf-utils
Architecture: source all
Version: 1.5.57
Distribution: unstable
Urgency: medium
Maintainer: Debconf Developers <[email protected]>
Changed-By: Colin Watson <[email protected]>
Description:
 debconf    - Debian configuration management system
 debconf-doc - debconf documentation
 debconf-i18n - full internationalization support for debconf
 debconf-utils - debconf utilities
Closes: 518322 779920 783255 785464 786705 792219
Changes:
 debconf (1.5.57) unstable; urgency=medium
 .
   [ Colin Watson ]
   * Drop alternative Suggests on gnome-utils (closes: #792219).  It hasn't
     existed since squeeze, it dropped gdialog in 2003, and debconf only
     supported gdialog for about three weeks in 1999 anyway.
   * Escape braces in regexes to avoid deprecation warning with Perl 5.22
     (closes: #786705).
   * When creating a new template and finding that it already exists in the
     database, ensure that a question of the same name exists too (closes:
     #518322, #779920).
 .
   [ Jérémy Bobbio ]
   * Use UTC when running xgettext for build reproducibility. Closes: #783255
 .
   [ Debconf translations ]
   * Brazilian Portuguese (Adriano Rafael Gomes). Closes: #785464
Checksums-Sha1:
 c1dbcdc6be9a16a4cb634b2d56937f90e528ecbc 1977 debconf_1.5.57.dsc
 1f05243e3f82242c03346bb42e2e69fdafda225a 1004461 debconf_1.5.57.tar.gz
 c625f1612bd2f12de90a818455abbf9a2070de88 316832 debconf-doc_1.5.57_all.deb
 b9a4810ab438344d8b8c1da6ca2258a075ab2ccb 205686 debconf-i18n_1.5.57_all.deb
 1b1a937064141f4e810865cf3a899249ccb8bf8c 57428 debconf-utils_1.5.57_all.deb
 165555049a3e66413b56aed6b0eb8edcb68ad82f 159724 debconf_1.5.57_all.deb
Checksums-Sha256:
 c0ec5dcd504ba94c03aa7622fcc431c44deeed4538cdf400eb29dad1dae5ed58 1977 
debconf_1.5.57.dsc
 d6affeee002fd5d6afec47ab8d53f33756ae9a79e689150cb14448c463dd80b0 1004461 
debconf_1.5.57.tar.gz
 d4f8757b0fb1087678b97457087aae4afa3eb724de1bdfe7fe1fab0b8f872dd5 316832 
debconf-doc_1.5.57_all.deb
 aa93f8fcd8a388a4f3b4a57f57a0da610950cbe099813d05f8cf065ca76f2b2c 205686 
debconf-i18n_1.5.57_all.deb
 22807d587db3bb7819ae3fe47d0aadec2953dd60e81b2b5950172efacc11af39 57428 
debconf-utils_1.5.57_all.deb
 195ebd9933b42f6bb14a8c850941d7abdc50b066f878c28d8d99be035f9538f2 159724 
debconf_1.5.57_all.deb
Files:
 b91e192665b476545b71d5f2621d9b6d 1977 admin optional debconf_1.5.57.dsc
 bac3916811a6c625bf209f53f1792bfe 1004461 admin optional debconf_1.5.57.tar.gz
 f6cb90fede696aa343a999a6b5c9c41d 316832 doc optional debconf-doc_1.5.57_all.deb
 eff95675d6b15c5700afd0f16011fa4f 205686 localization important 
debconf-i18n_1.5.57_all.deb
 f4f521fa9d9099ad14bcc0029137bcb3 57428 devel optional 
debconf-utils_1.5.57_all.deb
 5a8359450ac4325fc8870c5fdcdfd2f3 159724 admin important debconf_1.5.57_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Colin Watson <[email protected]> -- Debian developer

iQIVAwUBVaec0Dk1h9l9hlALAQjsKg//SFV0fydScmXYi6yf4Vhu9S3m8pW496In
yLCvOY+NLk8W8fjuo7sPT8mVq3iOj387kJWjSpAAXjB1mRdZaQvrYp89hIYdmTUh
Kj0E1RNWGxPpmnEab0VPGzszHJHoFbn9m+bTq0BBktBLBvuYtOOxWUXptiR+YoBl
sHkFu3E7ca2tKccQd2cSkLTbn/BScDAt8rlvQpJmZb75UNRnoLxhydcXpVKxn5Yb
5uDkuJt1j77pFSmsQGQlQ1ogcdvyTpCINrnENQbMs/sZm6UjkzTCWoTVY9TQDbqY
wttrhkz7SIjlBgx2l2uRHC0FQO+dG56k6tEUEgc2fVSDAs/+F/MPjQ4MYReY+cje
zKkbSDPqxEV6TqVjzbTm8DzEe7qdfhA18ptC60Ew+zLGGuTFoVAVcWjPlgO4qxAI
FVFhH7gSEsTqh9dRgVgqzqgDSCwo+0Cwe3aFW0q045b9e9420jPxvLx46+6YjYvC
RIafY3F+1b3yNNwYXKhpbBVAKt5CU09AVLSasFrqumYvWGUKaOCVJrvebg3xXhdw
6COq+A6lVjsQNVEmrsJTVTgkWPz6e6HZ28EbkvD0L4/Tz8AmOhXW5vUn5KykX+Q4
JBwu5fYTf9RGkQxNUen2KcF5H4+lkN7CAujcJ97cAYcgAO5LPH8MCt0ajc7n9gRO
nvpCc2Xu/AE=
=12tw
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to