From 508c8f0746c6db1f0be8f394e36f42ddbdd73a3f Mon Sep 17 00:00:00 2001 From: Antonio Torres Date: Tue, 29 Jun 2021 16:26:48 +0200 Subject: [PATCH] Fix rpath not being removed correctly Signed-off-by: Antonio Torres --- freeradius.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/freeradius.spec b/freeradius.spec index 370b951..cbf9ae5 100644 --- a/freeradius.spec +++ b/freeradius.spec @@ -1,7 +1,7 @@ Summary: High-performance and highly configurable free RADIUS server Name: freeradius Version: 3.0.23 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ and LGPLv2+ URL: http://www.freeradius.org/ @@ -280,8 +280,8 @@ install -m 644 mibs/*RADIUS*.mib $RPM_BUILD_ROOT%{_datadir}/snmp/mibs/ # remove rpath where needed chrpath --delete $RPM_BUILD_ROOT%{_libdir}/freeradius/*.so -chrpath --delete $RPM_BUILD_ROOT/usr/sbin/* || true -chrpath --delete $RPM_BUILD_ROOT/usr/bin/* || true +for f in $RPM_BUILD_ROOT/usr/sbin/*; do chrpath --delete $f || true; done +for f in $RPM_BUILD_ROOT/usr/bin/*; do chrpath --delete $f || true; done # update ld with freeradius libs mkdir -p %{buildroot}/%{_sysconfdir}/ld.so.conf.d @@ -894,6 +894,9 @@ exit 0 %attr(640,root,radiusd) %config(noreplace) /etc/raddb/mods-available/rest %changelog +* Tue Jun 29 2021 Antonio Torres - 3.0.23-2 +- Fix rpath not being removed correctly + * Tue Jun 29 2021 Antonio Torres - 3.0.23-2 - Remove RPATH usage from additional binaries