Compare commits
No commits in common. "c10s" and "c9-beta" have entirely different histories.
9
.gitignore
vendored
9
.gitignore
vendored
@ -1,8 +1 @@
|
||||
/libtracefs-1.0.2.tar.gz
|
||||
/libtracefs-1.1.1.tar.gz
|
||||
/libtracefs-1.2.5.tar.gz
|
||||
/libtracefs-1.3.1.tar.gz
|
||||
/libtracefs-1.5.0.tar.gz
|
||||
/libtracefs-1.6.4.tar.gz
|
||||
/libtracefs-1.8.0.tar.gz
|
||||
/libtracefs-1.8.2.tar.gz
|
||||
SOURCES/libtracefs-1.6.4.tar.gz
|
||||
|
1
.libtracefs.metadata
Normal file
1
.libtracefs.metadata
Normal file
@ -0,0 +1 @@
|
||||
66a7a64e69d049e52a61923e6b448dc42041c844 SOURCES/libtracefs-1.6.4.tar.gz
|
100
SPECS/libtracefs.spec
Normal file
100
SPECS/libtracefs.spec
Normal file
@ -0,0 +1,100 @@
|
||||
# git tag
|
||||
#%%global commit 4f24f98960c223e56329519bb90a90f0b2ad813f
|
||||
#%%global commitdate 20201120
|
||||
#%%global shortcommit %%(c=%%{commit}; echo ${c:0:7})
|
||||
|
||||
# LTO causes linking issues randomly like
|
||||
# lto1: internal compiler error: resolution sub id 0x7136344381f3059f not in object file
|
||||
# So disabling LTO at this moment.
|
||||
|
||||
%global _lto_cflags %nil
|
||||
|
||||
Name: libtracefs
|
||||
Version: 1.6.4
|
||||
Release: 1%{?dist}
|
||||
License: LGPLv2+ and GPLv2+
|
||||
Summary: Library for access kernel tracefs
|
||||
|
||||
URL: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
|
||||
# If upstream does not provide tarballs, to generate:
|
||||
# git clone git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git
|
||||
# cd libtracefs
|
||||
# git archive --prefix=libtracefs-%%{version}/ -o libtracefs-%%{version}.tar.gz %%{git_commit}
|
||||
#Source0: libtracefs-%%{version}.tar.gz
|
||||
#Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%%{commit}.tar.gz
|
||||
Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%{version}.tar.gz
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: pkgconfig(libtraceevent)
|
||||
# The libtracefs is meant to be used by perf, trace-cmd etc. in the future, before it's ready in perf, let's add a conflict
|
||||
Conflicts: trace-cmd < 2.9.1-6
|
||||
|
||||
%description
|
||||
libtracefs is a library for accessing kernel tracefs
|
||||
|
||||
%package devel
|
||||
Summary: Development headers of %{name}
|
||||
Requires: %{name}%{_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Development headers of %{name}
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%set_build_flags
|
||||
export GCCLDFLAGS="-Wl,-z,now"
|
||||
%make_build prefix=%{_prefix} libdir=%{_libdir} all
|
||||
|
||||
%install
|
||||
%set_build_flags
|
||||
export GCCLDFLAGS="-Wl,-z,now"
|
||||
%make_install prefix=%{_prefix} libdir=%{_libdir}
|
||||
rm -rf %{buildroot}/%{_libdir}/libtracefs.a
|
||||
|
||||
%files
|
||||
%license LICENSES/LGPL-2.1
|
||||
%license LICENSES/GPL-2.0
|
||||
%{_libdir}/%{name}.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/tracefs/tracefs.h
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%{_libdir}/%{name}.so
|
||||
|
||||
%changelog
|
||||
* Fri Aug 16 2024 Jerome Marchand <jmarchan@redhat.com> - 1.6.4-1
|
||||
- Rebase to 1.6.4 (RHEL-36547)
|
||||
|
||||
* Tue Aug 30 2022 Michael Petlan <mpetlan@redhat.com> - 1.3.1-1
|
||||
- Rebase to 1.3.1
|
||||
Related: rhbz#2075215
|
||||
|
||||
* Fri Jan 14 2022 Michael Petlan <mpetlan@redhat.com> - 1.0.2-7
|
||||
- Harden library linking; add the flags to install section too
|
||||
Related: rhbz#2038853
|
||||
|
||||
* Wed Jan 12 2022 Michael Petlan <mpetlan@redhat.com> - 1.0.2-6
|
||||
- Harden library linking
|
||||
Related: rhbz#2038853
|
||||
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-5
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
||||
* Thu Apr 22 2021 Jerome Marchand <jmarchan@redhat.com> - 1.0.2-4
|
||||
- Kernelshark rebuild
|
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-3
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
* Wed Mar 24 2021 Jerome Marchand <jmarchan@redhat.com> - 1.0.2-2
|
||||
- Remove conflict for latest trace-cmd
|
||||
|
||||
* Mon Feb 08 2021 Zamir SUN <sztsian@gmail.com> - 1.0.2-1
|
||||
- Update to 1.0.2
|
||||
|
||||
* Mon Nov 23 2020 Zamir SUN <sztsian@gmail.com> - 0-0.1.20201120git4f24f98
|
||||
- Initial libtracefs
|
||||
|
@ -1,6 +0,0 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
125
libtracefs.spec
125
libtracefs.spec
@ -1,125 +0,0 @@
|
||||
Name: libtracefs
|
||||
Version: 1.8.2
|
||||
Release: 1%{?dist}
|
||||
License: LGPL-2.1-or-later AND GPL-2.0-or-later AND GPL-2.0-only
|
||||
Summary: Library for access kernel tracefs
|
||||
|
||||
URL: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
|
||||
Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: pkgconfig(libtraceevent) >= 1.8.0
|
||||
# The libtracefs is meant to be used by perf, trace-cmd etc. in the future, before it's ready in perf, let's add a conflict
|
||||
Conflicts: trace-cmd < 2.9.1-6
|
||||
|
||||
%description
|
||||
libtracefs is a library for accessing kernel tracefs
|
||||
|
||||
%package devel
|
||||
Summary: Development headers of %{name}
|
||||
Requires: %{name}%{_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Development headers of %{name}
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%set_build_flags
|
||||
# parallel compiling don't always work
|
||||
make -O -j1 V=1 VERBOSE=1 prefix=%{_prefix} libdir=%{_libdir} all
|
||||
|
||||
%install
|
||||
%make_install prefix=%{_prefix} libdir=%{_libdir}
|
||||
rm -rf %{buildroot}/%{_libdir}/libtracefs.a
|
||||
|
||||
%files
|
||||
%license LICENSES/LGPL-2.1
|
||||
%license LICENSES/GPL-2.0
|
||||
%{_libdir}/%{name}.so.1
|
||||
%{_libdir}/%{name}.so.%{version}
|
||||
%{bash_completions_dir}/tracefs_sql.bash
|
||||
|
||||
%files devel
|
||||
%{_includedir}/tracefs/tracefs.h
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%{_libdir}/%{name}.so
|
||||
|
||||
%changelog
|
||||
* Wed Jun 18 2025 Jerome Marchand <jmarchan@redhat.com> - 1.8.2-1
|
||||
- Rebase to version 1.8.2 (RHEL-94793)
|
||||
|
||||
* Wed May 28 2025 Tomas Glozar <tglozar@redhat.com> - 1.8.0-7
|
||||
- Fix read file failure code checking
|
||||
Resolves: RHEL-93863
|
||||
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.8.0-6
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Wed Jul 10 2024 Jerome Marchand <jmarchan@redhat.com> - 1.8.0-5
|
||||
- Fix SAST vulnerabilities (RHEL-40413)
|
||||
|
||||
* Tue Jul 09 2024 Jerome Marchand <jmarchan@redhat.com> - 1.8.0-4
|
||||
- Build with LTO (RHEL-46715)
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.8.0-3
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Tue Jan 23 2024 Zamir SUN <sztsian@gmail.com> - 1.8.0-1
|
||||
- Update to 1.8.0 (RHBZ#2213357)
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Mon Jun 05 2023 Zamir SUN <sztsian@gmail.com> - 1.6.4-2
|
||||
- SPDX migration
|
||||
|
||||
* Wed Apr 05 2023 Zamir SUN <sztsian@gmail.com> - 1.6.4-1
|
||||
- Update to 1.6.4
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Tue Oct 11 2022 Zamir SUN <sztsian@gmail.com> - 1.5.0-1
|
||||
- Update to 1.5.0
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Fri Apr 15 2022 Zamir SUN <sztsian@gmail.com> - 1.3.1-2
|
||||
- Update with newer libtracefs
|
||||
|
||||
* Wed Apr 13 2022 Zamir SUN <sztsian@gmail.com> - 1.3.1-1
|
||||
- Update to 1.3.1
|
||||
|
||||
* Tue Feb 15 2022 Zamir SUN <sztsian@gmail.com> - 1.2.5-1
|
||||
- Update to 1.2.5
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
|
||||
* Mon Apr 19 2021 Zamir SUN <sztsian@gmail.com> - 1.1.1-1
|
||||
- Update to 1.1.1
|
||||
|
||||
* Wed Mar 24 2021 Jerome Marchand <jmarchan@redhat.com> - 1.0.2-2
|
||||
- Remove conflict for latest trace-cmd
|
||||
|
||||
* Mon Feb 08 2021 Zamir SUN <sztsian@gmail.com> - 1.0.2-1
|
||||
- Update to 1.0.2
|
||||
|
||||
* Mon Nov 23 2020 Zamir SUN <sztsian@gmail.com> - 0-0.1.20201120git4f24f98
|
||||
- Initial libtracefs
|
||||
|
1
sources
1
sources
@ -1 +0,0 @@
|
||||
SHA512 (libtracefs-1.8.2.tar.gz) = a4437f40b97c700a643e4a232876b44415f91043b474787784e513d18eafa071a07c9b6431185914a97b258ea6ef89bab247e2feead0366144502e7c95b8c9fd
|
@ -1,29 +0,0 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
if rpm -q --quiet libtracefs; then
|
||||
:
|
||||
else
|
||||
sudo dnf install -y libtracefs
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "install of libtracefs failed!"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "The libtracefs is meant to be used by perf, trace-cmd etc. Check installation."
|
||||
if [[ ! -f /usr/lib64/libtracefs.so.1 ]]; then
|
||||
echo "/usr/lib64/libtracefs.so.1 not found!"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
echo "Check the trace-cmd works."
|
||||
if ! rpm -q --quiet trace-cmd; then
|
||||
sudo dnf install -y trace-cmd
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "install trace-cmd failed when libtracefs exist!"
|
||||
exit 3
|
||||
fi
|
||||
fi
|
||||
trace-cmd list || exit 4
|
||||
|
||||
exit 0
|
@ -1,11 +0,0 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
tests:
|
||||
- simple:
|
||||
dir: scripts
|
||||
run: ./run_tests.sh
|
||||
required_packages:
|
||||
- libtracefs trace-cmd
|
Loading…
Reference in New Issue
Block a user