summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebian/autobake-deb.sh14
-rw-r--r--debian/control1
-rw-r--r--debian/salsa-ci.yml8
3 files changed, 20 insertions, 3 deletions
diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh
index 5929064c41e..43c33899d87 100755
--- a/debian/autobake-deb.sh
+++ b/debian/autobake-deb.sh
@@ -18,10 +18,20 @@ set -e
export DEB_BUILD_OPTIONS="nocheck $DEB_BUILD_OPTIONS"
# Take the files and part of control from MCS directory
-if [[ -d storage/columnstore/columnstore/debian ]]; then
+if [[ -d storage/columnstore/columnstore/debian ]]
+then
cp -v storage/columnstore/columnstore/debian/mariadb-plugin-columnstore.* debian/
echo >> debian/control
cat storage/columnstore/columnstore/debian/control >> debian/control
+
+ # From Debian Bullseye/Ubuntu Hirsute onwards libreadline is gone, so build with it
+ # only on older releases where it is still available. This can be removed once
+ # MCOL-4535 lands in MariaDB.
+ if apt-cache madison libreadline-gplv2-dev | grep 'libreadline-gplv2-dev' >/dev/null 2>&1
+ then
+ sed 's/libpcre2-dev,/libpcre2-dev, libreadline-gplv2-dev [amd64],/' -i debian/control
+ fi
+
# ColumnStore is explcitly disabled in the native build, so allow it now
# when build it when triggered by autobake-deb.sh
sed '/-DPLUGIN_COLUMNSTORE=NO/d' -i debian/rules
@@ -75,7 +85,7 @@ then
echo "usr/bin/sst_dump" >> debian/mariadb-plugin-rocksdb.install
fi
-# From Debian Buster/Ubuntu Bionic, libcurl4 replaces libcurl3.
+# From Debian Buster/Ubuntu Bionic, libcurl4 replaces libcurl3
if ! apt-cache madison libcurl4 | grep 'libcurl4' >/dev/null 2>&1
then
sed 's/libcurl4/libcurl3/g' -i debian/control
diff --git a/debian/control b/debian/control
index d6d097df24a..7311affd464 100644
--- a/debian/control
+++ b/debian/control
@@ -35,7 +35,6 @@ Build-Depends: bison,
libnuma-dev [linux-any],
libpam0g-dev,
libpcre2-dev,
- libreadline-gplv2-dev [amd64],
libsnappy-dev,
libssl-dev,
libssl-dev:native,
diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml
index b81d1cd00f8..290ba6f89cf 100644
--- a/debian/salsa-ci.yml
+++ b/debian/salsa-ci.yml
@@ -37,6 +37,14 @@ build:
- apt-get update && eatmydata apt-get install --yes --no-install-recommends aptitude devscripts ccache equivs
- cd ${WORKING_DIR}/${SOURCE_DIR}
- eatmydata install-build-deps.sh .
+ - |
+ # From Debian Bullseye/Ubuntu Hirsute onwards libreadline is gone, so build with it
+ # only on older releases where it is still available. This can be removed once
+ # MCOL-4535 lands in MariaDB.
+ if apt-cache madison libreadline-gplv2-dev | grep 'libreadline-gplv2-dev' >/dev/null 2>&1
+ then
+ apt-get install --yes libreadline-gplv2-dev
+ fi
- update-ccache-symlinks; ccache -z # Zero out ccache counters
- while true; do sleep 600; echo "10 minutes passed" >&2; done & # Progress keeper since build is long and silent
- debian/autobake-deb.sh |& tail -n 10000 # Keep Gitlab-CI output under 4 MB