Skip to content

Commit 113f186

Browse files
committed
Fix previous commit: PLUGIN_COLUMNSTORE=YES can only be active on amd64
Refactor previous commit to fix mistake revealed by Buildbot. We can't have a structure where PLUGIN_COLUMNSTORE would ever be 'YES' on an arch that does not support it, as the flag overrides any potential platform detection code and builds on non-amd64 would all fail.
1 parent ecb1b87 commit 113f186

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

debian/autobake-deb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [[ -d storage/columnstore/columnstore/debian ]]; then
2424
cat storage/columnstore/columnstore/debian/control >> debian/control
2525
# Don't build ColumnStore as part of the native build, only build it when triggered
2626
# by autobake-deb.sh
27-
sed 's|-DPLUGIN_COLUMNSTORE=NO|-DPLUGIN_COLUMNSTORE=YES|' -i debian/rules
27+
sed 's|#CMAKEFLAGS += -DPLUGIN_COLUMNSTORE=YES|CMAKEFLAGS += -DPLUGIN_COLUMNSTORE=YES|' -i debian/rules
2828
fi
2929

3030
# General CI optimizations to keep build output smaller

debian/rules

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ 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-
CMAKEFLAGS += -DPLUGIN_COLUMNSTORE=YES
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
5557
endif
5658

5759
# Add extra flag to avoid WolfSSL code crashing the entire mariadbd on s390x. This
@@ -85,8 +87,6 @@ ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
8587
dh_auto_build --builddirectory=builddir-native -- import_executables
8688
endif
8789

88-
# Don't build ColumnStore as part of the native build, only build it when triggered
89-
# 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,7 +101,6 @@ endif
101101
-DPLUGIN_TOKUDB=NO \
102102
-DPLUGIN_CASSANDRA=NO \
103103
-DPLUGIN_AWS_KEY_MANAGEMENT=NO \
104-
-DPLUGIN_COLUMNSTORE=NO \
105104
-DDEB=$(DEB_VENDOR) ..'
106105

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

0 commit comments

Comments
 (0)