Your message dated Thu, 29 Jan 2015 21:19:11 +0000
with message-id <[email protected]>
and subject line Bug#776089: fixed in atlas 3.10.2-7
has caused the Debian Bug report #776089,
regarding libatlas-base-dev: leaves alternatives after purge: 
/usr/lib/lib{blas, lapack}-3.{so, a}
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.)


-- 
776089: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776089
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libatlas-base-dev
Version: 3.10.2-6
Severity: important
Tags: patch
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#s-removedetails

This was observed after an lenny -> squeeze -> wheezy -> jessie upgrade.

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

5m39.1s INFO: Warning: Package purging left files on system:
  /etc/alternatives/libblas-3.a -> /usr/lib/atlas/libblas.a      not owned
  /etc/alternatives/libblas-3.so -> /usr/lib/atlas/libblas.so    not owned
  /etc/alternatives/liblapack-3.a -> /usr/lib/atlas/liblapack.a  not owned
  /etc/alternatives/liblapack-3.so -> /usr/lib/atlas/liblapack.so        not 
owned
  /etc/ld.so.conf.d/atlas.conf   not owned
  /usr/lib/libblas-3.a -> /etc/alternatives/libblas-3.a  not owned
  /usr/lib/libblas-3.so -> /etc/alternatives/libblas-3.so        not owned
  /usr/lib/liblapack-3.a -> /etc/alternatives/liblapack-3.a      not owned
  /usr/lib/liblapack-3.so -> /etc/alternatives/liblapack-3.so    not owned

Attached is a patch that I have verified in piuparts to fix this issue.
No intent to NMU, but if you upload this to sid, I'll take care of
getting it unblocked.


cheers,

Andreas

Attachment: libatlas-base-dev_3.10.2-6.log.gz
Description: application/gzip

diff -Nru atlas-3.10.2/debian/changelog atlas-3.10.2/debian/changelog
--- atlas-3.10.2/debian/changelog	2014-11-22 13:37:44.000000000 +0100
+++ atlas-3.10.2/debian/changelog	2015-01-23 20:24:54.000000000 +0100
@@ -1,3 +1,11 @@
+atlas (3.10.2-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * libatlas-base-dev: Cleanup obsolete alternatives dating back to lenny.
+    (Closes: #xxxxxx)
+
+ -- Andreas Beckmann <[email protected]>  Fri, 23 Jan 2015 20:14:42 +0100
+
 atlas (3.10.2-6) unstable; urgency=medium
 
   * Add missing files in archdef for mips.
diff -Nru atlas-3.10.2/debian/libatlas-base-dev.preinst atlas-3.10.2/debian/libatlas-base-dev.preinst
--- atlas-3.10.2/debian/libatlas-base-dev.preinst	2014-07-12 12:23:26.000000000 +0200
+++ atlas-3.10.2/debian/libatlas-base-dev.preinst	2015-01-23 20:19:46.000000000 +0100
@@ -9,6 +9,10 @@
     update-alternatives --remove libblas.so	/usr/lib/atlas-base/atlas/libblas.so
 fi
 
+# Cleanup obsolete alternatives dating back to lenny
+update-alternatives --remove libblas-3.so /usr/lib/atlas/libblas.so
+update-alternatives --remove liblapack-3.so /usr/lib/atlas/liblapack.so
+
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.
 

--- End Message ---
--- Begin Message ---
Source: atlas
Source-Version: 3.10.2-7

We believe that the bug you reported is fixed in the latest version of
atlas, 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.
Sébastien Villemot <[email protected]> (supplier of updated atlas 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: Sat, 24 Jan 2015 23:06:27 +0100
Source: atlas
Binary: libatlas3-base libatlas3gf-base libatlas-base-dev libatlas-dev 
libatlas-test libatlas-doc
Architecture: source all amd64
Version: 3.10.2-7
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Team 
<[email protected]>
Changed-By: Sébastien Villemot <[email protected]>
Description:
 libatlas-base-dev - Automatically Tuned Linear Algebra Software, generic static
 libatlas-dev - Automatically Tuned Linear Algebra Software, C header files
 libatlas-doc - Automatically Tuned Linear Algebra Software, documentation
 libatlas-test - Automatically Tuned Linear Algebra Software, test programs
 libatlas3-base - Automatically Tuned Linear Algebra Software, generic shared
 libatlas3gf-base - Transitional package to libatlas3-base
Closes: 776089
Changes:
 atlas (3.10.2-7) unstable; urgency=medium
 .
   [ Andreas Beckmann ]
   * libatlas-base-dev.preinst: Cleanup obsolete alternatives dating back to
     lenny.  (Closes: #776089)
Checksums-Sha1:
 4222cb8aa206206383cb0fc60b68143965ec2b3c 2422 atlas_3.10.2-7.dsc
 58def6d12e9a441c1bcf24a52c67c436bcfba24d 127180 atlas_3.10.2-7.debian.tar.xz
 6756d6d645da9a86d301cf5cc97bf6f20acc0f29 51772 
libatlas3gf-base_3.10.2-7_all.deb
 b0a6fe3112f1a09ab8addfbb08abb20e9195fd98 68768 libatlas-dev_3.10.2-7_all.deb
 77b94b22b54570c82645fa30e65d06f792de418b 1150936 libatlas-doc_3.10.2-7_all.deb
 b96bf2986d075a8b9f1fc8f183be26769ca6176c 2724750 
libatlas3-base_3.10.2-7_amd64.deb
 7594d26b3002ff4ee4e40a691ba60aec0d75986a 3457236 
libatlas-base-dev_3.10.2-7_amd64.deb
 dcab626229f88a76d3965fe18cdea4aed7c039b9 2031462 
libatlas-test_3.10.2-7_amd64.deb
Checksums-Sha256:
 4c7f551ed42fee12e47970d74cd77b8c7dbd5568c8f9ad861d76be408b95bfdf 2422 
atlas_3.10.2-7.dsc
 ad5539f3219a19c56636ffc73b5783e1f34b083c1d1511c3ed98cbc1549d680c 127180 
atlas_3.10.2-7.debian.tar.xz
 1ace53818156b3baafe22165dcd404155c744d8e6b9e363a7f7eb364d7a05a54 51772 
libatlas3gf-base_3.10.2-7_all.deb
 60e3746449313f650b73c7e9151241a7c32bcbc9f54df26edf98cb5917164abe 68768 
libatlas-dev_3.10.2-7_all.deb
 06dd31c2ef06426e920989c3da31d55511648a1a670612583a5f06fdbe860742 1150936 
libatlas-doc_3.10.2-7_all.deb
 aeb9001aa2f685defc06ae3ca0f5fbdeb4af25ae9f8725f5d4affb966a25df67 2724750 
libatlas3-base_3.10.2-7_amd64.deb
 13b23baf45e43197a67dad0f4870af982ba1f399d336479637292d3c3a491b4e 3457236 
libatlas-base-dev_3.10.2-7_amd64.deb
 969928c2a708b663832cf09c1a893d66323c05edb018ba466e80a88a36e9f6b9 2031462 
libatlas-test_3.10.2-7_amd64.deb
Files:
 f6f83e0069ae8277e12a4e0155d195c3 2422 devel optional atlas_3.10.2-7.dsc
 428163b7d7e02491b8ddd3bc4c369b92 127180 devel optional 
atlas_3.10.2-7.debian.tar.xz
 5af64eb976845d1ba6a7df514ab3f68c 51772 oldlibs optional 
libatlas3gf-base_3.10.2-7_all.deb
 3d5ac6585bebd8b7840fe59471f2baa0 68768 libdevel optional 
libatlas-dev_3.10.2-7_all.deb
 5c8469f96d5c29279cd7f9fc4186742f 1150936 doc optional 
libatlas-doc_3.10.2-7_all.deb
 fee391f6cb53d3834e1a603b88fb4f45 2724750 libs optional 
libatlas3-base_3.10.2-7_amd64.deb
 73c1ec4e165ac7e3abf212f5f3f3f31b 3457236 libdevel optional 
libatlas-base-dev_3.10.2-7_amd64.deb
 9eb5d63e322cf652b90d1aaa65f27a4f 2031462 devel extra 
libatlas-test_3.10.2-7_amd64.deb

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

iQIcBAEBCAAGBQJUypOzAAoJECzs6TUOzr5Kz6AP/1ZWoNFDUZKwbpoYGtlfe82h
rj3pfynHjD2wF2k43fK1fBWFvsax1uqgjsoPBJ1vwOYK9xMhx3SuDVumy6u5l5lP
+24A9YiYZYyI2bzCiMBe10BpCHCDqR/vKORquTPdgdQhIgASdOC/gEmGs7yPOzDp
h3OZW0t064TQeRSpehNHz7tjFXPF3HA1qgnps4mT0fTZLN5ECDH4ob7c3w0ar4ik
JyxDYcjkqs1mXAtCZM/QPQlaeeB6coJDwEJCVj5iTw5rmP6T0Sg/p1OGDPq7IfAD
xFQhY44pjEUfgebaeuKopeRyb6hgWhnojlJOmGYdIyP36JCF5V6V+SHEsD1NAiVW
TVFBB3KcFLbzMSFkR0TnTmq6K1hmJep67FotYPJdHkerIz4L7jWFq8LXP3hBeECc
C+wneuTxeTUB7Hl9ErnIDiEFJez/ZZkt4CRSoSEMTe4kqwCNTBehY5XES2zhNdRI
ne0/4uRGM0qJn49X8HmpEAPatZM54OwWzQehDTfWDV9GS5wCXAmkEFsunCp3ZFOj
zLxyIXzuSteEEU9Bjck9zoiT6bFb/HprXfJy7ZvcaoFA0q6lSh3dvcmYvjJzmOvf
LGq/G3oxukdwuVQYclVnSomZCZMqdXo0vCEs+JZifC204S/hxwUiGPayhoSRj2Ak
WHdJQIFVXf0ZNfMPMMJz
=X066
-----END PGP SIGNATURE-----

--- End Message ---
-- 
debian-science-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to