|
|
@ -422,6 +422,7 @@ make test
|
|
|
|
echo "Checking package ABI hashes:"
|
|
|
|
echo "Checking package ABI hashes:"
|
|
|
|
for i in %{ghc_packages_list}; do
|
|
|
|
for i in %{ghc_packages_list}; do
|
|
|
|
old=$(ghc-pkg field $i id --simple-output)
|
|
|
|
old=$(ghc-pkg field $i id --simple-output)
|
|
|
|
|
|
|
|
if [ -n "$old" ]; then
|
|
|
|
new=$(/usr/lib/rpm/ghc-pkg-wrapper %{buildroot}%{ghclibdir} field $i id --simple-output)
|
|
|
|
new=$(/usr/lib/rpm/ghc-pkg-wrapper %{buildroot}%{ghclibdir} field $i id --simple-output)
|
|
|
|
if [ "$old" != "$new" ]; then
|
|
|
|
if [ "$old" != "$new" ]; then
|
|
|
|
echo "ABI hash for $i changed!:" >&2
|
|
|
|
echo "ABI hash for $i changed!:" >&2
|
|
|
@ -430,6 +431,9 @@ for i in %{ghc_packages_list}; do
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "($old unchanged)"
|
|
|
|
echo "($old unchanged)"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "($i not installed)"
|
|
|
|
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
if [ "$ghc_abi_hash_change" = "yes" ]; then
|
|
|
|
if [ "$ghc_abi_hash_change" = "yes" ]; then
|
|
|
|
echo "ghc ABI hash change: aborting build!" >&2
|
|
|
|
echo "ghc ABI hash change: aborting build!" >&2
|
|
|
|