Bug#665002: apache2-suexec-{custom, pristine}: leaves alternatives after purge: suexec, suexec.8.gz

2012-03-22 Thread Andreas Beckmann
Package: apache2-suexec-custom,apache2-suexec-pristine
Version: 2.4.1-2
Severity: important
User: debian...@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).

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

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

0m33.2s ERROR: WARN: Broken symlinks:
  /usr/share/man/man1/suexec.8.gz - /etc/alternatives/suexec.8.gz
  /usr/lib/apache2/suexec - /etc/alternatives/suexec
  /etc/alternatives/suexec.8.gz - /usr/share/man/man8/suexec-pristine.8.gz
  /etc/alternatives/suexec - /usr/lib/apache2/suexec-pristine

0m34.8s ERROR: FAIL: Package purging left files on system:
  /etc/alternatives/suexec   not owned
  /etc/alternatives/suexec.8.gz  not owned
  /usr/lib/apache2   owned by: apache2-suexec-pristine, apache2-bin
  /usr/lib/apache2/suexecnot owned
  /usr/share/man/man1/suexec.8.gznot owned


cheers,

Andreas


apache2-suexec-custom_2.4.1-2.log.gz
Description: GNU Zip compressed data


Bug#665002: apache2-suexec-{custom, pristine}: leaves alternatives after purge: suexec, suexec.8.gz

2012-03-22 Thread Arno Töll
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

tags 665002 +pending
fixed 665002 2.4.1-3
thanks

On 22.03.2012 10:46, Andreas Beckmann wrote:
 The leftover files are actually alternatives that were installed by
 the package but have not been properly removed.

Thanks for spotting this. I've fixed this in our latest trunk which
will presumably be released as 2.4.1-3.

- -- 
with kind regards,
Arno Töll
IRC: daemonkeeper on Freenode/OFTC
GnuPG Key-ID: 0x9D80F36D
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPaxCjAAoJEMcrUe6dgPNtakAQAMIxGDScWYvVfrlbe1TJKF/p
UQb+Ueq5+WiBrhiTcn0xZaOpnt976u5ROTreyAY9CfjIV159Gpfv9a/petDrxXBq
MHO/azDE51j4bONeY+GS9Twk5YCZ35kWYeqqRDXJMB/Ja+PoZyE10qi1FsuWfgT+
nfjfXZFJUnFqerxTk0NYt4dTdD/P8IgTEe7fEqYc4moWNtnGKey7PIkIT9EI+Mhs
8vd6q6GwV/SMD0ZEt9Dmxg87TaV+Elk78RDUWuuW7Q6X6Y3fmbyAC0KJOfQ5HjLY
cMdieR29VB8RA+HAen6KtnkFFby+vJ07TrOGWaX+o05Gve4+BQsT0U37kBs/Z6F2
TKEMymiTdnKCFORw5+V6ZY7SZs1mzb2O5srX5Xf7vNZY8ieQfDo23COra8aGPHeD
9Au3dlLG07yCgI9Z0HIbHYrCaYOHkxzxYQqKrfZVmYEDEtnIGikN/nbRT6IM0Cp2
/GByy6bESR4S4oYwjbcX3v3SCy2sLfSevZOgIdh0bvgixdCBoW3OxuBI8x43Ehmz
E9ggz09hSZ5snwzXFZ4x1RvXUklZTVYBntvgEn32DjqLyseMmVq67pLx5kdy+l0R
FURblK8qoM1kVHgTBvUS4mia/dZ5wfkOf10p1WBES5WHEG6tyx9ahfbZDzQCIQNk
iy5GDXCijGqvOX7/FN8H
=wJ0S
-END PGP SIGNATURE-



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org