From f16d775c965470a1085f25efa59c2f379fb90af2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Tue, 14 Jun 2011 07:55:03 +0000 Subject: [PATCH] Trying to fix rpath problem in mock builds. --- org.glite.lb.client/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/org.glite.lb.client/Makefile b/org.glite.lb.client/Makefile index 82aaf5d..576c053 100644 --- a/org.glite.lb.client/Makefile +++ b/org.glite.lb.client/Makefile @@ -400,11 +400,14 @@ check_version: ${CHECK_VERSION} ${stagedir}${prefix}/include/glite/lb/common_version.h post-install: - for file in `ls -1 ${PREFIX}${prefix}/${libdir}/*.so.*`; do \ + for file in `find ${PREFIX}${prefix}/${libdir} -type f` \ + `find ${PREFIX}${prefix}/bin -type f` \ + `find ${PREFIX}${prefix}/sbin -type f` \ + ; do \ if test -h $$file; then continue; fi; \ orpath=`chrpath -l $$file 2>/dev/null`; \ if test $$? = 0 ; then \ - rpath=`echo $$orpath | sed 's:.*RPATH=::' | sed "s:${PREFIX}:${sysroot}:g" | tr ':' '\n' | grep -v '^$$' | tr '\n' ':' | sed 's/:$$//'`; \ + rpath=`echo $$orpath | sed 's:.*RPATH=::' | sed "s:${PREFIX}${prefix}:${sysroot}${prefix}:g" | tr ':' '\n' | grep -v '^$$' | tr '\n' ':' | sed 's/:$$//'`; \ if test "$$orpath" = "$$rpath"; then continue; fi; \ chrpath -r $$rpath $$file; \ chrpath -d $$file; \ -- 1.8.2.3