Your message dated Thu, 02 May 2019 09:48:26 +0000
with message-id <[email protected]>
and subject line Bug#927448: fixed in policy-rcd-declarative 0.2
has caused the Debian Bug report #927448,
regarding policy-rcd-declarative: leaves alternatives after purge:
/etc/alternatives/policy-rc.d
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.)
--
927448: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=927448
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: policy-rcd-declarative
Version: 0.1
Severity: important
User: [email protected]
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:
https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#details-of-removal-and-or-configuration-purging
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 https://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. unpacked but not configured packages 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...):
0m27.1s INFO: Warning: Package purging left files on system:
/etc/alternatives/policy-rc.d -> /usr/sbin/policy-rc.d-declarative not
owned
/etc/alternatives/policy-rc.d.8.gz ->
/usr/share/man/man8/policy-rc.d-declarative.8.gz not owned
/usr/share/man/man8/policy-rc.d.8.gz -> /etc/alternatives/policy-rc.d.8.gz
not owned
cheers,
andreas
policy-rcd-declarative_0.1.log.gz
Description: application/gzip
--- End Message ---
--- Begin Message ---
Source: policy-rcd-declarative
Source-Version: 0.2
We believe that the bug you reported is fixed in the latest version of
policy-rcd-declarative, 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.
Wouter Verhelst <[email protected]> (supplier of updated policy-rcd-declarative
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: SHA512
Format: 1.8
Date: Thu, 02 May 2019 11:31:23 +0200
Source: policy-rcd-declarative
Binary: policy-rcd-declarative
Architecture: source all
Version: 0.2
Distribution: experimental
Urgency: medium
Maintainer: Wouter Verhelst <[email protected]>
Changed-By: Wouter Verhelst <[email protected]>
Description:
policy-rcd-declarative - policy-rc.d script with declarative syntax
Closes: 927448
Changes:
policy-rcd-declarative (0.2) experimental; urgency=medium
.
* Fix lintian errors:
- Fix versioned build-dependency on debhelper from 9 to 10
- Convert to 3.0 (native) source format
- Add "set -e" to all maintainer scripts
- Build-Depend on perl, not perl-modules
* Add Vcs-* headers
* Remove the alternative in case "postrm remove" or "postrm disappear"
is called, and add a missing space in the "prerm remove" [] test.
Closes: #927448.
Checksums-Sha1:
b4d2c309b71311e92c9f858653f2e4b9bcd7bab2 1614 policy-rcd-declarative_0.2.dsc
a593ad9bbdde5186206ed38a0963e709f335c4b3 4736 policy-rcd-declarative_0.2.tar.xz
a8231b7a0be76d28f074892f1eef9516717e8cda 10480
policy-rcd-declarative_0.2_all.deb
66b6dda2469571a48713b9da66348545986f085e 6053
policy-rcd-declarative_0.2_amd64.buildinfo
Checksums-Sha256:
1960318fbc2ce6fab978c3eeff49fca66973bc3fb15b5a995cafc33117dd43f6 1614
policy-rcd-declarative_0.2.dsc
d1d3aec91de965c0fb5378fe526c5853c7b76089c34179500dfb2ce1b78b9263 4736
policy-rcd-declarative_0.2.tar.xz
0e9e05411032d830c44f6dbf4b40c39ada078a1f53ab448e6d1a4c86c044489e 10480
policy-rcd-declarative_0.2_all.deb
ca78cb017b480ca02789d32c19fb605671d7a4c064c9344c8eeaa9fc91b7f2a9 6053
policy-rcd-declarative_0.2_amd64.buildinfo
Files:
54dccafdfa0650699723ee5f9439f221 1614 admin optional
policy-rcd-declarative_0.2.dsc
62a2d8aa07bf3fd21853252f9368afaa 4736 admin optional
policy-rcd-declarative_0.2.tar.xz
acf98d3a25e99e2dea29a66bb7eee389 10480 admin optional
policy-rcd-declarative_0.2_all.deb
2aee6b99b2c58f5df318f6cb24122182 6053 admin optional
policy-rcd-declarative_0.2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJGBAEBCgAwFiEEm2n98/DaCUgGYSn3LfxRmVQYEpYFAlzKuTMSHHdvdXRlckBk
ZWJpYW4ub3JnAAoJEC38UZlUGBKWJ2cP/RY+N0EwVNbDN3Cqw2tjV4Ky7tS+DBve
eD2uyho8K5qOLXMXfqCr6dzjvvKwP1rxfyXh0c+XI2WZr5pM6Ly846oYX4t96gZd
yooe7PracIMFkAG/txkDxm2eWHpZzX+2B3dH8zPmyE+2CqKLTv17PXFAdUuz1pln
0vvNWCmj/MDZy5haEHTIkx3mh3QtupZovSJYLBmoE8QOQAwtA7tTqVSGb26AvS38
1Y++FT1LMpftqBuSuAAA9vr5I+IaWYwR3X9wRbyHvmGkfRkoFu9J3Z0/TcEP+24f
CnuXu/pbdQ1YCg1dP1GOfyhnTe1rIso7pef0c11tFpSUyT9AD2r8jbsGqHPSywLA
/9+UW8sCcpbMtifwWl44yk7+1+/qQt1T2TR+YajBsu/PMABhrqTKHjlucYtfy6Ii
CN7G1KWPhf2Nb8E002w+Z1xFIvcHa+xGbKyyNpT2uVubbBf+6YXte9eRrPd07YWQ
frRgM9etSH28P1Ec+RUENUsOwcMdzSEhdaUsxmKxr60Lz6FxH845qgdDv10w8276
KQ6ZKF9yts55R3LoFY3ZUIkQZEGCaPAyFpnsrnjaRSMszHT6AEOzxfBshJR+54rh
39Np8IaWeuK2dtVvNReEV474crZ13+3cKpalT8U1kcucXLIRce5thbG+MqzhHVyz
ofSerdE08dod
=TsF1
-----END PGP SIGNATURE-----
--- End Message ---