%ghc_delete_rpaths: need to remove local RPATH for subpackaged libs

epel9
Jens Petersen 2 years ago
parent ce204c6b81
commit 58f3979109

@ -218,19 +218,25 @@ fi\
# ghc_delete_rpaths
%ghc_delete_rpaths\
%if %{defined _ghcdynlibdir}\
%if %{undefined disable_ghc_delete_rpaths}\
echo "running ghc_delete_rpaths:"\
if ! type chrpath > /dev/null; then exit 1; fi\
for i in $(find %{buildroot} -type f -executable -exec sh -c "file {} | grep -q 'dynamically linked'" \\; -print); do\
if [ -x "$i" ]; then\
chrpath -d $i\
%if %{defined _ghcdynlibdir}\
chrpath -d $i\
%else\
rpath=$(chrpath $i | sed -e "s@^$i: R.*PATH=@@")\
case "$rpath" in\
*$PWD/*) chrpath -r "%{ghclibdir}/lib:%{ghclibdir}/lib/%{ghcplatform}" $i ;;\
*) ;;\
esac\
%endif\
else\
echo "%%ghc_delete_rpath: no $i executable"\
exit 1\
fi\
done\
%endif\
%endif
# deprecated by ghc_delete_rpaths in F35

Loading…
Cancel
Save