From 0dd634c574c825c9f3cfd65dee1f02d7eb13b60b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 7 May 2013 15:40:46 +0900 Subject: [PATCH] RPATH that needs to be fixed is not always first --- ghc-rpm-macros.ghc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc index f7b31aa..9504f2a 100644 --- a/ghc-rpm-macros.ghc +++ b/ghc-rpm-macros.ghc @@ -133,7 +133,7 @@ for i in %*; do\ PROG=%{buildroot}%{_bindir}/$i\ RPATH=$(chrpath $PROG| sed -e "s@^$PROG: RPATH=@@")\ case $RPATH in\ - $PDIR*)\ + *$PDIR*)\ NEWRPATH=$(echo $RPATH | sed -e "s@$PDIR@%{ghclibdir}@g" -e "s@/dist/build@@g")\ chrpath -r $NEWRPATH $PROG\ ;;\