diff options
author | Daniel Black <daniel@mariadb.org> | 2022-05-10 12:43:28 +1000 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2022-05-10 12:43:31 +1000 |
commit | 1342856faf983ae5773d389ff92b8efb4f85618e (patch) | |
tree | a7d83b6bfdc70c67e7fe72473c046e893c85f017 | |
parent | 706a8232da40fee3e89d0ba2f419142bf5335f45 (diff) | |
download | mariadb-git-bb-10.9-danielblack-deb-limited-columnstore-platforms.tar.gz |
deb: limit columnstore to tested platformsbb-10.9-danielblack-deb-limited-columnstore-platforms
"We only support Debian 10, but not Debian 11 and from today
not Debian 9, and only Ubuntu 18.04 and 20.04, but not 22.04"
-rwxr-xr-x | debian/autobake-deb.sh | 46 |
1 files changed, 28 insertions, 18 deletions
diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh index 6031f954ad7..fe423d39c57 100755 --- a/debian/autobake-deb.sh +++ b/debian/autobake-deb.sh @@ -18,26 +18,29 @@ export DEB_BUILD_OPTIONS="nocheck $DEB_BUILD_OPTIONS" source ./VERSION -# General CI optimizations to keep build output smaller -if [[ $GITLAB_CI ]] -then - # On Gitlab the output log must stay under 4MB so make the - # build less verbose - sed '/Add support for verbose builds/,/^$/d' -i debian/rules -elif [ -d storage/columnstore/columnstore/debian ] -then - # ColumnStore is explicitly disabled in the native Debian build, so allow it - # now when build is triggered by autobake-deb.sh (MariaDB.org) and when the - # build is not running on Travis or Gitlab-CI - sed '/-DPLUGIN_COLUMNSTORE=NO/d' -i debian/rules - # Take the files and part of control from MCS directory - if [ ! -f debian/mariadb-plugin-columnstore.install ] +enable_columnstore() +{ + # General CI optimizations to keep build output smaller + if [[ $GITLAB_CI ]] then - cp -v storage/columnstore/columnstore/debian/mariadb-plugin-columnstore.* debian/ - echo >> debian/control - sed "s/-10.6//" <storage/columnstore/columnstore/debian/control >> debian/control + # On Gitlab the output log must stay under 4MB so make the + # build less verbose + sed '/Add support for verbose builds/,/^$/d' -i debian/rules + elif [ -d storage/columnstore/columnstore/debian ] + then + # ColumnStore is explicitly disabled in the native Debian build, so allow it + # now when build is triggered by autobake-deb.sh (MariaDB.org) and when the + # build is not running on Travis or Gitlab-CI + sed '/-DPLUGIN_COLUMNSTORE=NO/d' -i debian/rules + # Take the files and part of control from MCS directory + if [ ! -f debian/mariadb-plugin-columnstore.install ] + then + cp -v storage/columnstore/columnstore/debian/mariadb-plugin-columnstore.* debian/ + echo >> debian/control + sed "s/-10.6//" <storage/columnstore/columnstore/debian/control >> debian/control + fi fi -fi +} # Look up distro-version specific stuff # @@ -117,6 +120,7 @@ case "${CODENAME}" in focal) replace_uring_with_aio disable_libfmt + enable_columnstore ;& impish|jammy) # mariadb-plugin-rocksdb s390x not supported by us (yet) @@ -140,6 +144,12 @@ case "${CODENAME}" in exit 1 esac + +if [ "${CODENAME}" = buster ] +then + enable_columnstore +fi + if [ -n "${AUTOBAKE_PREP_CONTROL_RULES_ONLY:-}" ] then exit 0 |