Your message dated Thu, 20 Dec 2018 14:57:24 +0000
with message-id <[email protected]>
and subject line Bug#915684: fixed in petsc4py 3.10.0-2
has caused the Debian Bug report #915684,
regarding python3-petsc4py-{real,complex}: leaves alternatives after purge: 
/usr/lib/python3/dist-packages/petsc4py
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.)


-- 
915684: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=915684
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-petsc4py-real,python3-petsc4py-complex
Version: 3.10.0-1exp3
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...):

0m51.7s ERROR: WARN: Broken symlinks:
  /usr/lib/python3/dist-packages/petsc4py-3.10.0.egg-info -> 
/etc/alternatives/petsc4py.egg-info
  /usr/lib/python3/dist-packages/petsc4py -> /etc/alternatives/petsc4py
  /etc/alternatives/petsc4py.egg-info -> 
/usr/lib/python3/dist-packages/petsc4py_real-3.10.0.egg-info
  /etc/alternatives/petsc4py -> /usr/lib/python3/dist-packages/petsc4py_real

0m56.8s INFO: Warning: Package purging left files on system:
  /etc/alternatives/petsc4py -> /usr/lib/python3/dist-packages/petsc4py_real    
 not owned
  /etc/alternatives/petsc4py.egg-info -> 
/usr/lib/python3/dist-packages/petsc4py_real-3.10.0.egg-info    not owned
  /usr/lib/python3/dist-packages/petsc4py -> /etc/alternatives/petsc4py  not 
owned
  /usr/lib/python3/dist-packages/petsc4py-3.10.0.egg-info -> 
/etc/alternatives/petsc4py.egg-info         not owned


0m56.2s ERROR: WARN: Broken symlinks:
  /usr/lib/python3/dist-packages/petsc4py-3.10.0.egg-info -> 
/etc/alternatives/petsc4py.egg-info
  /usr/lib/python3/dist-packages/petsc4py -> /etc/alternatives/petsc4py
  /etc/alternatives/petsc4py.egg-info -> 
/usr/lib/python3/dist-packages/petsc4py_complex-3.10.0.egg-info
  /etc/alternatives/petsc4py -> /usr/lib/python3/dist-packages/petsc4py_complex

1m2.3s INFO: Warning: Package purging left files on system:
  /etc/alternatives/petsc4py -> /usr/lib/python3/dist-packages/petsc4py_complex 
 not owned
  /etc/alternatives/petsc4py.egg-info -> 
/usr/lib/python3/dist-packages/petsc4py_complex-3.10.0.egg-info         not 
owned
  /usr/lib/python3/dist-packages/petsc4py -> /etc/alternatives/petsc4py  not 
owned
  /usr/lib/python3/dist-packages/petsc4py-3.10.0.egg-info -> 
/etc/alternatives/petsc4py.egg-info         not owned



cheers,

Andreas

Attachment: python3-petsc4py-real_3.10.0-1exp3.log.gz
Description: application/gzip


--- End Message ---
--- Begin Message ---
Source: petsc4py
Source-Version: 3.10.0-2

We believe that the bug you reported is fixed in the latest version of
petsc4py, 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.
Drew Parsons <[email protected]> (supplier of updated petsc4py 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: SHA256

Format: 1.8
Date: Thu, 20 Dec 2018 14:08:11 +0100
Source: petsc4py
Binary: python-petsc4py python3-petsc4py python3-petsc4py-real 
python3-petsc4py-complex python-petsc4py-docs
Architecture: source
Version: 3.10.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers 
<[email protected]>
Changed-By: Drew Parsons <[email protected]>
Description:
 python-petsc4py - Python 2 bindings for PETSc libraries
 python-petsc4py-docs - Python bindings for PETSc libraries: documentation and 
examples
 python3-petsc4py - Python 3 bindings for PETSc libraries
 python3-petsc4py-complex - Python 3 bindings for PETSc libraries (complex 
numbers)
 python3-petsc4py-real - Python 3 bindings for PETSc libraries (real numbers)
Closes: 915684
Changes:
 petsc4py (3.10.0-2) unstable; urgency=medium
 .
   * remove alternatives links when packages are removed.
     Closes: #915684.
Checksums-Sha1:
 d04bd12c815fbad56fb14a41073cea9df78d1ac3 2659 petsc4py_3.10.0-2.dsc
 092b929684c03a958838b1f0c53eb8a0a81e0a48 9632 petsc4py_3.10.0-2.debian.tar.xz
Checksums-Sha256:
 36b0a867ad646e9faad2419d60fb99a370c1c2b58f59894a7cb07d7e0c6779e0 2659 
petsc4py_3.10.0-2.dsc
 5d065c871833ba4bb78805df259a8423f583aa5c310689762cc88b938b3485a6 9632 
petsc4py_3.10.0-2.debian.tar.xz
Files:
 d763d6256b421638e449b2c427d861a0 2659 python optional petsc4py_3.10.0-2.dsc
 eefe840670a62a08c550b5edc571dbb7 9632 python optional 
petsc4py_3.10.0-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEI8mpPlhYGekSbQo2Vz7x5L1aAfoFAlwbm9sACgkQVz7x5L1a
AfpPXQ/8DaPsYdAAvaJkkbi+cuxa3Q//+QE0Z+iwqgdGF5y6qvaA4xDEllqNnf1H
e7quiRsrwERJAZnEmpZlyw4GWjrP8594Kj/LsW8BBLHDW02d9XEvHBRqoZ7CLjgy
/aMipmmuBGo3OQWT96l6TzGAmZdB45zE/lcV79kFkhGnILtQrX/KnGK2eLwLtB/N
shHOST6Amf955HjTxiIrRf7SI5tjal0obj4TW+JctXNZGhkZ/XZCcfnSNRSKQN1T
gghMv/OV08/d8q8e1P1G4GqBWkwG+GyuPQThRStk1y5TilBxt56sdR0S84X65N35
RKwBSgZ5nuPRCggzxV/sJOinLH3PHqOF2a2XSOl5BVAccJ0VaCgQgOPpnwiRe6Gq
o10azvmqIVnybqL0DmVNEsiVbZFrIMSuzaEyyFG0NSGZUhfeg0QCLpWF4iRbA6Ib
biNTR0lARxniKuiJDGa2tNr8dlzLlWvtD5GyYG6H5QIi6+57r1eMXvKOrlA1ae4U
NeBuYuvobhDbAaS8lSEWp7H0s0R+v4BmuVoHMYVwxOqUgEBOip19tHF/cq9ONFHq
tqtx9uL4f20t8uZ6nJI0JkeVpWR44Id4VvVIxYeVaGkLNfqoZvWR129fk/J8cxSg
3xa4R5FvGncTqhzrOAZZdSMM9WMZY7AYpo2m2nL5c18kJecIAhk=
=KEeq
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to