Your message dated Mon, 08 Sep 2014 05:03:40 +0000
with message-id <[email protected]>
and subject line Bug#694051: fixed in less 458-3
has caused the Debian Bug report #694051,
regarding less: leaves alternatives after purge: pager /usr/bin/less
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.)


-- 
694051: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=694051
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: less
Version: 444-4
Severity: important
User: [email protected]
Usertags: piuparts
Control: found -1 436-1

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. 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...):

2m12.2s DEBUG: Modified(uid, gid, mode, size, target): 
/etc/alternatives/pager.1.gz (0, 0, l 120777, 29, 
/usr/share/man/man1/more.1.gz) != (0, 0, l 120777, 29, 
/usr/share/man/man1/less.1.gz)
2m12.2s DEBUG: Modified(uid, gid, mode, size, target): /etc/alternatives/pager 
(0, 0, l 120777, 9, /bin/more) != (0, 0, l 120777, 13, /usr/bin/less)
2m12.2s ERROR: FAIL: After purging files have been modified:
  /etc/alternatives/pager -> /bin/more   not owned
  /etc/alternatives/pager.1.gz -> /usr/share/man/man1/more.1.gz  not owned


This problem originates from the package in lenny which used
/usr/bin/less as the pager alternative. In squeeze his was switched to
/bin/less, but no migration path has been added to remove the obsolete
alternative on upgrades.

I would suggest to add 
  update-alternatives --quiet --remove pager /usr/bin/less
to the postinst (after adding the /bin/less alternative). This can be
done unconditionally.
This change needs to get into one stable release.


cheers,

Andreas

Attachment: less_444-4.log.gz
Description: GNU Zip compressed data


--- End Message ---
--- Begin Message ---
Source: less
Source-Version: 458-3

We believe that the bug you reported is fixed in the latest version of
less, 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.
Anibal Monsalve Salazar <[email protected]> (supplier of updated less 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: Mon, 08 Sep 2014 05:35:17 +0100
Source: less
Binary: less
Architecture: source mips
Version: 458-3
Distribution: unstable
Urgency: medium
Maintainer: Anibal Monsalve Salazar <[email protected]>
Changed-By: Anibal Monsalve Salazar <[email protected]>
Description:
 less       - pager program similar to more
Closes: 694051
Changes:
 less (458-3) unstable; urgency=medium
 .
   * debian/control:
     Priority: important
     Standards-Version: 3.9.5
   * debian/postinst: add (after adding the /bin/less alternative):
     update-alternatives --quiet --remove pager /usr/bin/less
     This change needs to get into one stable release.
     Patch by Andreas Beckmann.
     Closes: #694051.
   * debian/rules:
     export DEB_BUILD_MAINT_OPTIONS = hardening=+all
   * Refresh patches.
Checksums-Sha1:
 e8f77879cbfc995f246452b13389438b9e364035 1705 less_458-3.dsc
 c8cb1c69c3678a5c52fc23a5eed8fbdad651ff88 18780 less_458-3.debian.tar.bz2
 c4abbc9929a065173a6ba8f21d63fabc96fa98fb 122598 less_458-3_mips.deb
Checksums-Sha256:
 47154ab0613296315cf08b4f85f94b01d1c6535e913c7d327a3194a7d2eb5613 1705 
less_458-3.dsc
 2e40f46d9455f8b737889af6cef1133f819abfbe425947c52559db238d1c5fd4 18780 
less_458-3.debian.tar.bz2
 7fe39666e6015586564c29212e9cd9717feb0216c0a8a01e8381f84381e17c65 122598 
less_458-3_mips.deb
Files:
 e156552ec2fd74c95442207dfe6ecfad 122598 text important less_458-3_mips.deb
 1272856bb8dbc5b78fd002818e05234c 1705 text important less_458-3.dsc
 07a588ea3a3f95198401c74ab6067b6e 18780 text important less_458-3.debian.tar.bz2

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJUDTZdAAoJEHxWrP6UeJfYATUP+waaX4bTjZ5NwefWYQNSjG5O
/HxBKwvxxKteCh28/00TcBgXfGkKzZWA1k8K1TX66DfSaqTBnTGvm1B6pqVYurQf
pWAIywYKwdLqBzDM5j/u5Bde2LyOgWGG9l2bkhaO+LdHaWlLvjQ5PBknsdQsqBXW
rN5KFmOdIfrHf/9OMH5I/PiMkkAtRDQ4UxQuXhcvBHHfz4g7P76F8ZWBr9igrpNQ
LLbNMXTmtF5Tt02sUOQx2F7uVg2CWR+3F8e4Xjd117GQu01Y3TFdfumpDNDLehym
Es6tllJDdBo9ImNPaoUu6nrM8SPQwnpatKY+BYuyYQ8vvnTU48rd7vrwWZCEeaZQ
vEDStH7HMRMWF/AzEKpDBKM/O0jyQ1nePQrc5CBLEbCrrxN10w/6J5Yg2eH+N/DV
VxoaY99VjoZKg+w8t9KD231P+ZZ5oQNRf4ZhkrJvGJHmhemXTws71OEEhtyXIHLy
EnPPTmZUXIwZ6unsXMwnLPJkEOQIDVCuabLU/NfA5rNQmn7BnSUMLBjfzuOD9qNC
58Qn/1rE5IE7P31vMOp79OvoSNI+F6w9oaYI9O6fA7lx4TESyExTdPzMmR95bbaS
dSuXZ4C6diklOa/Ii1VdV3iBrARMAU9CFq+fu6P2CwFNmLyC0BA1GL4GrUBjJWOc
AhviSr48WJHC1RjzuHly
=0VVO
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to