Debian Bug report logs - #668446
dia: leaves alternatives after purge

version graph

Packages: dia, dia-gnome; Maintainer for dia is Philippe SWARTVAGHER <phil.swart@gmx.fr>; Source for dia is src:dia (PTS, buildd, popcon). Maintainer for dia-gnome is (unknown);

Reported by: Andreas Beckmann <debian@abeckmann.de>

Date: Wed, 11 Apr 2012 21:18:07 UTC

Severity: important

Found in version 0.97.2-7

Fixed in version dia/0.97.2-8

Done: Roland Stigge <stigge@antcom.de>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Dia Team <pkg-dia-team@lists.alioth.debian.org>:
Bug#668446; Package dia,dia-gnome. (Wed, 11 Apr 2012 21:18:23 GMT) (full text, mbox, link).


Acknowledgement sent to Andreas Beckmann <debian@abeckmann.de>:
New Bug report received and forwarded. Copy sent to Debian Dia Team <pkg-dia-team@lists.alioth.debian.org>. (Wed, 11 Apr 2012 21:18:26 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Andreas Beckmann <debian@abeckmann.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dia: leaves alternatives after purge
Date: Wed, 11 Apr 2012 23:16:31 +0200
[Message part 1 (text/plain, inline)]
Package: dia,dia-gnome
Version: 0.97.2-7
Severity: important
User: debian-qa@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package left unowned files on
the system after purge, which is a violation of policy 6.8:

http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-removedetails

The leftover files are actually alternatives that were installed by the
package but have not been properly removed.

While there is ongoing discussion how to remove alternatives correctly
(see http://bugs.debian.org/71621 for details) the following strategy
should work for regular cases:
* 'postinst configure' always installs the alternative
* 'prerm remove' removes the alternative
* 'postrm remove' and 'postrm disappear' remove the alternative
In all other cases a maintainer script is invoked (e.g. upgrade,
deconfigure) the alternatives are not modified to preserve user
configuration.
Removing the alternative in 'prerm remove' avoids having a dangling link
once the actual file gets removed, but 'prerm remove' is not called in
all cases (e.g. deconfigured or disappearing packages) so the postrm
must remove the alternative again (update-alternatives gracefully
handles removal of non-existing alternatives).

Note that the arguments for adding and removing alternatives differ, for
removal it's 'update-alternatives --remove <name> <path>'.

Filing this as important as having a piuparts clean archive is a release
goal since lenny.

>From the attached log (scroll to the bottom...):

0m37.6s ERROR: WARN: Broken symlinks:
  /usr/bin/dia -> /etc/alternatives/dia
  /etc/alternatives/dia -> /usr/bin/dia-normal-integrated

0m39.4s ERROR: FAIL: Package purging left files on system:
  /etc/alternatives/dia	 not owned
  /usr/bin/dia	 not owned

(and similarly for dia-gnome)


cheers,

Andreas
[dia_0.97.2-7.log.gz (application/x-gzip, attachment)]

Reply sent to Roland Stigge <stigge@antcom.de>:
You have taken responsibility. (Fri, 13 Apr 2012 23:33:09 GMT) (full text, mbox, link).


Notification sent to Andreas Beckmann <debian@abeckmann.de>:
Bug acknowledged by developer. (Fri, 13 Apr 2012 23:33:09 GMT) (full text, mbox, link).


Message #10 received at 668446-close@bugs.debian.org (full text, mbox, reply):

From: Roland Stigge <stigge@antcom.de>
To: 668446-close@bugs.debian.org
Subject: Bug#668446: fixed in dia 0.97.2-8
Date: Fri, 13 Apr 2012 23:32:22 +0000
Source: dia
Source-Version: 0.97.2-8

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

dia-common_0.97.2-8_all.deb
  to main/d/dia/dia-common_0.97.2-8_all.deb
dia-gnome_0.97.2-8_i386.deb
  to main/d/dia/dia-gnome_0.97.2-8_i386.deb
dia-libs_0.97.2-8_i386.deb
  to main/d/dia/dia-libs_0.97.2-8_i386.deb
dia_0.97.2-8.debian.tar.gz
  to main/d/dia/dia_0.97.2-8.debian.tar.gz
dia_0.97.2-8.dsc
  to main/d/dia/dia_0.97.2-8.dsc
dia_0.97.2-8_i386.deb
  to main/d/dia/dia_0.97.2-8_i386.deb



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 668446@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Roland Stigge <stigge@antcom.de> (supplier of updated dia 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 ftpmaster@debian.org)


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

Format: 1.8
Date: Fri, 13 Apr 2012 23:47:21 +0200
Source: dia
Binary: dia-common dia-libs dia dia-gnome
Architecture: source all i386
Version: 0.97.2-8
Distribution: unstable
Urgency: low
Maintainer: Debian Dia Team <pkg-dia-team@lists.alioth.debian.org>
Changed-By: Roland Stigge <stigge@antcom.de>
Description: 
 dia        - Diagram editor
 dia-common - Diagram editor (common files)
 dia-gnome  - Diagram editor (GNOME version)
 dia-libs   - Diagram editor (library files)
Closes: 668446
Changes: 
 dia (0.97.2-8) unstable; urgency=low
 .
   * Fixed pre/post rm/inst regarding update-alternatives (Closes: #668446)
Checksums-Sha1: 
 461df0aa3f5fdbca7c9ea0d4de278bcd7fa4b9f8 1604 dia_0.97.2-8.dsc
 a883358b07f56c6a903cc4d4b2d95906ca960be1 38414 dia_0.97.2-8.debian.tar.gz
 34290c2884f09db79b684de5b80e38d63c317ad5 6325942 dia-common_0.97.2-8_all.deb
 0b41f25c6115d1de3e4183e123f536c31bf5b969 913264 dia-libs_0.97.2-8_i386.deb
 8ecba823e92d8899b116f02265fb4d34ee6a106c 227060 dia_0.97.2-8_i386.deb
 8338e155122b19a1bd6fa86dae863739e213abe6 228020 dia-gnome_0.97.2-8_i386.deb
Checksums-Sha256: 
 a8e6d15af0fc9f92628b989ab95b6af3411740d2b989593b9faaed6df424eac9 1604 dia_0.97.2-8.dsc
 52e5144fdb007906e88296e90b804a7a4f2d6b923fa038302111aa5e69c0b7e8 38414 dia_0.97.2-8.debian.tar.gz
 c5ad0fc2e461c76bd3b3cefd7d0969cf506b193014601149ff7b584f66bc2878 6325942 dia-common_0.97.2-8_all.deb
 7022701c8b5cf16be8e591538c7fccc5a707a9fdcbfa839f7e0f1f5781edbc5f 913264 dia-libs_0.97.2-8_i386.deb
 5aab9bce1a850e22294f104eae57e6e773a1bba6ebfe693826eb42d0c99a6ea8 227060 dia_0.97.2-8_i386.deb
 f35626a9848abd4e6bb36451c432a57a513c1aca7ab7b01aa456883f592f87c4 228020 dia-gnome_0.97.2-8_i386.deb
Files: 
 3a6ca6182bcf87f14602d3f8f609e721 1604 graphics optional dia_0.97.2-8.dsc
 4fd1366069acc092c9b11e992d23b24d 38414 graphics optional dia_0.97.2-8.debian.tar.gz
 68bbc74defc7a064dda425396e22187a 6325942 graphics optional dia-common_0.97.2-8_all.deb
 1f5dfdf8312c66a63cbd85b180cd3aeb 913264 graphics optional dia-libs_0.97.2-8_i386.deb
 57bf0b084590701156205893d320d227 227060 graphics optional dia_0.97.2-8_i386.deb
 05c8dcd2e9acebff8e95ccc965745937 228020 gnome optional dia-gnome_0.97.2-8_i386.deb

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

iD8DBQFPiLKMcaH/YBv43g8RAm69AJ9zq9L+yeivqajmXVUBP/E3Za4YsgCgqfE1
/V93+1IafFqQSwcaICAYSlQ=
=ajU0
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 12 May 2012 07:38:05 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 08:15:33 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.