Skip to content

Commit deecc75

Browse files
committed
Fix commit 113f186 and d180909: 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 113f186.
1 parent b6be78d commit deecc75

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

debian/autobake-deb.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ if [[ -d storage/columnstore/columnstore/debian ]]; then
2222
cp -v storage/columnstore/columnstore/debian/mariadb-plugin-columnstore.* debian/
2323
echo >> debian/control
2424
cat storage/columnstore/columnstore/debian/control >> debian/control
25-
# Don't build ColumnStore as part of the native build, only build it when triggered
26-
# by autobake-deb.sh
27-
sed 's|#CMAKEFLAGS += -DPLUGIN_COLUMNSTORE=YES|CMAKEFLAGS += -DPLUGIN_COLUMNSTORE=YES|' -i debian/rules
25+
# ColumnStore is explcitly disabled in the native build, so allow it now
26+
# when build it when triggered by autobake-deb.sh
27+
sed '/-DPLUGIN_COLUMNSTORE=NO/d' -i debian/rules
2828
fi
2929

3030
# General CI optimizations to keep build output smaller
@@ -36,7 +36,7 @@ then
3636

3737
# MCOL-4149: ColumnStore builds are so slow and big that they must be skipped on
3838
# both Travis-CI and Gitlab-CI
39-
sed 's|-DPLUGIN_COLUMNSTORE=YES|-DPLUGIN_COLUMNSTORE=NO|' -i debian/rules
39+
sed 's|$(CMAKEFLAGS)|$(CMAKEFLAGS) -DPLUGIN_COLUMNSTORE=NO|' -i debian/rules
4040
sed "/Package: mariadb-plugin-columnstore/,/^$/d" -i debian/control
4141
fi
4242

debian/rules

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ endif
5151
# ColumnStore only attempts to build on a few platforms as dictated by CMake checks
5252
# Also note in debian/control the CS-only build deps marked '[amd64]'
5353
ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),amd64))
54-
# Don't build ColumnStore as part of the native build, only build it when triggered
55-
# by autobake-deb.sh. Saves build time and disk space.
56-
#CMAKEFLAGS += -DPLUGIN_COLUMNSTORE=YES
54+
CMAKEFLAGS += -DPLUGIN_COLUMNSTORE=YES
5755
endif
5856

5957
# 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))
8785
dh_auto_build --builddirectory=builddir-native -- import_executables
8886
endif
8987

88+
# Don't build ColumnStore as part of the native build, only build it when
89+
# triggered by autobake-deb.sh. Saves build time and disk space.
9090
mkdir -p $(BUILDDIR) && cd $(BUILDDIR) && \
9191
sh -c 'PATH=$${MYSQL_BUILD_PATH:-"/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin"} \
9292
CC=${CC} \
@@ -101,6 +101,7 @@ endif
101101
-DPLUGIN_TOKUDB=NO \
102102
-DPLUGIN_CASSANDRA=NO \
103103
-DPLUGIN_AWS_KEY_MANAGEMENT=NO \
104+
-DPLUGIN_COLUMNSTORE=NO \
104105
-DDEB=$(DEB_VENDOR) ..'
105106

106107
# This is needed, otherwise 'make test' will run before binaries have been built

0 commit comments

Comments
 (0)