summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maennich <maennich@google.com>2019-04-09 15:01:48 +0100
committerMatthias Maennich <maennich@google.com>2019-04-09 15:01:48 +0100
commit7dcb7868694af8f70ca6b1dd2afcdae457dc255e (patch)
tree4cbbd2a5ec7900042942c3c9feab1759fd556799
parentbd5e1662377f0aedb3b6d366ac591511d90c291a (diff)
abi/bootstrap: clarify dependencies
libabigail requires libdw-dev at least in version 0.165 and autoconf to run autoreconf. Change-Id: Id882bcf5c57de6f14fe5e61cf2ed0e3a8553f4b4 Signed-off-by: Matthias Maennich <maennich@google.com>
-rwxr-xr-xabi/bootstrap9
1 files changed, 8 insertions, 1 deletions
diff --git a/abi/bootstrap b/abi/bootstrap
index c2f0120..66878ee 100755
--- a/abi/bootstrap
+++ b/abi/bootstrap
@@ -29,12 +29,19 @@ fi
set -x
-PACKAGES="libxml2-dev elfutils libdw-dev"
+PACKAGES="autoconf elfutils libxml2-dev libdw-dev"
# Install the dependencies.
if ! dpkg -s ${PACKAGES} > /dev/null 2>&1 ; then
sudo apt-get install ${PACKAGES}
fi
+# Assert minimum package versions
+if ! dpkg --compare-versions \
+ $(dpkg-query --showformat='${Version}' --show libdw-dev) ge 0.165 ; then
+ echo "ERROR: Minimum version of v0.165 for libdw-dev not met!"
+ exit 1
+fi
+
if [ ! -d "${LIBABIGAIL_SRC}" ]; then
git clone git://sourceware.org/git/libabigail.git "${LIBABIGAIL_SRC}"
else