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


Groups > linux.debian.kernel > #69623

Bug#983314: linux-base: perf fails to report that linux-perf-5.10 is not installed

From Jose R Rodriguez <jose.r.r@metztli.com>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#983314: linux-base: perf fails to report that linux-perf-5.10 is not installed
Date 2021-02-26 08:10 +0100
Message-ID <BMFq9-5fE-1@gated-at.bofh.it> (permalink)
References <BLhgd-3s6-1@gated-at.bofh.it> <BLhgd-3s6-1@gated-at.bofh.it> <BMEkp-4oM-1@gated-at.bofh.it> <BLhgd-3s6-1@gated-at.bofh.it> <BMEkp-4oM-1@gated-at.bofh.it>
Organization Metztli Information Technology

Cross-posted to 2 groups.

Show all headers | View raw


On Fri, 2021-02-26 at 06:47 +0100, Salvatore Bonaccorso wrote:
> Control: tags -1 + confirmed
> 
> Hi Bart,
> 
> On Mon, Feb 22, 2021 at 11:57:56AM +0100, Bart Martens wrote:
> > Package: linux-base
> > Version: 4.6
> > Severity: minor
> > File: /usr/bin/perf
> > 
> > Observed behavior:
> > 
> > $ perf
> > /usr/bin/perf: line 13: exec: perf_5.10: not found
> > 
> > Expected behavior:
> > 
> > $ perf
> > /usr/bin/perf: line 14: exec: perf_5.10: not found
> > E: linux-perf-5.10 is not installed.

FYI Debian Buster backports AMD64 provides 'Expected behavor' in a debian
packaging for 5.10.15-2 reiser4 build hack running in an AMD Epyc/Ryzen cloud
instance:
https://metztli.it/buster/perf.png

> 
> That's intersting, confirmed. The script is the same since the buster
> release without changes, but it looks it behaves differently in a buster
> vs.  unstable/bullseye environment when the replacement ${version%%-*}
> is involved after the version setting:
> 
> ,---- [ perf-minimal ]
> > #!/bin/bash
> > 
> > version="$(uname -r)"
> > version="${version%%-*}"
> > shopt -s execfail
> > exec "perf_$version" "$@"
> > echo >&2 "E: not installed."
> > exit 1
> `----
> 
> In an buster environment:
> 
> ++ uname -r
> + version=4.19.0-14-amd64
> + version=4.19.0
> + shopt -s execfail
> + exec perf_4.19.0
> ./perf-minimal: line 6: exec: perf_4.19.0: not found
> + echo 'E: not installed.'
> E: not installed.
> + exit 1
> 
> In an unstable environment:
> 
> bash -x ./perf-minimal 
> ++ uname -r
> + version=4.19.0-14-amd64
> + version=4.19.0
> + shopt -s execfail
> + exec perf_4.19.0
> ./perf-minimal: line 6: exec: perf_4.19.0: not found
> 
> Regards,
> Salvatore
> 

Best Professional Regards.

-- 
-- 
Jose R R
http://metztli.it
-----------------------------------------------------------------------
Download Metztli Reiser4: Debian Buster w/ Linux 5.9.16 AMD64
-----------------------------------------------------------------------
feats ZSTD compression https://sf.net/projects/metztli-reiser4/
-----------------------------------------------------------------------
or SFRN 5.1.3, Metztli Reiser5 https://sf.net/projects/debian-reiser4/
-----------------------------------------------------------------------
Official current Reiser4 resources: https://reiser4.wiki.kernel.org/

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#983314: linux-base: perf fails to report that linux-perf-5.10 is not installed Bart Martens <bartm@debian.org> - 2021-02-22 12:10 +0100
  Processed: Re: Bug#983314: linux-base: perf fails to report that  linux-perf-5.10 is not installed "Debian Bug Tracking System" <owner@bugs.debian.org> - 2021-02-26 07:00 +0100
  Bug#983314: linux-base: perf fails to report that linux-perf-5.10 is not installed Salvatore Bonaccorso <carnil@debian.org> - 2021-02-26 07:00 +0100
    Bug#983314: linux-base: perf fails to report that linux-perf-5.10 is not installed Jose R Rodriguez <jose.r.r@metztli.com> - 2021-02-26 08:10 +0100
    Bug#983314: linux-base: perf fails to report that linux-perf-5.10 is not installed Salvatore Bonaccorso <carnil@debian.org> - 2021-02-27 17:40 +0100
  Bug#983314: marked as done (linux-base: perf fails to report that  linux-perf-5.10 is not installed) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2022-05-19 04:40 +0200

csiph-web