|
38 | 38 | NUMJOBS = 1
|
39 | 39 | endif
|
40 | 40 |
|
41 |
| -# RocksDB cannot build on 32-bit platforms |
42 |
| -ifeq (32,$(DEB_HOST_ARCH_BITS)) |
43 |
| - CMAKEFLAGS += -DPLUGIN_ROCKSDB=NO |
44 |
| -endif |
45 |
| - |
46 | 41 | ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
|
47 | 42 | ifneq (,$(filter $(DEB_HOST_ARCH_CPU),alpha amd64 arm arm64 i386 ia64 m68k mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sh4 sparc64))
|
48 | 43 | CMAKEFLAGS += -DSTACK_DIRECTION=-1
|
@@ -74,15 +69,26 @@ ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
|
74 | 69 | dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_configure --builddirectory=builddir-native
|
75 | 70 | dh_auto_build --builddirectory=builddir-native -- import_executables
|
76 | 71 | endif
|
| 72 | + |
| 73 | + # ColumnStore is part of the build |
| 74 | +ifneq (32,$(DEB_HOST_ARCH_BITS)) |
| 75 | + # Take the files and part of control from MCS directory |
| 76 | + cp -v storage/columnstore/columnstore/debian/mariadb-plugin-columnstore.* debian/ |
| 77 | + # Don't include twice |
| 78 | + grep -q '^Package: mariadb-plugin-columnstore$$' debian/control || \ |
| 79 | + echo >> debian/control && \ |
| 80 | + cat storage/columnstore/columnstore/debian/control >> debian/control |
| 81 | +endif |
| 82 | + |
77 | 83 | echo "server:Version=$(DEB_VERSION)" >> debian/substvars
|
78 | 84 |
|
79 |
| - # Don't build ColumnStore as part of the native build, only build it when |
80 |
| - # triggered by autobake-deb.sh. Saves build time and disk space. |
| 85 | + # RocksDB and Column Store cannot build on 32-bit platforms |
81 | 86 | PATH=$${MYSQL_BUILD_PATH:-"/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin"} \
|
82 | 87 | NO_UPDATE_BUILD_VERSION=1 \
|
83 | 88 | dh_auto_configure --builddirectory=$(BUILDDIR) -- \
|
84 | 89 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
85 | 90 | $(CMAKEFLAGS) \
|
| 91 | + $(if $(findstring $(DEB_HOST_ARCH_BITS),32),-DPLUGIN_ROCKSDB=NO -DPLUGIN_COLUMNSTORE=NO) \ |
86 | 92 | $(if $(filter $(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)),,-DIMPORT_EXECUTABLES=$(CURDIR)/builddir-native/import_executables.cmake) \
|
87 | 93 | -DCOMPILATION_COMMENT="mariadb.org binary distribution" \
|
88 | 94 | -DMYSQL_SERVER_SUFFIX="-$(DEB_VERSION_REVISION)" \
|
|
92 | 98 | -DPLUGIN_TOKUDB=NO \
|
93 | 99 | -DPLUGIN_CASSANDRA=NO \
|
94 | 100 | -DPLUGIN_AWS_KEY_MANAGEMENT=NO \
|
95 |
| - -DPLUGIN_COLUMNSTORE=NO \ |
96 | 101 | -DDEB=$(DEB_VENDOR)
|
97 | 102 |
|
98 | 103 | # This is needed, otherwise 'make test' will run before binaries have been built
|
|
0 commit comments