[Pkg-openldap-devel] Bug#665199: slapd: fails to install, remove, distupgrade, and install again

Ryan Tandy ryan at nardis.ca
Sun Apr 9 05:56:24 UTC 2017


Fixing this for upgrades from jessie to stretch requires a jessie update 
as well, to dump out the databases upon remove.

The patches I intend to submit are attached. I would appreciate it a lot 
if anyone reading this could take the time to review and try to point 
out any edge cases I missed.

The changes are intentionally minimal. Some refactoring will probably be 
in order, but that can wait for buster.

The intended paths are:

- standard upgrades from jessie to stretch should not dump/reload the 
  databases needlessly
- remove-upgrade-install from jessie to stretch with the ppolicy schema 
  installed should succeed: the config should be dumped before remove so 
  that it can be updated and reloaded in postinst
- upgrades from current jessie to stretch should still work
- if preinst fails after dumping in prerm (for example because the 
  ppolicy check decides a manual update is required), and the upgrade is 
  retried, the second prerm should dump again and the updated data 
  should be used for the upgrade
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug665199-sid.patch
Type: text/x-diff
Size: 3848 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20170408/527dab60/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug665199-jessie.patch
Type: text/x-diff
Size: 3915 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20170408/527dab60/attachment-0001.patch>


More information about the Pkg-openldap-devel mailing list