Skip to content

Commit c2b12c5

Browse files
vuvovasanja-byelkin
authored andcommitted
build deb packages for columnstore
1 parent 09e8c77 commit c2b12c5

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

debian/autobake-deb.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ then
3131
sed 's|DINSTALL_MYSQLTESTDIR=share/mysql/mysql-test|DINSTALL_MYSQLTESTDIR=false|' -i debian/rules
3232

3333
# Also skip building RocksDB, Mroonga etc to save even more time and disk space
34-
sed 's|-DDEB|-DPLUGIN_MROONGA=NO -DPLUGIN_ROCKSDB=NO -DPLUGIN_SPIDER=NO -DPLUGIN_OQGRAPH=NO -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_SPHINX=NO -DDEB|' -i debian/rules
34+
sed 's|-DDEB|-DPLUGIN_MROONGA=NO -DPLUGIN_SPIDER=NO -DPLUGIN_OQGRAPH=NO -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_SPHINX=NO -DDEB|' -i debian/rules
3535
fi
3636

3737
# Convert gcc version to numberical value. Format is Mmmpp where M is Major
@@ -75,6 +75,7 @@ fi
7575
if [[ $GCCVERSION -lt 40800 ]] || [[ $(arch) =~ i[346]86 ]] || [[ $TRAVIS ]]
7676
then
7777
sed '/Package: mariadb-plugin-rocksdb/,/^$/d' -i debian/control
78+
sed -i 's|-DPLUGIN_ROCKSDB=YES|-DPLUGIN_ROCKSDB=NO|' debian/rules
7879
fi
7980

8081
# If libpcre2-dev is not available (before Debian Stretch and Ubuntu Xenial)
@@ -94,10 +95,11 @@ then
9495
sed -i -e "/Package: libmariadbd-dev/,/^$/d" debian/control
9596
fi
9697

97-
# Don't package ColumnStore if it wasn't turned on to build
98-
if [[ $CMAKEFLAGS != *"COLUMNSTORE=YES"* ]]
98+
if [[ $TRAVIS ]] || ! [[ $(arch) =~ 86 ]]
9999
then
100-
sed -i -e "/Package: mariadb-plugin-columnstore/,/^$/d" debian/control
100+
sed -i -e "/Package: mariadb-plugin-columnstore/,/^$/d" debian/control
101+
sed -i '/flex/d' debian/control
102+
sed -i 's|-DPLUGIN_COLUMNSTORE=YES|-DPLUGIN_COLUMNSTORE=NO|' debian/rules
101103
fi
102104

103105
# Adjust changelog, add new version

debian/control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Build-Depends: bison,
99
dh-apparmor,
1010
dh-exec,
1111
dh-systemd,
12+
flex,
1213
gdb,
1314
libaio-dev [linux-any],
1415
libboost-dev,

debian/rules

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ else
3939
TESTSUITE_FAIL_CMD:=exit 1
4040
endif
4141

42-
ifeq (32,$(DEB_HOST_ARCH_BITS))
43-
CMAKEFLAGS += -DWITHOUT_ROCKSDB=true
44-
endif
45-
4642
# Add extra flag to avoid WolfSSL code crashing the entire mariadbd on s390x. This
4743
# can be removed once upstream has made the code s390x compatible, see
4844
# https://jira.mariadb.org/browse/MDEV-21705 and
@@ -85,8 +81,10 @@ endif
8581
-DSYSTEM_TYPE="debian-$(DEB_HOST_GNU_SYSTEM)" \
8682
-DCMAKE_SYSTEM_PROCESSOR=$(DEB_HOST_ARCH) \
8783
-DBUILD_CONFIG=mysql_release \
88-
-DWITHOUT_TOKUDB=true \
89-
-DWITHOUT_CASSANDRA=true \
84+
-DPLUGIN_TOKUDB=NO \
85+
-DPLUGIN_CASSANDRA=NO \
86+
-DPLUGIN_COLUMNSTORE=YES \
87+
-DPLUGIN_ROCKSDB=YES \
9088
-DPLUGIN_AWS_KEY_MANAGEMENT=NO \
9189
-WITH_EMBEDDED_SERVER=OFF \
9290
-DDEB=$(DEB_VENDOR) ..'

0 commit comments

Comments
 (0)