From 58dfc1cac6bf237179b74f20450a8871501ee062 Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Sun, 25 Jul 2021 19:53:20 +0200 Subject: [PATCH] Remove RPATH --- suitesparse.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/suitesparse.spec b/suitesparse.spec index e1c87c7..102df2e 100644 --- a/suitesparse.spec +++ b/suitesparse.spec @@ -30,11 +30,6 @@ %global blaslib openblas %endif -# Workaround until we find a way to fix the incorrect RPATH -# (since it points to /builddir/build/BUILD/ it is not a security issue) -# https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild -%global __brp_check_rpaths %{nil} - Name: suitesparse Version: 5.10.1 Release: 1%{?dist} @@ -47,6 +42,7 @@ Source0: https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/ BuildRequires: make BuildRequires: gcc BuildRequires: gcc-c++ +BuildRequires: patchelf BuildRequires: metis-devel BuildRequires: %{blaslib}-devel @@ -375,6 +371,9 @@ do popd done +# Remove invalid RPATH pointing to BUILDROOT +# Required after https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild +patchelf --remove-rpath ${RPM_BUILD_ROOT}%{_libdir}/*.so* %check export AUTOCC=no