From f7922c2de050ef60c80f0c0d655d316163817752 Mon Sep 17 00:00:00 2001 From: William Cohen Date: Wed, 2 Jun 2021 14:40:05 -0400 Subject: [PATCH] Scrub rpaths from all executables. --- papi.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/papi.spec b/papi.spec index 307d5b0..ded9dbd 100644 --- a/papi.spec +++ b/papi.spec @@ -11,7 +11,7 @@ Summary: Performance Application Programming Interface Name: papi Version: 6.0.0 -Release: 7%{?dist} +Release: 8%{?dist} License: BSD Requires: papi-libs = %{version}-%{release} URL: http://icl.cs.utk.edu/papi/ @@ -152,7 +152,8 @@ rm -rf $RPM_BUILD_ROOT cd src make DESTDIR=$RPM_BUILD_ROOT LDCONFIG=/bin/true install-all -chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so* +# Scrub the rpath/runpath from all the binaries. +find %{buildroot} -type f -executable ! -iname "*.py" ! -iname "*.sh" | xargs chrpath --delete %files %{_bindir}/* @@ -190,6 +191,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so* %endif %changelog +* Wed Jun 2 2021 William Cohen - 6.0.0-8 +- Scrub rpaths from all executables. + * Thu Jan 28 2021 William Cohen - 6.0.0-7 - By default disable genaration of static libraries.