Add ABI check for PR
This commit is contained in:
parent
65f78eaa73
commit
9729405a8f
|
@ -6,6 +6,7 @@
|
||||||
"Maintainer": "Antonin D.",
|
"Maintainer": "Antonin D.",
|
||||||
"MaintainerUrl": "http://www.openjpeg.org/",
|
"MaintainerUrl": "http://www.openjpeg.org/",
|
||||||
"Package": "version.",
|
"Package": "version.",
|
||||||
|
"Configure": "-DCMAKE_C_FLAGS='-fvisibility=hidden -g -Og -w -fpermissive'",
|
||||||
|
|
||||||
"Versions": [
|
"Versions": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -55,7 +55,12 @@ cd tracker
|
||||||
# Let's create all we need
|
# Let's create all we need
|
||||||
grep -v Git ${OPJ_SOURCE_DIR}/tools/abi-tracker/openjpeg.json > ./openjpeg.json
|
grep -v Git ${OPJ_SOURCE_DIR}/tools/abi-tracker/openjpeg.json > ./openjpeg.json
|
||||||
abi-monitor ${OPJ_LIMIT_ABI_BUILDS} -get openjpeg.json
|
abi-monitor ${OPJ_LIMIT_ABI_BUILDS} -get openjpeg.json
|
||||||
|
if [ "${OPJ_LIMIT_ABI_BUILDS}" != "" ]; then
|
||||||
cp -f ${OPJ_SOURCE_DIR}/tools/abi-tracker/openjpeg.json ./openjpeg.json
|
cp -f ${OPJ_SOURCE_DIR}/tools/abi-tracker/openjpeg.json ./openjpeg.json
|
||||||
|
else
|
||||||
|
# Old versions of openjpeg don't like -fvisibility=hidden...
|
||||||
|
grep -v Configure ${OPJ_SOURCE_DIR}/tools/abi-tracker/openjpeg.json > ./openjpeg.json
|
||||||
|
fi
|
||||||
cp -rf ${OPJ_SOURCE_DIR} src/openjpeg/current
|
cp -rf ${OPJ_SOURCE_DIR} src/openjpeg/current
|
||||||
abi-monitor ${OPJ_LIMIT_ABI_BUILDS} -build openjpeg.json
|
abi-monitor ${OPJ_LIMIT_ABI_BUILDS} -build openjpeg.json
|
||||||
abi-tracker -build openjpeg.json
|
abi-tracker -build openjpeg.json
|
||||||
|
@ -66,8 +71,11 @@ EXIT_CODE=0
|
||||||
abi-compliance-checker -l openjpeg -old $(find ./abi_dump/openjpeg/2.1 -name '*.dump') -new $(find ./abi_dump/openjpeg/current -name '*.dump') -header openjpeg.h -api -s || EXIT_CODE=1
|
abi-compliance-checker -l openjpeg -old $(find ./abi_dump/openjpeg/2.1 -name '*.dump') -new $(find ./abi_dump/openjpeg/current -name '*.dump') -header openjpeg.h -api -s || EXIT_CODE=1
|
||||||
|
|
||||||
# Check ABI
|
# Check ABI
|
||||||
# Disabled for now, problems with symbol visibility...
|
if [ "${OPJ_LIMIT_ABI_BUILDS}" != "" ]; then
|
||||||
# abi-compliance-checker -l openjpeg -old $(find ./abi_dump/openjpeg/2.1 -name '*.dump') -new $(find ./abi_dump/openjpeg/current -name '*.dump') -header openjpeg.h -abi -s || EXIT_CODE=1
|
abi-compliance-checker -l openjpeg -old $(find ./abi_dump/openjpeg/2.1 -name '*.dump') -new $(find ./abi_dump/openjpeg/current -name '*.dump') -header openjpeg.h -abi -s || EXIT_CODE=1
|
||||||
|
else
|
||||||
|
echo "Disable ABI check for now, problems with symbol visibility..."
|
||||||
|
fi
|
||||||
|
|
||||||
rm -rf src installed
|
rm -rf src installed
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue