Commit 058d93d4 authored by Otto Kekäläinen's avatar Otto Kekäläinen Committed by Daniel Black

Deb: Stop depending on empty transitional package dh-systemd

MariaDB Server still supports Ubuntu 16.04 "Xenial" until it goes EOL
in April 30, 2021. Thus we need to include a customization for backwards
compatibility.

This change is intended to be applied for all MariaDB versions still
supported, i.e. 10.2 to 10.6.
parent 966c5a35
...@@ -106,6 +106,15 @@ then ...@@ -106,6 +106,15 @@ then
sed '/Package: mariadb-plugin-cassandra/,/^$/d' -i debian/control sed '/Package: mariadb-plugin-cassandra/,/^$/d' -i debian/control
fi fi
# From Debian Stretch/Ubuntu Bionic onwards dh-systemd is just an empty
# transitional metapackage and the functionality was merged into debhelper.
# In Ubuntu Hirsute is was completely removed, so it can't be referenced anymore.
# Keep using it only on Debian Jessie and Ubuntu Xenial.
if apt-cache madison dh-systemd | grep 'dh-systemd' >/dev/null 2>&1
then
sed 's/debhelper (>= 9.20160709~),/debhelper (>= 9), dh-systemd,/' -i debian/control
fi
# Adjust changelog, add new version # Adjust changelog, add new version
echo "Incrementing changelog and starting build scripts" echo "Incrementing changelog and starting build scripts"
......
...@@ -5,7 +5,7 @@ Maintainer: MariaDB Developers <maria-developers@lists.launchpad.net> ...@@ -5,7 +5,7 @@ Maintainer: MariaDB Developers <maria-developers@lists.launchpad.net>
Build-Depends: bison, Build-Depends: bison,
chrpath, chrpath,
cmake (>= 2.7), cmake (>= 2.7),
debhelper (>= 9), debhelper (>= 9.20160709~),
dh-apparmor, dh-apparmor,
dh-systemd, dh-systemd,
dpatch, dpatch,
......
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