Commit c2b12c55 authored by Sergei Golubchik's avatar Sergei Golubchik Committed by Oleksandr Byelkin

build deb packages for columnstore

parent 09e8c77c
...@@ -31,7 +31,7 @@ then ...@@ -31,7 +31,7 @@ then
sed 's|DINSTALL_MYSQLTESTDIR=share/mysql/mysql-test|DINSTALL_MYSQLTESTDIR=false|' -i debian/rules sed 's|DINSTALL_MYSQLTESTDIR=share/mysql/mysql-test|DINSTALL_MYSQLTESTDIR=false|' -i debian/rules
# Also skip building RocksDB, Mroonga etc to save even more time and disk space # Also skip building RocksDB, Mroonga etc to save even more time and disk space
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 sed 's|-DDEB|-DPLUGIN_MROONGA=NO -DPLUGIN_SPIDER=NO -DPLUGIN_OQGRAPH=NO -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_SPHINX=NO -DDEB|' -i debian/rules
fi fi
# Convert gcc version to numberical value. Format is Mmmpp where M is Major # Convert gcc version to numberical value. Format is Mmmpp where M is Major
...@@ -75,6 +75,7 @@ fi ...@@ -75,6 +75,7 @@ fi
if [[ $GCCVERSION -lt 40800 ]] || [[ $(arch) =~ i[346]86 ]] || [[ $TRAVIS ]] if [[ $GCCVERSION -lt 40800 ]] || [[ $(arch) =~ i[346]86 ]] || [[ $TRAVIS ]]
then then
sed '/Package: mariadb-plugin-rocksdb/,/^$/d' -i debian/control sed '/Package: mariadb-plugin-rocksdb/,/^$/d' -i debian/control
sed -i 's|-DPLUGIN_ROCKSDB=YES|-DPLUGIN_ROCKSDB=NO|' debian/rules
fi fi
# If libpcre2-dev is not available (before Debian Stretch and Ubuntu Xenial) # If libpcre2-dev is not available (before Debian Stretch and Ubuntu Xenial)
...@@ -94,10 +95,11 @@ then ...@@ -94,10 +95,11 @@ then
sed -i -e "/Package: libmariadbd-dev/,/^$/d" debian/control sed -i -e "/Package: libmariadbd-dev/,/^$/d" debian/control
fi fi
# Don't package ColumnStore if it wasn't turned on to build if [[ $TRAVIS ]] || ! [[ $(arch) =~ 86 ]]
if [[ $CMAKEFLAGS != *"COLUMNSTORE=YES"* ]]
then then
sed -i -e "/Package: mariadb-plugin-columnstore/,/^$/d" debian/control sed -i -e "/Package: mariadb-plugin-columnstore/,/^$/d" debian/control
sed -i '/flex/d' debian/control
sed -i 's|-DPLUGIN_COLUMNSTORE=YES|-DPLUGIN_COLUMNSTORE=NO|' debian/rules
fi fi
# Adjust changelog, add new version # Adjust changelog, add new version
......
...@@ -9,6 +9,7 @@ Build-Depends: bison, ...@@ -9,6 +9,7 @@ Build-Depends: bison,
dh-apparmor, dh-apparmor,
dh-exec, dh-exec,
dh-systemd, dh-systemd,
flex,
gdb, gdb,
libaio-dev [linux-any], libaio-dev [linux-any],
libboost-dev, libboost-dev,
......
...@@ -39,10 +39,6 @@ else ...@@ -39,10 +39,6 @@ else
TESTSUITE_FAIL_CMD:=exit 1 TESTSUITE_FAIL_CMD:=exit 1
endif endif
ifeq (32,$(DEB_HOST_ARCH_BITS))
CMAKEFLAGS += -DWITHOUT_ROCKSDB=true
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
# can be removed once upstream has made the code s390x compatible, see # can be removed once upstream has made the code s390x compatible, see
# https://jira.mariadb.org/browse/MDEV-21705 and # https://jira.mariadb.org/browse/MDEV-21705 and
...@@ -85,8 +81,10 @@ endif ...@@ -85,8 +81,10 @@ endif
-DSYSTEM_TYPE="debian-$(DEB_HOST_GNU_SYSTEM)" \ -DSYSTEM_TYPE="debian-$(DEB_HOST_GNU_SYSTEM)" \
-DCMAKE_SYSTEM_PROCESSOR=$(DEB_HOST_ARCH) \ -DCMAKE_SYSTEM_PROCESSOR=$(DEB_HOST_ARCH) \
-DBUILD_CONFIG=mysql_release \ -DBUILD_CONFIG=mysql_release \
-DWITHOUT_TOKUDB=true \ -DPLUGIN_TOKUDB=NO \
-DWITHOUT_CASSANDRA=true \ -DPLUGIN_CASSANDRA=NO \
-DPLUGIN_COLUMNSTORE=YES \
-DPLUGIN_ROCKSDB=YES \
-DPLUGIN_AWS_KEY_MANAGEMENT=NO \ -DPLUGIN_AWS_KEY_MANAGEMENT=NO \
-WITH_EMBEDDED_SERVER=OFF \ -WITH_EMBEDDED_SERVER=OFF \
-DDEB=$(DEB_VENDOR) ..' -DDEB=$(DEB_VENDOR) ..'
......
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