Compare commits

...

No commits in common. "c9-beta" and "c8-beta" have entirely different histories.

4 changed files with 27 additions and 45 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/libtracefs-1.8.1.tar.gz SOURCES/libtracefs-1.3.1.tar.gz

View File

@ -1 +1 @@
a633cf5c20eb287fc9aaadaac3508eb1a300f53e SOURCES/libtracefs-1.8.1.tar.gz 400dc7422f22b86ab64f2adaaf0a2d106e4b0261 SOURCES/libtracefs-1.3.1.tar.gz

View File

@ -0,0 +1,11 @@
--- a/scripts/utils.mk
+++ b/scripts/utils.mk
@@ -56,7 +56,7 @@
do_compile_shared_library = \
($(print_shared_lib_compile) \
- $(CC) --shared $^ '-Wl,-soname,$(1),-rpath=$$ORIGIN' -o $@ $(LDFLAGS) $(LIBS))
+ $(CC) --shared $^ '-Wl,-soname,$(1),-rpath=$$ORIGIN' -o $@ $(GCCLDFLAGS) $(LDFLAGS) $(LIBS))
do_compile_plugin_obj = \
($(print_plugin_obj_compile) \

View File

@ -10,8 +10,8 @@
%global _lto_cflags %nil %global _lto_cflags %nil
Name: libtracefs Name: libtracefs
Version: 1.8.1 Version: 1.3.1
Release: 2%{?dist} Release: 3%{?dist}
License: LGPLv2+ and GPLv2+ License: LGPLv2+ and GPLv2+
Summary: Library for access kernel tracefs Summary: Library for access kernel tracefs
@ -23,11 +23,10 @@ URL: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
#Source0: libtracefs-%%{version}.tar.gz #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-%%{commit}.tar.gz
Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%{version}.tar.gz Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%{version}.tar.gz
Patch0: libtracefs-1.0.2-harden-linking.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: make BuildRequires: make
BuildRequires: pkgconfig(libtraceevent) >= 1.8.0 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 %description
libtracefs is a library for accessing kernel tracefs libtracefs is a library for accessing kernel tracefs
@ -41,6 +40,7 @@ Development headers of %{name}
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
%set_build_flags %set_build_flags
@ -56,7 +56,8 @@ rm -rf %{buildroot}/%{_libdir}/libtracefs.a
%files %files
%license LICENSES/LGPL-2.1 %license LICENSES/LGPL-2.1
%license LICENSES/GPL-2.0 %license LICENSES/GPL-2.0
%{_libdir}/%{name}.so.* %{_libdir}/%{name}.so.1
%{_libdir}/%{name}.so.1.3.1
%files devel %files devel
%{_includedir}/tracefs/tracefs.h %{_includedir}/tracefs/tracefs.h
@ -64,43 +65,13 @@ rm -rf %{buildroot}/%{_libdir}/libtracefs.a
%{_libdir}/%{name}.so %{_libdir}/%{name}.so
%changelog %changelog
* Mon Mar 03 2025 Jerome Marchand <jmarchan@redhat.com> - 1.8.1-2 * Thu Sep 07 2023 Jerome Marchand <jmarchan@redhat.com> - 1.3.1-3
- Rebuild without side-tags (RHEL-81923) - Add gating (rhbz#2171394)
* Mon Feb 24 2025 Jerome Marchand <jmarchan@redhat.com> - 1.8.1-1 * Thu Feb 2 2023 Michael Petlan <mpetlan@redhat.com> - 1.3.1-2
- Rebase to 1.8.1 (Related: RHEL-76155) - Remove conflict with trace-cmd
Related: rhbz#2159965
* Fri Aug 16 2024 Jerome Marchand <jmarchan@redhat.com> - 1.6.4-1 * Mon Nov 23 2020 Zamir SUN <sztsian@gmail.com> - 1.3.1-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 - Initial libtracefs
Related: rhbz#2075198