import libtracefs-1.0.2-7.el9
This commit is contained in:
parent
d091dd034c
commit
e6d4feab0c
11
SOURCES/libtracefs-1.0.2-harden-linking.patch
Normal file
11
SOURCES/libtracefs-1.0.2-harden-linking.patch
Normal 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 $@ $(LIBS))
|
||||||
|
+ $(CC) --shared $^ '-Wl,-soname,$(1),-rpath=$$ORIGIN' -o $@ $(GCCLDFLAGS) $(LIBS))
|
||||||
|
|
||||||
|
do_compile_plugin_obj = \
|
||||||
|
($(print_plugin_obj_compile) \
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
Name: libtracefs
|
Name: libtracefs
|
||||||
Version: 1.0.2
|
Version: 1.0.2
|
||||||
Release: 5%{?dist}
|
Release: 7%{?dist}
|
||||||
License: LGPLv2+ and GPLv2+
|
License: LGPLv2+ and GPLv2+
|
||||||
Summary: Library for access kernel tracefs
|
Summary: Library for access kernel tracefs
|
||||||
|
|
||||||
@ -23,6 +23,7 @@ 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)
|
BuildRequires: pkgconfig(libtraceevent)
|
||||||
@ -41,12 +42,16 @@ Development headers of %{name}
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%set_build_flags
|
%set_build_flags
|
||||||
|
export GCCLDFLAGS="-Wl,-z,now"
|
||||||
%make_build prefix=%{_prefix} libdir=%{_libdir} all
|
%make_build prefix=%{_prefix} libdir=%{_libdir} all
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%set_build_flags
|
||||||
|
export GCCLDFLAGS="-Wl,-z,now"
|
||||||
%make_install prefix=%{_prefix} libdir=%{_libdir}
|
%make_install prefix=%{_prefix} libdir=%{_libdir}
|
||||||
rm -rf %{buildroot}/%{_libdir}/libtracefs.a
|
rm -rf %{buildroot}/%{_libdir}/libtracefs.a
|
||||||
|
|
||||||
@ -62,6 +67,14 @@ rm -rf %{buildroot}/%{_libdir}/libtracefs.a
|
|||||||
%{_libdir}/%{name}.so
|
%{_libdir}/%{name}.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-5
|
||||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
Related: rhbz#1991688
|
Related: rhbz#1991688
|
||||||
|
Loading…
Reference in New Issue
Block a user