ghc-dep.sh: only use buildroot package.conf.d if it exists
This commit is contained in:
parent
1b8536abf1
commit
8e22621418
@ -69,8 +69,11 @@ for i in $files; do
|
||||
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%")
|
||||
if [ -d "$PKGCONFDIR" ]; then
|
||||
PACKAGE_CONF_OPT="--package-conf=$PKGCONFDIR"
|
||||
fi
|
||||
for p in ${BIN_DEPS}; do
|
||||
HASH=$(${GHC_PKG} --global --package-conf=$PKGCONFDIR field $p id | sed -e "s/^id: \+//")
|
||||
HASH=$(${GHC_PKG} --global $PACKAGE_CONF_OPT field $p id | sed -e "s/^id: \+//")
|
||||
echo "ghc($HASH)"
|
||||
done
|
||||
fi
|
||||
|
@ -3,7 +3,7 @@
|
||||
%global macros_file %{_sysconfdir}/rpm/macros.ghc
|
||||
|
||||
Name: ghc-rpm-macros
|
||||
Version: 0.95.2
|
||||
Version: 0.95.3
|
||||
Release: 1%{?dist}
|
||||
Summary: Macros for building packages for GHC
|
||||
|
||||
@ -60,6 +60,9 @@ EOF
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Jun 9 2012 Jens Petersen <petersen@redhat.com> - 0.95.3-1
|
||||
- ghc-dep.sh: only use buildroot package.conf.d if it exists
|
||||
|
||||
* Fri Jun 8 2012 Jens Petersen <petersen@redhat.com> - 0.95.2-1
|
||||
- ghc-deps.sh: look in buildroot package.conf.d for program deps
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user