no exec RPATH on arm with current ghc

epel9
Jens Petersen 11 years ago
parent 9ec2eb0e21
commit 753e6b1a1b

@ -91,10 +91,12 @@ install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
## modify: ## modify:
#%%ghc_fix_dynamic_rpath shellcheck #%%ghc_fix_dynamic_rpath shellcheck
# since shellcheck-%{version}/ != %{pkg_name}-%{version}/ # since shellcheck-%{version}/ != %{pkg_name}-%{version}/
%if %{undefined ghc_without_dynamic}
PDIR=$(cd ..; pwd) PDIR=$(cd ..; pwd)
PROG=%{buildroot}%{_bindir}/shellcheck PROG=%{buildroot}%{_bindir}/shellcheck
NEWRPATH=$(chrpath $PROG | sed -e "s@^$PROG: RPATH=@@" | sed -e "s@$PDIR/shellcheck@%{ghclibdir}/%{pkg_name}@" -e "s@/dist/build@@g") NEWRPATH=$(chrpath $PROG | sed -e "s@^$PROG: RPATH=@@" | sed -e "s@$PDIR/shellcheck@%{ghclibdir}/%{pkg_name}@" -e "s@/dist/build@@g")
chrpath -r $NEWRPATH $PROG chrpath -r $NEWRPATH $PROG
%endif
%check %check

Loading…
Cancel
Save