@@ -42,6 +42,14 @@ GCCVERSION=$(gcc -dumpfullversion -dumpversion | sed -e 's/\.\([0-9][0-9]\)/\1/g
42
42
# Debian policy and targeting Debian Sid. Then case-by-case run in autobake-deb.sh
43
43
# tests for backwards compatibility and strip away parts on older builders.
44
44
45
+ CODENAME=" $( lsb_release -sc) "
46
+ case " ${CODENAME} " in
47
+ stretch)
48
+ # MDEV-28022 libzstd-dev-1.1.3 minimum version
49
+ sed -i -e ' /libzstd-dev/d' debian/control
50
+ ;;
51
+ esac
52
+
45
53
# If libcrack2 (>= 2.9.0) is not available (before Debian Jessie and Ubuntu Trusty)
46
54
# clean away the cracklib stanzas so the package can build without them.
47
55
if ! apt-cache madison libcrack2-dev | grep ' libcrack2-dev *| *2\.9' > /dev/null 2>&1
72
80
sed ' /mariadb-service-convert/d' -i debian/mariadb-server-10.3.install
73
81
fi
74
82
75
- # If libzstd-dev is not available (before Debian Stretch and Ubuntu Xenial)
76
- # remove the dependency from server and rocksdb so it can build properly
77
- if ! apt-cache madison libzstd-dev | grep ' libzstd-dev' > /dev/null 2>&1
78
- then
79
- sed ' /libzstd-dev/d' -i debian/control
80
- fi
81
-
82
83
# The binaries should be fully hardened by default. However TokuDB compilation seems to fail on
83
84
# Debian Jessie and older and on Ubuntu Xenial and older with the following error message:
84
85
# /usr/bin/ld.bfd.real: /tmp/ccOIwjFo.ltrans0.ltrans.o: relocation R_X86_64_PC32 against symbol
@@ -139,7 +140,6 @@ source ./VERSION
139
140
UPSTREAM=" ${MYSQL_VERSION_MAJOR} .${MYSQL_VERSION_MINOR} .${MYSQL_VERSION_PATCH}${MYSQL_VERSION_EXTRA} "
140
141
PATCHLEVEL=" +maria"
141
142
LOGSTRING=" MariaDB build"
142
- CODENAME=" $( lsb_release -sc) "
143
143
EPOCH=" 1:"
144
144
145
145
dch -b -D ${CODENAME} -v " ${EPOCH}${UPSTREAM}${PATCHLEVEL} ~${CODENAME} " " Automatic build with ${LOGSTRING} ."
0 commit comments