Skip to content

Commit

Permalink
MDEV-18362 EPOCH=1 needs to be set for Ubuntu 18.10 cosmic builds
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
vuvova committed Apr 24, 2019
1 parent 3885099 commit 2f9cd06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debian/autobake-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}."
Expand Down

0 comments on commit 2f9cd06

Please sign in to comment.