summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-11-21 10:25:38 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2022-11-21 10:25:38 +0200
commitb35a048ece4f5dd7c6757d86a303f27187a16117 (patch)
tree707189e5b00169b61b9ec13608625b938bd4f35b /debian/rules
parent91a7e9eb1ef9bfba6a1da5bca4a9b8c58a94c245 (diff)
parent5b1eb87b6fc9cd09d5a0ffcd926203700e035689 (diff)
downloadmariadb-git-b35a048ece4f5dd7c6757d86a303f27187a16117.tar.gz
Merge 10.8 into 10.9
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules21
1 files changed, 12 insertions, 9 deletions
diff --git a/debian/rules b/debian/rules
index df205d64d20..5d5766a95c7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,13 @@ export DEB_BUILD_HARDENING=1
# enable Debian Hardening
# see: https://wiki.debian.org/Hardening
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# Disable LTO on Ubuntu, see LP: #1970634 and https://jira.mariadb.org/browse/MDEV-25633
+ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes), yes)
+ export DEB_BUILD_MAINT_OPTIONS += optimize=-lto
+endif
+
DPKG_EXPORT_BUILDFLAGS = 1
# Include all defaults, including buildflags.mk
include /usr/share/dpkg/default.mk
@@ -48,11 +54,6 @@ ifeq (32,$(DEB_HOST_ARCH_BITS))
CMAKEFLAGS += -DPLUGIN_ROCKSDB=NO
endif
-# ColumnStore can build only on amd64 and arm64
-ifneq (,$(filter $(DEB_HOST_ARCH_CPU),amd64 arm64))
- CMAKEFLAGS += -DPLUGIN_COLUMNSTORE=NO
-endif
-
# Cross building requires stack direction instruction
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
ifneq (,$(filter $(DEB_HOST_ARCH_CPU),alpha amd64 arm arm64 i386 ia64 m68k mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sh4 sparc64))
@@ -66,7 +67,7 @@ endif
# Only attempt to build with PMEM on archs that have package libpmem-dev available
# See https://packages.debian.org/search?searchon=names&keywords=libpmem-dev
ifneq (,$(filter $(DEB_HOST_ARCH_CPU),amd64 arm64 ppc64el riscv64))
- CMAKEFLAGS += -DWITH_PMEM=yes
+ CMAKEFLAGS += -DWITH_PMEM=YES
endif
# Add support for verbose builds
@@ -111,9 +112,9 @@ endif
-DBUILD_CONFIG=mysql_release \
-DCONC_DEFAULT_CHARSET=utf8mb4 \
-DPLUGIN_AWS_KEY_MANAGEMENT=NO \
- -DPLUGIN_COLUMNSTORE=NO \
+ -DPLUGIN_COLUMNSTORE=NO \
-DIGNORE_AIO_CHECK=YES \
- -DWITH_URING=yes \
+ -DWITH_URING=YES \
-DDEB=$(DEB_VENDOR)
# This is needed, otherwise 'make test' will run before binaries have been built
@@ -126,6 +127,7 @@ override_dh_auto_build:
override_dh_auto_test:
@echo "RULES.$@"
dh_testdir
+ # Ensure at least an empty file exists
touch mysql-test/unstable-tests
[ ! -f debian/unstable-tests.$(DEB_HOST_ARCH) ] || cat debian/unstable-tests.$(DEB_HOST_ARCH) >> mysql-test/unstable-tests
# Run testsuite
@@ -210,6 +212,7 @@ override_dh_installinit-arch:
dh_installinit --name=mariadb --no-start -- defaults 19 21
dh_systemd_start --restart-after-upgrade
+# Use custom server version string variable
override_dh_gencontrol:
dh_gencontrol -- -Tdebian/substvars