diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-02-16 23:18:32 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-02-17 23:49:56 +0100 |
commit | 11536f99f14a2fedb822abb6be3a6ad79ad3abc9 (patch) | |
tree | ca21193ce7e0220f47d6efb475cb581f610e3253 /debian/autobake-deb.sh | |
parent | 87eb82d4d52dd9ed1c954b0068898a4ec7a02df2 (diff) | |
download | mariadb-git-11536f99f14a2fedb822abb6be3a6ad79ad3abc9.tar.gz |
MDEV-7305 Difficulties building cracklib_password_check
put cracklib_password_check into a separate package.
build it conditionally on Debian/Ubuntu
Diffstat (limited to 'debian/autobake-deb.sh')
-rwxr-xr-x | debian/autobake-deb.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh index 5189b5d3856..d5cbb4ed51e 100755 --- a/debian/autobake-deb.sh +++ b/debian/autobake-deb.sh @@ -15,7 +15,7 @@ set -e # Buildbot, running the test suite from installed .debs on a clean VM. export DEB_BUILD_OPTIONS="nocheck" -#export MARIADB_OPTIONAL_DEBS="tokudb-engine" +export MARIADB_OPTIONAL_DEBS="" # Find major.minor version. # @@ -38,6 +38,15 @@ case "${CODENAME}" in *) LIBREADLINE_DEV=libreadline-gplv2-dev ;; esac +# add libcrack2 (>= 2.9.0) as a build dependency +# but only where the distribution can possibly satisfy it +if apt-cache madison cracklib2|grep 'cracklib2 *| *2\.[0-8]\.' >/dev/null 2>&1 +then + MAYBE_LIBCRACK='' + MARIADB_OPTIONAL_DEBS="${MARIADB_OPTIONAL_DEBS} cracklib-password-check-10.1" +else + MAYBE_LIBCRACK='libcrack2-dev (>= 2.9.0),' +fi # Clean up build file symlinks that are distro-specific. First remove all, then set # new links. @@ -56,6 +65,7 @@ DISTROFILES="$(ls ./debian/dist/${DISTRO})" for distrofile in ${DISTROFILES}; do rm -f "./debian/${distrofile}" sed -e "s/\\\${LIBREADLINE_DEV}/${LIBREADLINE_DEV}/g" \ + -e "s/\\\${MAYBE_LIBCRACK}/${MAYBE_LIBCRACK}/g" \ < "./debian/dist/${DISTRO}/${distrofile}" > "./debian/${distrofile}" chmod --reference="./debian/dist/${DISTRO}/${distrofile}" "./debian/${distrofile}" done; |