diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-12-07 16:26:01 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-12-13 17:46:49 +0100 |
commit | f09dfdbcbffe0605babd1217da92f2d8fd8552e8 (patch) | |
tree | d777f3f5586f23b0827ba08e3b242ed14e7c56ce | |
parent | 6a778e3539a8afb93b8c01f2938209f21156a5a7 (diff) | |
download | apt-f09dfdbcbffe0605babd1217da92f2d8fd8552e8.tar.gz |
check library was built before comparing with symbols file
Git-Dch: Ignore
-rwxr-xr-x | prepare-release | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/prepare-release b/prepare-release index 89d5feae9..cdc2ba676 100755 --- a/prepare-release +++ b/prepare-release @@ -127,9 +127,14 @@ elif [ "$1" = 'post-build' ]; then elif [ "$1" = 'library' ]; then librarysymbols() { - echo "Checking $1 in version $2" + local buildlib="build/bin/${1}.so.${2}" + if [ ! -r "$buildlib" ]; then + echo "ERROR: The library ${1} has to be built before symbols can be checked!" + return + fi + echo "Checking $1 in version $2 build at $(stat -L -c '%y' "$buildlib")" local tmpfile=$(mktemp) - dpkg-gensymbols -p${1}${2} -ebuild/bin/${1}.so.${2} -Idebian/${1}${2}.symbols -O/dev/null 2> /dev/null > $tmpfile || true + dpkg-gensymbols -p${1}${2} -e${buildlib} -Idebian/${1}${2}.symbols -O/dev/null 2> /dev/null > $tmpfile || true librarysymbolsfromfile "$tmpfile" "$(echo "${1}" | cut -c 4- | tr -d '-' | tr 'a-z' 'A-Z')_${2}" rm -f $tmpfile } |