From d3c3031bd2695a27ade5807351810d1365f0c9fb Mon Sep 17 00:00:00 2001
From: Georgy Moiseev <georgy.moiseev@corp.mail.ru>
Date: Mon, 4 Oct 2021 15:11:48 +0300
Subject: [PATCH] debian: bump debian/compat to 10

Bump debian/compat to 10 since 9 is deprecated. Bump minimal required
debhelper to 10 (except for Ubuntu Trusty and Xenial) since it is the
recommended practice for compatibility level setup.

Closes #6393
---
 changelogs/unreleased/gh-6393-bump-debian-compat.md | 5 +++++
 debian/compat                                       | 2 +-
 debian/control                                      | 4 ++++
 3 files changed, 10 insertions(+), 1 deletion(-)
 create mode 100644 changelogs/unreleased/gh-6393-bump-debian-compat.md

diff --git a/changelogs/unreleased/gh-6393-bump-debian-compat.md b/changelogs/unreleased/gh-6393-bump-debian-compat.md
new file mode 100644
index 0000000000..66567941b6
--- /dev/null
+++ b/changelogs/unreleased/gh-6393-bump-debian-compat.md
@@ -0,0 +1,5 @@
+## feature/build
+
+* Bump debian package compatibility level to 10 (gh-5429).
+
+  Bump minimal required debhelper to version 10 (except for Ubuntu Xenial).
\ No newline at end of file
diff --git a/debian/compat b/debian/compat
index ec635144f6..f599e28b8a 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-9
+10
diff --git a/debian/control b/debian/control
index 19a4cfac33..6fbfffdde1 100644
--- a/debian/control
+++ b/debian/control
@@ -3,6 +3,10 @@ Priority: optional
 Maintainer: Alexander Turenko <alexander.turenko@tarantool.org>
 Uploaders: Dmitry E. Oboukhov <unera@debian.org>
 Build-Depends: cdbs (>= 0.4.100), debhelper (>= 9), dpkg-dev (>= 1.16.1~),
+# It is recommended to use debhelper version equal to or greater than
+# compatibility level. This is a workaround for Ubuntu Xenial repos
+# missing debhelper 10.
+ base-files (<< 9.9) | debhelper (>= 10),
 # Enable systemd for Debian Jessie+ and Ubuntu Wily+
  debhelper (>= 9.20160709) | dh-systemd (>= 1.22) | sysvinit (<< 2.88dsf-59) | upstart (<< 1.13),
 # XXX: This is a tiny hack to support Tarantool build on the old
-- 
GitLab