From 0bee016e7902c07013885353f70702900b32f759 Mon Sep 17 00:00:00 2001 From: Antonio Torres Date: Tue, 8 Jun 2021 16:14:57 +0200 Subject: [PATCH] Remove broken RPATH usage from all conflicting files Since Fedora 35, broken RPATH usage is detected and causes builds to fail: https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild This commit extends the list of files to remove the RPATH usage from. Signed-off-by: Antonio Torres --- freeradius.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freeradius.spec b/freeradius.spec index cae2c84..b1e514e 100644 --- a/freeradius.spec +++ b/freeradius.spec @@ -280,8 +280,9 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/snmp/mibs/ install -m 644 mibs/*RADIUS*.mib $RPM_BUILD_ROOT%{_datadir}/snmp/mibs/ # remove rpath where needed -chrpath --delete $RPM_BUILD_ROOT%{_libdir}/freeradius/rlm_sql_postgresql.so -chrpath --delete $RPM_BUILD_ROOT%{_libdir}/freeradius/rlm_sql_unixodbc.so +chrpath --delete $RPM_BUILD_ROOT%{_libdir}/freeradius/*.so +chrpath --delete $RPM_BUILD_ROOT/usr/sbin/radiusd +chrpath --delete $RPM_BUILD_ROOT/usr/sbin/radmin # remove unneeded stuff rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/certs/*.crt