diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-04-17 13:20:48 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-04-24 16:06:54 +0200 |
commit | 2f9cd06da4f3a4695a63efb0d4a8af7ef99bd5b3 (patch) | |
tree | 87739c3d755709fc039b095fc3ac0c48b4b45895 /debian | |
parent | 38850995639912687b34ed4585b6ae0866fb1f13 (diff) | |
download | mariadb-git-2f9cd06da4f3a4695a63efb0d4a8af7ef99bd5b3.tar.gz |
MDEV-18362 EPOCH=1 needs to be set for Ubuntu 18.10 cosmic builds
Apply dbart's patch to set epoch for all ubuntu releases starting
from bionic. Not only for bionic.
This works for Debian too (VERNUM=unstable, etc).
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/autobake-deb.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh index 648c95cb416..98071ba6d03 100755 --- a/debian/autobake-deb.sh +++ b/debian/autobake-deb.sh @@ -30,6 +30,7 @@ LOGSTRING="MariaDB build" # Look up distro-version specific stuff. CODENAME="$(lsb_release -sc)" +VERNUM="$(lsb_release -sr)" # add libcrack2 (>= 2.9.0) as a build dependency # but only where the distribution can possibly satisfy it @@ -57,7 +58,7 @@ sed -i -e "s/\\\${LIBSSL}/${LIBSSL}/g" debian/control # echo "Incrementing changelog and starting build scripts" -if [[ "$CODENAME" == bionic ]]; then +if [[ "${VERNUM%.*}" -ge 18 ]]; then EPOCH="1:" fi dch -b -D ${CODENAME} -v "${EPOCH}${UPSTREAM}${PATCHLEVEL}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}1~${CODENAME}" "Automatic build with ${LOGSTRING}." |