summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorOtto Kekäläinen <otto@mariadb.org>2015-11-24 11:57:10 +0200
committerOtto Kekäläinen <otto@mariadb.org>2015-11-24 11:57:10 +0200
commite717ceb486e7dee3e9baded21fc8e5d03d47a2df (patch)
treef0b66b9a12d1b8178953666330ae28eecdc02570 /debian
parent80ca997faa4894d39cf354c62293d2e2213de9f5 (diff)
downloadmariadb-git-e717ceb486e7dee3e9baded21fc8e5d03d47a2df.tar.gz
Debian packaging: extend libcrack hack to create correct control file
When the debian/control gets stripped off the libcrack3 dependency, it should also strip off the mariadb-cracklib-password-check-10.2 package entry, otherwise the resulting Debian source package will not be re-buildable independently later.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/autobake-deb.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh
index 43a20945674..499c282608f 100755
--- a/debian/autobake-deb.sh
+++ b/debian/autobake-deb.sh
@@ -39,6 +39,9 @@ then
# packages by snipped in rules file
MARIADB_OPTIONAL_DEBS="${MARIADB_OPTIONAL_DEBS} cracklib-password-check-10.2"
sed -i -e "/\\\${MAYBE_LIBCRACK}/d" debian/control
+ # Remove package entry from control file completely so that
+ # resulting Debian source package will actually be buildable
+ sed -i -e "/Package: mariadb-cracklib-password-check/,+6d" debian/control
else
MAYBE_LIBCRACK='libcrack2-dev (>= 2.9.0),'
sed -i -e "s/\\\${MAYBE_LIBCRACK}/${MAYBE_LIBCRACK}/g" debian/control