%ghc_delete_rpaths: need to remove local RPATH for subpackaged libs
This commit is contained in:
parent
ce204c6b81
commit
58f3979109
12
macros.ghc
12
macros.ghc
@ -218,19 +218,25 @@ fi\
|
|||||||
|
|
||||||
# ghc_delete_rpaths
|
# ghc_delete_rpaths
|
||||||
%ghc_delete_rpaths\
|
%ghc_delete_rpaths\
|
||||||
%if %{defined _ghcdynlibdir}\
|
|
||||||
%if %{undefined disable_ghc_delete_rpaths}\
|
%if %{undefined disable_ghc_delete_rpaths}\
|
||||||
echo "running ghc_delete_rpaths:"\
|
echo "running ghc_delete_rpaths:"\
|
||||||
if ! type chrpath > /dev/null; then exit 1; fi\
|
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\
|
for i in $(find %{buildroot} -type f -executable -exec sh -c "file {} | grep -q 'dynamically linked'" \\; -print); do\
|
||||||
if [ -x "$i" ]; then\
|
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\
|
else\
|
||||||
echo "%%ghc_delete_rpath: no $i executable"\
|
echo "%%ghc_delete_rpath: no $i executable"\
|
||||||
exit 1\
|
exit 1\
|
||||||
fi\
|
fi\
|
||||||
done\
|
done\
|
||||||
%endif\
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# deprecated by ghc_delete_rpaths in F35
|
# deprecated by ghc_delete_rpaths in F35
|
||||||
|
Loading…
Reference in New Issue
Block a user