Commit 09216567 authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

Skip TokuDB within autobake-deb.sh

Skipping the package within debian/rules won't work because starting
with Debian 10, the helper scripts read the control file before the
recipe.
parent a4d4836f
...@@ -91,6 +91,12 @@ then ...@@ -91,6 +91,12 @@ then
sed '/Package: mariadb-plugin-rocksdb/,/^$/d' -i debian/control sed '/Package: mariadb-plugin-rocksdb/,/^$/d' -i debian/control
fi fi
## Skip TokuDB if arch is not amd64
if [[ ! $(dpkg-architecture -q DEB_BUILD_ARCH) =~ amd64 ]]
then
sed '/Package: mariadb-plugin-tokudb/,/^$/d' -i debian/control
fi
# Always remove aws plugin, see -DNOT_FOR_DISTRIBUTION in CMakeLists.txt # Always remove aws plugin, see -DNOT_FOR_DISTRIBUTION in CMakeLists.txt
sed '/Package: mariadb-plugin-aws-key-management-10.2/,/^$/d' -i debian/control sed '/Package: mariadb-plugin-aws-key-management-10.2/,/^$/d' -i debian/control
......
...@@ -112,11 +112,6 @@ override_dh_auto_install: ...@@ -112,11 +112,6 @@ override_dh_auto_install:
dh_testdir dh_testdir
dh_testroot dh_testroot
# Skip TokuDB if arch is not amd64
ifneq ($(ARCH), amd64)
sed -i -e "/Package: mariadb-plugin-tokudb/,+16d" debian/control
endif
# Copy systemd files to a location available for dh_installinit # Copy systemd files to a location available for dh_installinit
cp $(BUILDDIR)/support-files/mariadb.service debian/mariadb-server-10.2.mariadb.service cp $(BUILDDIR)/support-files/mariadb.service debian/mariadb-server-10.2.mariadb.service
cp $(BUILDDIR)/support-files/mariadb@.service debian/mariadb-server-10.2.mariadb@.service cp $(BUILDDIR)/support-files/mariadb@.service debian/mariadb-server-10.2.mariadb@.service
......
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