more ABI hash fix/improvements
This commit is contained in:
parent
3687ae4b04
commit
d25903fbb8
11
ghc.spec
11
ghc.spec
@ -434,19 +434,22 @@ make test
|
|||||||
|
|
||||||
# check the ABI hashes
|
# check the ABI hashes
|
||||||
%if %{undefined ghc_bootstrapping}
|
%if %{undefined ghc_bootstrapping}
|
||||||
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/libexec/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
|
||||||
echo " $old -> $new" >&2
|
echo " $old -> $new" >&2
|
||||||
exit 1
|
ghc_abi_hash_change=yes
|
||||||
else
|
else
|
||||||
echo "($old unchanged)"
|
echo "($old unchanged)"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo "done."
|
if [ "$ghc_abi_hash_change" = "yes" ]; then
|
||||||
|
echo "ghc ABI hash change: aborting build!" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user