Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #74335 > unrolled thread

Bug#1005141: linux-perf: Removes diversions on upgrade breaking it

Started byGuillem Jover <guillem@debian.org>
First post2022-02-07 21:10 +0100
Last post2022-02-09 10:10 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#1005141: linux-perf: Removes diversions on upgrade breaking it Guillem Jover <guillem@debian.org> - 2022-02-07 21:10 +0100
    Bug#1005141: linux-perf: Removes diversions on upgrade breaking it Salvatore Bonaccorso <carnil@debian.org> - 2022-02-08 13:20 +0100
    Bug#1005141: marked as done (linux-perf: Removes diversions on  upgrade breaking it) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2022-02-09 10:10 +0100

#74335 — Bug#1005141: linux-perf: Removes diversions on upgrade breaking it

FromGuillem Jover <guillem@debian.org>
Date2022-02-07 21:10 +0100
SubjectBug#1005141: linux-perf: Removes diversions on upgrade breaking it
Message-ID<DOiuJ-eV1-1@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#74344

FromSalvatore Bonaccorso <carnil@debian.org>
Date2022-02-08 13:20 +0100
Message-ID<DOxDr-otC-1@gated-at.bofh.it>
In reply to#74335

[Multipart message — attachments visible in raw view] — view raw

Control: tags -1 + confirmed patch

On Mon, Feb 07, 2022 at 08:57:22PM +0100, Guillem Jover wrote:
> 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.

Need to test it (if I have not done a thinko), but the following
should do it.

Regards,
Salvatore

[toc] | [prev] | [next] | [standalone]


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

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2022-02-09 10:10 +0100
SubjectBug#1005141: marked as done (linux-perf: Removes diversions on upgrade breaking it)
Message-ID<DOR97-AJb-7@gated-at.bofh.it>
In reply to#74335

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web