fix ABI check for uninstalled package
(which may be redundant now) ghc-xhtml is not built for bootstrap, so check was failing
This commit is contained in:
parent
c044884574
commit
494c76ae55
16
ghc.spec
16
ghc.spec
@ -422,13 +422,17 @@ 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)
|
||||||
new=$(/usr/lib/rpm/ghc-pkg-wrapper %{buildroot}%{ghclibdir} field $i id --simple-output)
|
if [ -n "$old" ]; then
|
||||||
if [ "$old" != "$new" ]; then
|
new=$(/usr/lib/rpm/ghc-pkg-wrapper %{buildroot}%{ghclibdir} field $i id --simple-output)
|
||||||
echo "ABI hash for $i changed!:" >&2
|
if [ "$old" != "$new" ]; then
|
||||||
echo " $old -> $new" >&2
|
echo "ABI hash for $i changed!:" >&2
|
||||||
ghc_abi_hash_change=yes
|
echo " $old -> $new" >&2
|
||||||
|
ghc_abi_hash_change=yes
|
||||||
|
else
|
||||||
|
echo "($old unchanged)"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "($old unchanged)"
|
echo "($i not installed)"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ "$ghc_abi_hash_change" = "yes" ]; then
|
if [ "$ghc_abi_hash_change" = "yes" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user