Commit 13b97880 authored by Tuukka Pasanen's avatar Tuukka Pasanen Committed by Daniel Black

MDEV-27965: MariaDB needs at least libfmt version 7.0

Add requirement in Debian control file for libfmt 7.0
which is needed for building MariaDB.

This supports the SFORMAT function added in MDEV-25015.

+ autobake-deb.sh so old Debian/Ubuntu still
bundle the libfmt pulled in from upstream.

Closes #2062
parent 8b92e346
......@@ -65,6 +65,12 @@ disable_pmem()
sed '/-DWITH_PMEM=yes/d' -i debian/rules
}
disable_libfmt()
{
# 0.7+ required
sed '/libfmt-dev/d' -i debian/control
}
architecture=$(dpkg-architecture -q DEB_BUILD_ARCH)
CODENAME="$(lsb_release -sc)"
......@@ -77,6 +83,7 @@ case "${CODENAME}" in
disable_pmem
;&
buster)
disable_libfmt
replace_uring_with_aio
if [ ! "$architecture" = amd64 ]
then
......@@ -106,6 +113,7 @@ case "${CODENAME}" in
;&
focal)
replace_uring_with_aio
disable_libfmt
;&
impish|jammy)
# mariadb-plugin-rocksdb s390x not supported by us (yet)
......
......@@ -23,6 +23,7 @@ Build-Depends: bison,
libcurl4-openssl-dev | libcurl4-dev,
libedit-dev,
libedit-dev:native,
libfmt-dev (>= 7.0.0),
libjemalloc-dev [linux-any],
libjudy-dev,
libkrb5-dev,
......
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