mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch 'mnowak/1751-abi-check-does-not-know-which-source-is-older-newer' into 'master'
abi-check does not know which source is older, newer Closes #1751 See merge request isc-projects/bind9!3374
This commit is contained in:
commit
f6d15d5af8
1 changed files with 5 additions and 5 deletions
|
|
@ -49,14 +49,14 @@ check_program w3m
|
|||
# generate ABI dump file for them.
|
||||
while read -r SO; do
|
||||
APIFILE="$(dirname "${SO}")/../api"
|
||||
pushd "$(dirname "${APIFILE}")"
|
||||
GIT_REVISION=$(git rev-parse HEAD | cut -c 1-10)
|
||||
popd
|
||||
APIFILE_DIR=$(dirname "${APIFILE}")
|
||||
GIT_HEAD_REV=$(git -C "${APIFILE_DIR}" rev-parse HEAD | cut -c 1-10)
|
||||
GIT_HEAD_UNIX_TIME=$(git -C "${APIFILE_DIR}" log -1 --format=%ct HEAD)
|
||||
# Get LIBINTERFACE, LIBREVISION, LIBAGE from the 'api' file.
|
||||
eval "$(grep -v "^#" "${APIFILE}" | tr -d " ")"
|
||||
VERSION="${LIBINTERFACE}.${LIBREVISION}.${LIBAGE}-${GIT_REVISION}"
|
||||
VERSION="${LIBINTERFACE}.${LIBREVISION}.${LIBAGE}-${GIT_HEAD_UNIX_TIME}-${GIT_HEAD_REV}"
|
||||
abi-dumper "${SO}" -o abi-"$(basename "${SO}" .so)-${VERSION}".dump -lver "${VERSION}"
|
||||
done < <(find "${TESTBIND}"/lib/*/.libs/ "${REFBIND}"/lib/*/.libs/ -name '*.so')
|
||||
done < <(find "${TESTBIND}"/lib/*/.libs/ "${REFBIND}"/lib/*/.libs/ -name '*.so' ! -name '*-nosymtbl*')
|
||||
|
||||
# Generate HTML API compatibility reports for all libraries.
|
||||
find . -maxdepth 1 -name 'abi-*.dump' | sort | while read -r OLD; read -r NEW; do
|
||||
|
|
|
|||
Loading…
Reference in a new issue