[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1005141: marked as done (linux-perf: Removes diversions on upgrade breaking it)



Your message dated Wed, 09 Feb 2022 09:04:51 +0000
with message-id <E1nHiuB-000FKq-U4@fasolo.debian.org>
and subject line Bug#1005141: fixed in linux 5.16.7-2
has caused the Debian Bug report #1005141,
regarding linux-perf: Removes diversions on upgrade breaking it
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 owner@bugs.debian.org
immediately.)


-- 
1005141: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005141
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: linux-perf
Version: 5.16.3-1~exp1
Severity: serious

Hi!

This package has code in its postrm maintscript, which unconditionally
removes the diversion, which breaks as the rename cannot be performed
due to linux-base owning the file, and dpkg-divert refusing to
overwrite it. This is the error shown:

  ,---
  # dpkg -i linux-perf_5.16.7-1_amd64.deb
  (Reading database ... 280997 files and directories currently installed.)
  Preparing to unpack linux-perf_5.16.7-1_amd64.deb ...
  Leaving 'diversion of /usr/bin/perf to /usr/bin/perf.wrapper by linux-perf'
  Leaving 'diversion of /usr/share/bash-completion/completions/perf to /usr/share/bash-completion/completions/perf.wrapper by linux-perf'
  Leaving 'diversion of /usr/share/man/man1/perf.1.gz to /usr/share/man/man1/perf.wrapper.1.gz by linux-perf'
  Unpacking linux-perf (5.16.7-1) over (5.16.7-1) ...
  Removing 'diversion of /usr/bin/perf to /usr/bin/perf.wrapper by linux-perf'
  dpkg-divert: error: rename involves overwriting '/usr/bin/perf' with
    different file '/usr/bin/perf.wrapper', not allowed
  dpkg: warning: old linux-perf package post-removal script subprocess returned error exit status 2
  dpkg: trying script from the new package instead ...
  Removing 'diversion of /usr/bin/perf to /usr/bin/perf.wrapper by linux-perf'
  dpkg-divert: error: rename involves overwriting '/usr/bin/perf' with
    different file '/usr/bin/perf.wrapper', not allowed
  dpkg: error processing archive linux-perf_5.16.7-1_amd64.deb (--install):
   new linux-perf package post-removal script subprocess returned error exit status 2
  Leaving 'diversion of /usr/bin/perf to /usr/bin/perf.wrapper by linux-perf'
  Leaving 'diversion of /usr/share/bash-completion/completions/perf to /usr/share/bash-completion/completions/perf.wrapper by linux-perf'
  Leaving 'diversion of /usr/share/man/man1/perf.1.gz to /usr/share/man/man1/perf.wrapper.1.gz by linux-perf'
  Removing 'diversion of /usr/bin/perf to /usr/bin/perf.wrapper by linux-perf'
  dpkg-divert: error: rename involves overwriting '/usr/bin/perf' with
    different file '/usr/bin/perf.wrapper', not allowed
  dpkg: error while cleaning up:
   new linux-perf package post-removal script subprocess returned error exit status 2
  Processing triggers for man-db (2.10.0-2) ...
  [main a8458e04] Commit dpkg db updates
   1 file changed, 2 insertions(+), 1 deletion(-)
  Errors were encountered while processing:
   linux-perf_5.16.7-1_amd64.deb
  `---

The dpkg-divert calls should be protected to run only on the relevant
actions on all maintscripts.

Thanks,
Guillem

--- End Message ---
--- Begin Message ---
Source: linux
Source-Version: 5.16.7-2
Done: Salvatore Bonaccorso <carnil@debian.org>

We believe that the bug you reported is fixed in the latest version of
linux, 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 1005141@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Salvatore Bonaccorso <carnil@debian.org> (supplier of updated linux 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 09 Feb 2022 09:35:55 +0100
Source: linux
Architecture: source
Version: 5.16.7-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Changed-By: Salvatore Bonaccorso <carnil@debian.org>
Closes: 1005141
Changes:
 linux (5.16.7-2) unstable; urgency=medium
 .
   * linux-perf: Protect invocation of dpkg-divert to run only on relevant
     actions in maintscripts. Thanks to Guillem Jover (Closes: #1005141)
Checksums-Sha1:
 29821782203b32a5a36ed88fa26d8fe7320a4cfb 248954 linux_5.16.7-2.dsc
 a8b87b1cf4684ac5db307bb334192869148d173d 1299916 linux_5.16.7-2.debian.tar.xz
 32a8a83ed7683e5f485f49cfd852f51765cdbaa9 6469 linux_5.16.7-2_source.buildinfo
Checksums-Sha256:
 06b0a60d6cc5074378f8ad6af10024c7bdf5566ce2c87c7cbaaa2195046301a1 248954 linux_5.16.7-2.dsc
 859a1e7b58f01cd11be1920da8a63fca98a7d970f7ef20525585aef3f1bffce0 1299916 linux_5.16.7-2.debian.tar.xz
 6fe039888c350c35c1c790755014d4b9c30d899b4155ba2378317d77c983843c 6469 linux_5.16.7-2_source.buildinfo
Files:
 bef198e38b6865b423c4bb6a02e30250 248954 kernel optional linux_5.16.7-2.dsc
 6294862e447e84dba1202dfcb30f6513 1299916 kernel optional linux_5.16.7-2.debian.tar.xz
 8fcf04847ab4108eedad2580ed42a3de 6469 kernel optional linux_5.16.7-2_source.buildinfo

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

iQKmBAEBCgCQFiEERkRAmAjBceBVMd3uBUy48xNDz0QFAmIDfXJfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDQ2
NDQ0MDk4MDhDMTcxRTA1NTMxRERFRTA1NENCOEYzMTM0M0NGNDQSHGNhcm5pbEBk
ZWJpYW4ub3JnAAoJEAVMuPMTQ89E4qIP/3WmrOukzJiR+i9uIlhpqlCm1RLOcYyx
8UHfFM8PRtsz9WsNpcZ2UrUZipI2/Z8xjUYp4iBr+qZ1woMSVfDU24qSWuTX/Xay
OXq4fq0Ewo1wSpGyJLZP3nH/bf0NjOsVJ1dod7/P/+KkNelvzWrzCpoO2qOg/B7t
WJfxusT5bJmKWBXds6+m2MBr33hvhojwmJS2rCKdXoF9TsU1lHoPbIUSW5v+WJ59
KR+/pq40HkEpvYvK9mozrmU2fcoGSBsSVydkwhNO31eC/b084IId2mlH2jK5N2jT
Wzf3ViUfnC/0zpv/FSPNVoObuYyIlUbcNf4V2x4h64xI+1WdfwPK77ar7gKU32Bj
LROAWrfvgB7bPm/uZ7b9RLMIosdbN3iatmAdu0ZLD+9QHZ42/u+X1jVTGuEjwfZQ
MTQUVHQwOPmBK4Mkxtv7H9qS3Non/Kx1++HEcAnULFlVvNygZFeK0JBQD3rSM0Q2
UgNnlgkJ93Nd9RdNlUcSFM3anOVZ1eYXLI4CSkCnLDG7ilF0ARkwAjOc7VJf3c1O
Oe2Fy2nE2SXy85221idAsTmqKDsxGnIGX/2Iw6XCoeiNHEn1KjNNMEKQxqbO4iYw
w7Qz8KgV2xyar32IzC7zZKlYcQcPwZYK4JQ6QFZ7fd/sE3iWUhDrUUq2twoUUhvL
6tUCf75JvzSM
=4lNY
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: