From: Michael Petlan <mpetlan(a)redhat.com>
[redhat] spec: Add bzip2 dependency to perf package
Bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1957219
RHEL-only
description
===========
Adding explicit bzip2 dependency for perf tool. The bzip2
is used in perf archive script command, and without bzip2
command it fails, like:
$ perf archive
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
With explicit bzip2 dependency we're ok:
$ rpm -qp --requires perf-...rpm | grep bzip2
bzip2
Signed-off-by: Michael Petlan <mpetlan(a)redhat.com>
diff a/redhat/kernel.spec.template b/redhat/kernel.spec.template
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -853,6 +853,7 @@ It provides the kernel source files common to all builds.
%if %{with_perf}
%package -n perf
Summary: Performance monitoring for the Linux kernel
+Requires: bzip2
License: GPLv2
%description -n perf
This package contains the perf tool, which enables performance monitoring
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1103