Commit deecc75a authored by Otto Kekäläinen's avatar Otto Kekäläinen

Fix commit 113f1868 and d1809097: PLUGIN_COLUMNSTORE=NO by default

ColumnStore seems to build by default, so it must be explicitly disabled
with a build flag, so that it does not build at all and thus build machine
disk space and CPU will be spared.

This reverts commit 113f1868.
parent b6be78d4
...@@ -22,9 +22,9 @@ if [[ -d storage/columnstore/columnstore/debian ]]; then ...@@ -22,9 +22,9 @@ if [[ -d storage/columnstore/columnstore/debian ]]; then
cp -v storage/columnstore/columnstore/debian/mariadb-plugin-columnstore.* debian/ cp -v storage/columnstore/columnstore/debian/mariadb-plugin-columnstore.* debian/
echo >> debian/control echo >> debian/control
cat storage/columnstore/columnstore/debian/control >> debian/control cat storage/columnstore/columnstore/debian/control >> debian/control
# Don't build ColumnStore as part of the native build, only build it when triggered # ColumnStore is explcitly disabled in the native build, so allow it now
# by autobake-deb.sh # when build it when triggered by autobake-deb.sh
sed 's|#CMAKEFLAGS += -DPLUGIN_COLUMNSTORE=YES|CMAKEFLAGS += -DPLUGIN_COLUMNSTORE=YES|' -i debian/rules sed '/-DPLUGIN_COLUMNSTORE=NO/d' -i debian/rules
fi fi
# General CI optimizations to keep build output smaller # General CI optimizations to keep build output smaller
...@@ -36,7 +36,7 @@ then ...@@ -36,7 +36,7 @@ then
# MCOL-4149: ColumnStore builds are so slow and big that they must be skipped on # MCOL-4149: ColumnStore builds are so slow and big that they must be skipped on
# both Travis-CI and Gitlab-CI # both Travis-CI and Gitlab-CI
sed 's|-DPLUGIN_COLUMNSTORE=YES|-DPLUGIN_COLUMNSTORE=NO|' -i debian/rules sed 's|$(CMAKEFLAGS)|$(CMAKEFLAGS) -DPLUGIN_COLUMNSTORE=NO|' -i debian/rules
sed "/Package: mariadb-plugin-columnstore/,/^$/d" -i debian/control sed "/Package: mariadb-plugin-columnstore/,/^$/d" -i debian/control
fi fi
......
...@@ -51,9 +51,7 @@ endif ...@@ -51,9 +51,7 @@ endif
# ColumnStore only attempts to build on a few platforms as dictated by CMake checks # ColumnStore only attempts to build on a few platforms as dictated by CMake checks
# Also note in debian/control the CS-only build deps marked '[amd64]' # Also note in debian/control the CS-only build deps marked '[amd64]'
ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),amd64)) ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),amd64))
# Don't build ColumnStore as part of the native build, only build it when triggered CMAKEFLAGS += -DPLUGIN_COLUMNSTORE=YES
# by autobake-deb.sh. Saves build time and disk space.
#CMAKEFLAGS += -DPLUGIN_COLUMNSTORE=YES
endif endif
# Add extra flag to avoid WolfSSL code crashing the entire mariadbd on s390x. This # Add extra flag to avoid WolfSSL code crashing the entire mariadbd on s390x. This
...@@ -87,6 +85,8 @@ ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) ...@@ -87,6 +85,8 @@ ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
dh_auto_build --builddirectory=builddir-native -- import_executables dh_auto_build --builddirectory=builddir-native -- import_executables
endif endif
# Don't build ColumnStore as part of the native build, only build it when
# triggered by autobake-deb.sh. Saves build time and disk space.
mkdir -p $(BUILDDIR) && cd $(BUILDDIR) && \ mkdir -p $(BUILDDIR) && cd $(BUILDDIR) && \
sh -c 'PATH=$${MYSQL_BUILD_PATH:-"/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin"} \ sh -c 'PATH=$${MYSQL_BUILD_PATH:-"/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin"} \
CC=${CC} \ CC=${CC} \
...@@ -101,6 +101,7 @@ endif ...@@ -101,6 +101,7 @@ endif
-DPLUGIN_TOKUDB=NO \ -DPLUGIN_TOKUDB=NO \
-DPLUGIN_CASSANDRA=NO \ -DPLUGIN_CASSANDRA=NO \
-DPLUGIN_AWS_KEY_MANAGEMENT=NO \ -DPLUGIN_AWS_KEY_MANAGEMENT=NO \
-DPLUGIN_COLUMNSTORE=NO \
-DDEB=$(DEB_VENDOR) ..' -DDEB=$(DEB_VENDOR) ..'
# This is needed, otherwise 'make test' will run before binaries have been built # This is needed, otherwise 'make test' will run before binaries have been built
......
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