use objdump -p instead of ldd to read executable dependencies
hopefully more robust against ghc-7.7's relocatable dynamic linking
This commit is contained in:
parent
a2f7c2b71a
commit
db486c2fbb
@ -68,7 +68,7 @@ for i in $files; do
|
||||
fi
|
||||
elif [ "$MODE" = "--requires" ]; then
|
||||
if file $i | grep -q 'executable, .* dynamically linked'; then
|
||||
BIN_DEPS=$(ldd $i | grep libHS | grep -v libHSrts | sed -e "s%^\\tlibHS\(.*\)-ghc${GHCVERSION}.so => .*%\1%")
|
||||
BIN_DEPS=$(objdump -p $i | grep NEEDED | grep libHS | grep -v libHSrts | sed -e "s%^ NEEDED *libHS\(.*\)-ghc${GHCVERSION}.so%\1%")
|
||||
if [ -d "$PKGCONFDIR" ]; then
|
||||
PACKAGE_CONF_OPT="--package-conf=$PKGCONFDIR"
|
||||
fi
|
||||
|
@ -6,7 +6,7 @@
|
||||
#%%global without_hscolour 1
|
||||
|
||||
Name: ghc-rpm-macros
|
||||
Version: 1.1
|
||||
Version: 1.1.1
|
||||
Release: 1%{?dist}
|
||||
Summary: RPM macros for building packages for GHC
|
||||
|
||||
@ -90,6 +90,9 @@ EOF
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Sep 9 2013 Jens Petersen <petersen@redhat.com> - 1.1.1-1
|
||||
- use objdump -p instead of ldd to read executable dependencies
|
||||
|
||||
* Sat Sep 7 2013 Jens Petersen <petersen@redhat.com> - 1.1-1
|
||||
- update ghc-deps.sh to handling ghc-7.8 rts
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user