perf: stop building libtraceevent into perf
Make perf depend on libtraceevent instead of building it in, which resolves installation conflicts between perf and libtraceevent when both are being installed. Signed-off-by: Li Nan <linan122@huawei.com>
This commit is contained in:
parent
8168529297
commit
c965be6696
12
kernel.spec
12
kernel.spec
@ -11,7 +11,7 @@
|
||||
%global upstream_sublevel 0
|
||||
%global devel_release 249
|
||||
%global maintenance_release .0.0
|
||||
%global pkg_release .152
|
||||
%global pkg_release .153
|
||||
|
||||
%define with_debuginfo 1
|
||||
# Do not recompute the build-id of vmlinux in find-debuginfo.sh
|
||||
@ -126,6 +126,7 @@ ExclusiveOS: Linux
|
||||
%if %{with_perf}
|
||||
BuildRequires: flex xz-devel libzstd-devel
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: libtraceevent-devel > 1.2.1-4
|
||||
%ifarch aarch64
|
||||
BuildRequires: OpenCSD
|
||||
%endif
|
||||
@ -187,6 +188,7 @@ the kernel source.
|
||||
%if %{with_perf}
|
||||
%package -n perf
|
||||
Summary: Performance monitoring for the Linux kernel
|
||||
Requires: libtraceevent > 1.2.1-4
|
||||
%description -n perf
|
||||
This package contains the perf tool, which enables performance monitoring
|
||||
of the Linux kernel.
|
||||
@ -667,6 +669,9 @@ popd
|
||||
%endif
|
||||
# remove the 'trace' symlink.
|
||||
rm -f %{buildroot}%{_bindir}/trace
|
||||
# remove any traceevent files, those files should already ship with
|
||||
# libtraceevent package.
|
||||
rm -rf %{buildroot}%{_libdir}/traceevent
|
||||
|
||||
# remove examples
|
||||
rm -rf %{buildroot}/usr/lib/perf/examples
|
||||
@ -838,8 +843,6 @@ fi
|
||||
%files -n perf
|
||||
%{_bindir}/perf
|
||||
%{_libdir}/libperf-jvmti.so
|
||||
%dir %{_libdir}/traceevent
|
||||
%{_libdir}/traceevent/plugins/
|
||||
%{_libexecdir}/perf-core
|
||||
%{_datadir}/perf-core/
|
||||
%{_mandir}/man[1-8]/perf*
|
||||
@ -924,6 +927,9 @@ fi
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Feb 18 2025 Li Nan <linan122@huawei.com> - 5.10.0-249.0.0.153
|
||||
- perf: no longer complie libtraceevent into perf
|
||||
|
||||
* Wed Feb 12 2025 Li Nan <linan122@huawei.com> - 5.10.0-249.0.0.152
|
||||
- !15061 ALSA: seq: oss: Fix races at processing SysEx messages
|
||||
- ALSA: seq: oss: Fix races at processing SysEx messages
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user