MDEV-10126: replace deprecated iproute dependency with iproute2

Fall back to old iproute on Debian Wheezy and Ubuntu Precise that
don't have iproute2 available.
This commit is contained in:
Otto Kekäläinen 2016-11-26 13:22:10 +01:00
parent 3a6e781ea3
commit b5b68b6bb8
2 changed files with 9 additions and 1 deletions

View file

@ -30,10 +30,18 @@ fi
# Look up distro-version specific stuff
#
# Always keep the actual packaging as up-to-date as possible following the latest
# Debian policy and targetting Debian Sid. Then case-by-case run in autobake-deb.sh
# tests for backwards compatibility and strip away parts on older builders.
# If iproute2 is not available (before Debian Jessie and Ubuntu Trusty)
# fall back to the old iproute package.
if ! apt-cache madison iproute2 | grep 'iproute2 *|' >/dev/null 2>&1
then
sed 's/iproute2/iproute/' -i debian/control
fi
# If libcrack2 (>= 2.9.0) is not available (before Debian Jessie and Ubuntu Trusty)
# clean away the cracklib stanzas so the package can build without them.
if ! apt-cache madison libcrack2-dev | grep 'libcrack2-dev *| *2\.9' >/dev/null 2>&1

2
debian/control vendored
View file

@ -349,7 +349,7 @@ Depends: bsdutils,
findutils,
galera-3 (>=25.3),
gawk,
iproute,
iproute2,
libdbi-perl,
lsb-base (>= 3.0-10),
lsof,