Distinguish between all and incompatible ABI changes in the check
abidiff returns 4 when the ABI has changed but not necessarily in an incompatible way, which is something we want to allow as the new functions may be added to the stable branch.
This commit is contained in:
parent
113a32366e
commit
973fc9a897
@ -17,12 +17,21 @@ rc=0
|
|||||||
for l in $libraries; do
|
for l in $libraries; do
|
||||||
name=$(basename $l .so)
|
name=$(basename $l .so)
|
||||||
echo -n "Checking ${name}... "
|
echo -n "Checking ${name}... "
|
||||||
if ! abidiff ${thisdir}/${name}.abi $l; then
|
abidiff ${thisdir}/${name}.abi $l
|
||||||
echo "!!! ABI changes detected in ${name} !!!"
|
case $? in
|
||||||
rc=1
|
0)
|
||||||
else
|
echo 'ok'
|
||||||
echo 'ok'
|
;;
|
||||||
fi
|
|
||||||
|
4)
|
||||||
|
echo "*** ABI changes detected in ${name} ***"
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "!!! INCOMPATIBLE ABI changes detected in ${name} !!!"
|
||||||
|
rc=1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
exit $rc
|
exit $rc
|
||||||
|
Loading…
Reference in New Issue
Block a user