Commit 7f570bef authored by Otto Kekäläinen's avatar Otto Kekäläinen

Deb: fix commit 1369696b and change autobake strategy to Debian Sid first

parent affa6e3d
...@@ -31,35 +31,26 @@ PATCHLEVEL="+maria" ...@@ -31,35 +31,26 @@ PATCHLEVEL="+maria"
LOGSTRING="MariaDB build" LOGSTRING="MariaDB build"
# Look up distro-version specific stuff. # 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.
CODENAME="$(lsb_release -sc)" CODENAME="$(lsb_release -sc)"
# Add libcrack2 (>= 2.9.0) as a build dependency if available in the distribution # If libcrack2 (>= 2.9.0) is not available (before Debian Jessie and Ubuntu Trusty)
# This matches Debian Jessie, Stretch and Ubuntu Trusty, Wily, Xenial, Yakkety # clean away the cracklib stanzas so the package can build without them.
# Update check when version 2.10 or newer is available. if ! apt-cache madison libcrack2-dev | grep 'libcrack2-dev *| *2\.9' >/dev/null 2>&1
if apt-cache madison libcrack2-dev | grep 'libcrack2-dev *| *2\.9' >/dev/null 2>&1
then then
sed 's/Standards-Version/,libcrack2-dev (>= 2.9.0)\nStandards-Version/' debian/control sed '/libcrack2-dev/d' -i debian/control
cat <<EOT >> debian/control sed '/Package: mariadb-plugin-cracklib/,+10d' -i debian/control
Package: mariadb-cracklib-password-check-10.2
Architecture: any
Depends: libcrack2 (>= 2.9.0),
mariadb-server-10.2,
\${misc:Depends},
\${shlibs:Depends}
Description: CrackLib Password Validation Plugin for MariaDB
This password validation plugin uses cracklib to allow only
sufficiently secure (as defined by cracklib) user passwords in MariaDB.
EOT
fi fi
# Add libpcre3-dev (>= 2:8.35-3.2~) as a build dependency if available in the distribution # If libpcre3-dev (>= 2:8.35-3.2~) is not available (before Debian Jessie or Ubuntu Wily)
# This matches Debian Jessie, Stretch and Ubuntu Wily, Xenial, Yakkety # clean away the PCRE3 stanzas so the package can build without them.
# Update check when version 2:8.40 or newer is available. # Update check when version 2:8.40 or newer is available.
if apt-cache madison libpcre3-dev | grep 'libpcre3-dev *| *2:8\.3[2-9]' >/dev/null 2>&1 if ! apt-cache madison libpcre3-dev | grep 'libpcre3-dev *| *2:8\.3[2-9]' >/dev/null 2>&1
then then
sed 's/Standards-Version/,libpcre3-dev (>= 2:8.35-3.2~)\nStandards-Version/' debian/control sed '/libpcre3-dev/d' -i debian/control
fi fi
# On Travis-CI, the log must stay under 4MB so make the build less verbose # On Travis-CI, the log must stay under 4MB so make the build less verbose
......
...@@ -10,11 +10,13 @@ Build-Depends: bison, ...@@ -10,11 +10,13 @@ Build-Depends: bison,
dpatch, dpatch,
libaio-dev [linux-any], libaio-dev [linux-any],
libboost-dev, libboost-dev,
libcrack2-dev (>= 2.9.0),
libjemalloc-dev (>= 3.0.0~) [linux-any], libjemalloc-dev (>= 3.0.0~) [linux-any],
libjudy-dev, libjudy-dev,
libkrb5-dev, libkrb5-dev,
libncurses5-dev (>= 5.0-6~), libncurses5-dev (>= 5.0-6~),
libpam0g-dev, libpam0g-dev,
libpcre3-dev (>= 2:8.35-3.2~),
libreadline-gplv2-dev, libreadline-gplv2-dev,
libssl-dev, libssl-dev,
libxml2-dev, libxml2-dev,
...@@ -555,3 +557,13 @@ Depends: libgssapi-krb5-2, ...@@ -555,3 +557,13 @@ Depends: libgssapi-krb5-2,
Breaks: mariadb-gssapi-client-10.1, mariadb-gssapi-client-10.2 Breaks: mariadb-gssapi-client-10.1, mariadb-gssapi-client-10.2
Replaces: mariadb-gssapi-client-10.1, mariadb-gssapi-client-10.2 Replaces: mariadb-gssapi-client-10.1, mariadb-gssapi-client-10.2
Description: GSSAPI authentication plugin for MariaDB client Description: GSSAPI authentication plugin for MariaDB client
Package: mariadb-plugin-cracklib-password-check
Architecture: any
Depends: libcrack2 (>= 2.9.0),
mariadb-server-10.2,
${misc:Depends},
${shlibs:Depends}
Description: CrackLib Password Validation Plugin for MariaDB
This password validation plugin uses cracklib to allow only
sufficiently secure (as defined by cracklib) user passwords in MariaDB.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment