diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-07-13 21:56:03 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-08-08 09:56:34 +0200 |
commit | b7381526ab78d4aaf6e51497099023c179a032eb (patch) | |
tree | fd7b7d32ebf95c16216d8a40820b8beab13ecf96 /debian | |
parent | 1093c0f2dd9bf44a6e89c3406c6ae4aa3f4e8fbf (diff) | |
download | mariadb-git-b7381526ab78d4aaf6e51497099023c179a032eb.tar.gz |
Always require OpenSSL 1.0 on Debian
auto-detecting whether it's called libssl-dev or libssl1.0-dev
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/autobake-deb.sh | 9 | ||||
-rw-r--r-- | debian/control | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh index f304e984b54..9de37138ade 100755 --- a/debian/autobake-deb.sh +++ b/debian/autobake-deb.sh @@ -44,6 +44,15 @@ else sed -i -e "s/\\\${MAYBE_LIBCRACK}/${MAYBE_LIBCRACK}/g" debian/control fi +# same for OpenSSL. Use the correct dependency +if apt-cache madison libssl-dev|grep 'libssl-dev *| *1\.1\.' >/dev/null 2>&1 +then + LIBSSL='libssl1.0-dev' +else + LIBSSL='libssl-dev' +fi +sed -i -e "s/\\\${LIBSSL}/${LIBSSL}/g" debian/control + # Adjust changelog, add new version. # echo "Incrementing changelog and starting build scripts" diff --git a/debian/control b/debian/control index c25ce6dd20f..9507b0557f9 100644 --- a/debian/control +++ b/debian/control @@ -17,7 +17,7 @@ Build-Depends: bison, libncurses5-dev (>= 5.0-6~), libpam0g-dev, libreadline-gplv2-dev, - libssl-dev, + ${LIBSSL}, lsb-release, perl (>= 5.6.0), po-debconf, |