|
|
|
@ -2,16 +2,15 @@
|
|
|
|
|
#%%global git_commit trace-cmd-v2.6.2
|
|
|
|
|
#%%global git_commit 57371aaa2f469d0ba15fd85276deca7bfdd7ce36
|
|
|
|
|
|
|
|
|
|
%global srcversion 2.9.2
|
|
|
|
|
%global srcversion 3.3.1
|
|
|
|
|
|
|
|
|
|
Name: trace-cmd
|
|
|
|
|
Version: %{srcversion}
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
License: GPLv2 and LGPLv2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
License: LGPL-2.1-only AND LGPL-2.1-or-later AND GPL-2.0-only AND GPL-2.0-or-later
|
|
|
|
|
Summary: A user interface to Ftrace
|
|
|
|
|
Requires: libtracecmd
|
|
|
|
|
Requires: libtracefs
|
|
|
|
|
Requires: libtraceevent
|
|
|
|
|
|
|
|
|
|
ExcludeArch: %{ix86} %{arm}
|
|
|
|
|
|
|
|
|
|
URL: http://git.kernel.org/?p=linux/kernel/git/rostedt/trace-cmd.git;a=summary
|
|
|
|
|
# If upstream does not provide tarballs, to generate:
|
|
|
|
@ -22,27 +21,30 @@ Source0: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/t
|
|
|
|
|
Source1: trace-cmd.conf
|
|
|
|
|
Source2: trace-cmd.service
|
|
|
|
|
Source3: 98-trace-cmd.rules
|
|
|
|
|
Patch0: trace-cmd-Fix-broken-profile-command.patch
|
|
|
|
|
Patch1: trace-cmd-utils.mk-don-t-ignore-LDFLAGS-when-linking-the-share.patch
|
|
|
|
|
Patch2: trace-cmd-Remove-last-elements-of-local-libtracefs-a.patch
|
|
|
|
|
Patch0: trace-cmd-lib-Prevent-a-memory-leak-in-handle_option.patch
|
|
|
|
|
Patch1: trace-cmd-record-Prevent-a-memory-leak-in-show_error.patch
|
|
|
|
|
Patch2: trace-cmd-lib-Check-the-return-value-of-do_lseek-in-.patch
|
|
|
|
|
Patch3: trace-cmd-dump-Prevent-buffer-overrun-in-dump_clock.patch
|
|
|
|
|
Patch4: trace-cmd-record-Prevent-memory-leak-in-setup_networ.patch
|
|
|
|
|
Patch5: trace-cmd-lib-Prevent-memory-leak-in-tracecmd_create.patch
|
|
|
|
|
Patch6: trace-cmd-mem-Prevent-a-memory-leak-in-trace_mem.patch
|
|
|
|
|
Patch7: trace-cmd-record-Check-the-length-of-the-protocol-ve.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: xmlto
|
|
|
|
|
BuildRequires: asciidoc
|
|
|
|
|
BuildRequires: mlocate
|
|
|
|
|
BuildRequires: graphviz doxygen
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
|
BuildRequires: freeglut-devel
|
|
|
|
|
BuildRequires: json-c-devel
|
|
|
|
|
BuildRequires: libtraceevent-devel
|
|
|
|
|
BuildRequires: libtracefs-devel
|
|
|
|
|
BuildRequires: libtraceevent-devel >= 1.8.0
|
|
|
|
|
BuildRequires: libtracefs-devel >= 1.8.0
|
|
|
|
|
BuildRequires: audit-libs-devel
|
|
|
|
|
BuildRequires: chrpath
|
|
|
|
|
BuildRequires: swig
|
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
|
BuildRequires: libtracecmd-devel
|
|
|
|
|
BuildRequires: libzstd-devel
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
trace-cmd is a user interface to Ftrace. Instead of needing to use the
|
|
|
|
@ -52,27 +54,11 @@ tracers and will record into a data file.
|
|
|
|
|
%package python3
|
|
|
|
|
Summary: Python plugin support for trace-cmd
|
|
|
|
|
Requires: trace-cmd%{_isa} = %{version}-%{release}
|
|
|
|
|
BuildRequires: swig
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
|
|
%description python3
|
|
|
|
|
Python plugin support for trace-cmd
|
|
|
|
|
|
|
|
|
|
%package -n libtracecmd
|
|
|
|
|
Summary: Libraries of trace-cmd
|
|
|
|
|
Version: 0
|
|
|
|
|
|
|
|
|
|
%description -n libtracecmd
|
|
|
|
|
The libtracecmd library
|
|
|
|
|
|
|
|
|
|
%package -n libtracecmd-devel
|
|
|
|
|
Summary: Development files for libtracecmd
|
|
|
|
|
Version: 0
|
|
|
|
|
Requires: libtracecmd%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n libtracecmd-devel
|
|
|
|
|
Development files of the libtracecmd library
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n %{name}-v%{srcversion}
|
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
@ -80,23 +66,19 @@ cp %{SOURCE2} .
|
|
|
|
|
cp %{SOURCE3} .
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%set_build_flags
|
|
|
|
|
export CFLAGS="%{optflags} -D_GNU_SOURCE"
|
|
|
|
|
export BUILD_TYPE="Release"
|
|
|
|
|
|
|
|
|
|
# MANPAGE_DOCBOOK_XSL define is hack to avoid using locate
|
|
|
|
|
MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl`
|
|
|
|
|
make V=1 MANPAGE_DOCBOOK_XSL=$MANPAGE_DOCBOOK_XSL \
|
|
|
|
|
CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{build_ldflags}" BUILD_TYPE=Release \
|
|
|
|
|
make V=9999999999 MANPAGE_DOCBOOK_XSL=$MANPAGE_DOCBOOK_XSL \
|
|
|
|
|
prefix=%{_prefix} libdir=%{_libdir} \
|
|
|
|
|
PYTHON_VERS=python3 all_cmd doc libs
|
|
|
|
|
PYTHON_VERS=python3 all_cmd doc
|
|
|
|
|
for i in python/*.py ; do
|
|
|
|
|
sed -i 's/env python2/python3/g' $i
|
|
|
|
|
done
|
|
|
|
|
chrpath --delete tracecmd/trace-cmd lib/trace-cmd/libtracecmd.so.0.0.1
|
|
|
|
|
chrpath --delete tracecmd/trace-cmd
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make V=1 libdir=%{_libdir} prefix=%{_prefix} DESTDIR=%{buildroot}/ \
|
|
|
|
|
install install_doc install_python install_libs
|
|
|
|
|
make libdir=%{_libdir} prefix=%{_prefix} V=1 DESTDIR=%{buildroot}/ CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{build_ldflags} -z muldefs " BUILD_TYPE=Release install install_doc install_python
|
|
|
|
|
find %{buildroot}%{_mandir} -type f | xargs chmod u-x,g-x,o-x
|
|
|
|
|
find %{buildroot}%{_datadir} -type f | xargs chmod u-x,g-x,o-x
|
|
|
|
|
find %{buildroot}%{_libdir} -type f -iname "*.so" | xargs chmod 0755
|
|
|
|
@ -106,6 +88,8 @@ mkdir -p -m755 %{buildroot}/%{_udevrulesdir}/
|
|
|
|
|
install -p -m 644 trace-cmd.conf %{buildroot}/%{_sysconfdir}/sysconfig/
|
|
|
|
|
install -p -m 644 trace-cmd.service %{buildroot}/%{_unitdir}/
|
|
|
|
|
install -p -m 644 98-trace-cmd.rules %{buildroot}/%{_udevrulesdir}/
|
|
|
|
|
rm -rf %{buildroot}/%{_docdir}/libtracecmd-doc
|
|
|
|
|
rm -rf %{buildroot}/%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun %{name}.service
|
|
|
|
@ -115,6 +99,7 @@ install -p -m 644 98-trace-cmd.rules %{buildroot}/%{_udevrulesdir}/
|
|
|
|
|
%{_bindir}/trace-cmd
|
|
|
|
|
%{_mandir}/man1/%{name}*
|
|
|
|
|
%{_mandir}/man5/%{name}*
|
|
|
|
|
%{_docdir}/trace-cmd/trace-cmd*.html
|
|
|
|
|
%{_sysconfdir}/bash_completion.d/trace-cmd.bash
|
|
|
|
|
%{_sysconfdir}/sysconfig/trace-cmd.conf
|
|
|
|
|
%{_unitdir}/trace-cmd.service
|
|
|
|
@ -124,45 +109,74 @@ install -p -m 644 98-trace-cmd.rules %{buildroot}/%{_udevrulesdir}/
|
|
|
|
|
%doc Documentation/README.PythonPlugin
|
|
|
|
|
%{_libdir}/%{name}/python/
|
|
|
|
|
|
|
|
|
|
%files -n libtracecmd
|
|
|
|
|
%doc COPYING COPYING.LIB README
|
|
|
|
|
%{_libdir}/libtracecmd.so.0
|
|
|
|
|
%{_libdir}/libtracecmd.so.0.0.1
|
|
|
|
|
%{_docdir}/libtracecmd-doc
|
|
|
|
|
%{_mandir}/man3/libtracecmd*
|
|
|
|
|
%{_mandir}/man3/tracecmd*
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Nov 28 2024 Jerome Marchand <jmarchan@redhat.com> - 3.3.1-1
|
|
|
|
|
- Rebase to 3.3.1 and backport further SAST patches (RHEL-40111)
|
|
|
|
|
|
|
|
|
|
%files -n libtracecmd-devel
|
|
|
|
|
%{_libdir}/pkgconfig/libtracecmd.pc
|
|
|
|
|
%{_libdir}/libtracecmd.so
|
|
|
|
|
%{_includedir}/trace-cmd
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 3.2-5
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jul 21 2023 Jerome Marchand <jmarchan@redhat.com> - 2.9.2-10
|
|
|
|
|
- Remove remaining trace of libtracefs and libtraceevent
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 3.2-4
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.2-4
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 03 2024 Jerome Marchand <jmarchan@redhat.com> - 3.2-3
|
|
|
|
|
- Drop useless mlocate dependency (RHEL-39377)
|
|
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 23 2024 Zamir SUN <sztsian@gmail.com> - 3.2
|
|
|
|
|
- Update to 3.2 (#2213350)
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.6-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 22 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 3.1.6-3
|
|
|
|
|
- Remove lingering kernelshark dependencies
|
|
|
|
|
|
|
|
|
|
* Mon Jun 05 2023 Zamir SUN <sztsian@gmail.com> - 3.1.6-2
|
|
|
|
|
- SPDX migration
|
|
|
|
|
|
|
|
|
|
* Tue Apr 18 2023 Zamir SUN <sztsian@gmail.com> - 3.1.6-1
|
|
|
|
|
- Update to 3.1.6
|
|
|
|
|
|
|
|
|
|
* Fri Mar 31 2023 Jerome Marchand <jmarchan@redhat.com> - 3.1.4-3
|
|
|
|
|
- Fix build: RHBZ#2171770
|
|
|
|
|
- Also remove explicit lib dependency that fedpkg lint complains about.
|
|
|
|
|
|
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Oct 11 2022 Zamir SUN <sztsian@gmail.com> - 3.1.4-1
|
|
|
|
|
- Update to 3.1.4
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Mar 31 2022 Jerome Marchand <jmarchan@redhat.com> - 2.9.2-9
|
|
|
|
|
- Add flight recorder service
|
|
|
|
|
* Fri Apr 15 2022 Zamir SUN <sztsian@gmail.com> - 3.0.3-2
|
|
|
|
|
- Get rid of the libtracecmd man pages
|
|
|
|
|
|
|
|
|
|
* Fri Nov 12 2021 Jerome Marchand <jmarchan@redhat.com> - 2.9.2-8
|
|
|
|
|
- Fix remaining gating runpath failure
|
|
|
|
|
* Wed Apr 13 2022 Zamir SUN <sztsian@gmail.com> - 3.0.3-1
|
|
|
|
|
- Update to 3.0.3
|
|
|
|
|
|
|
|
|
|
* Thu Nov 11 2021 Jerome Marchand <jmarchan@redhat.com> - 2.9.2-7
|
|
|
|
|
- Fix rpminspect gating failures (runpath and annocheck)
|
|
|
|
|
- Specfile cleanups
|
|
|
|
|
* Fri Mar 18 2022 KUDOH Takashi <t-kudoh@fujitsu.com> - 2.9.7-2
|
|
|
|
|
- Add flight recoder service
|
|
|
|
|
|
|
|
|
|
* Thu Nov 11 2021 Jerome Marchand <jmarchan@redhat.com> - 2.9.2-6
|
|
|
|
|
- Fix trace-cmd profile
|
|
|
|
|
* Wed Feb 16 2022 Zamir SUN <sztsian@gmail.com> - 2.9.7-1
|
|
|
|
|
- Update to 2.9.7
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.9.2-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Apr 22 2021 Jerome Marchand <jmarchan@redhat.com> - 2.9.2-4
|
|
|
|
|
- Kernelshark rebuild
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.9.2-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Fri Apr 23 2021 Jerome Marchand <jmarchan@redhat.com> - 2.9.2-3
|
|
|
|
|
- Build w/o rpath as per Fedora packaging guideline
|
|
|
|
|
|
|
|
|
|
* Mon Mar 29 2021 Zamir SUN <sztsian@gmail.com> - 2.9.2-2
|
|
|
|
|
- Fix dependency of libtracecmd
|
|
|
|
|