Bug#664729: cyrus-sasl2-heimdal-dbg: fails to purge after lenny->squeeze->wheezy upgrade: diversions not removed

Andreas Beckmann anbe at debian.org
Wed Jan 29 20:18:59 UTC 2014


On 2014-01-29 16:36, Roberto C. Sánchez wrote:
> On Tue, Mar 20, 2012 at 12:40:13PM +0100, Andreas Beckmann wrote:
>>
>> during a test with piuparts I noticed your package fails to cleanup
>> properly when purging after an upgrade from lenny to squeeze to wheezy.
>> The upgrade worked fine, but after purging the package some ancient
>> diversions are left on the system.
>>
>>> >From the attached log (scroll to the bottom...):
>>
>> 2m25.4s ERROR: FAIL: Installed diversions (dpkg-divert) not removed by purge:
>>   diversion of /usr/lib/debug/usr/lib/sasl2/libgssapiv2.so.2.0.22 to /usr/lib/debug/usr/lib/sasl2/libgssapiv2.so.2.0.22.mit by cyrus-sasl2-heimdal-dbg
>>
>> Removal of this diversion was probably missed in the postinst configure
>> step of the version in squeeze, so it should be added for wheezy.
>>
> Hi Andreas,
> 
> I am going through some old cyrus-sasl2 bugs and trying to fix/close
> them.  As far as the issue you reported here, is this still in need of
> fixing?  I cannot find this diversion on my systems (since I have not
> used cyrus-sasl2-heimdal-dbg), even the ones that I installed with Woody
> ages ago and have upgraded since them.

I can easily reproduce this in piuparts.

> Since the release of Wheezy has come and gone and we are on to Jessie, I
> wonder if this issue affects enough systems to be worth fixing.

Please fix this for jessie, the fix should be rather trivial.

In postinst configure, you most probably want to do this:

dpkg-divert --remove --package cyrus-sasl2-heimdal-dbg --divert
/usr/lib/debug/usr/lib/sasl2/libgssapiv2.so.2.0.22.mit --rename
/usr/lib/debug/usr/lib/sasl2/libgssapiv2.so.2.0.22

(based on the preinst script in lenny, the postrm script seems wrong as
it is missing the --divert option).


Andreas



More information about the Pkg-cyrus-sasl2-debian-devel mailing list