[Bug 863499] error while loading shared libraries: libHSleksah-0.12.1.3-ghc7.4.1.so: cannot open shared object file: No such file or directory
bugzilla at redhat.com
bugzilla at redhat.com
Mon Oct 15 06:46:40 UTC 2012
https://bugzilla.redhat.com/show_bug.cgi?id=863499
--- Comment #6 from Jens Petersen <petersen at redhat.com> ---
So actually I had the same problem when moving "back" to monolithic
haskell-platform.
Anyway I think you can fix it like this:
BuildRequires: chrpath
:
:
%install
:
PROG=%{buildroot}%{_bindir}/%name
RPATH=$(chrpath $PROG| sed -e "s!^$PROG: RPATH=!!")
case $RPATH in
*$PWD*)
NEWRPATH=$(echo $RPATH | sed -e "s!$PWD!%{ghclibdir}!g" -e
"s!/dist/build!!g")
chrpath -r $NEWRPATH $PROG
;;
esac
(taken from haskell-platform.spec though untested here).
Then you could drop the patch and benefit from the shared lib.
In the long term I would like to see all dynamically linked binlib haskell
packages doing this.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the haskell-devel
mailing list