Bug#800272: qmtest: Please migrate a supported debhelper compat level
Package: qmtest
Version: 2.4.1-2
Followup-For: Bug #800272
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu xenial ubuntu-patch
Dear Maintainer,
In Ubuntu, the attached patch was applied to achieve the following:
* debian/rules:
- Remove legacy DH_COMPAT export.
- Use dh_prep instead of dh_clean -k.
* debian/compat: Change compatibility level to 9.
* debian/control: Build-depend on debhelper (>= 9).
Thanks for considering the patch.
Logan Rosen
-- System Information:
Debian Release: stretch/sid
APT prefers xenial-updates
APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.4.0-7-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -u qmtest-2.4.1/debian/control qmtest-2.4.1/debian/control
--- qmtest-2.4.1/debian/control
+++ qmtest-2.4.1/debian/control
@@ -2,7 +2,7 @@
Section: devel
Priority: optional
Maintainer: Debian QA Group <packages@qa.debian.org>
-Build-Depends: debhelper (>= 5.0.37.1), python-all-dev (>= 2.4), jadetex, tidy, docbook-dsssl, sgml-data, docbook-xml
+Build-Depends: debhelper (>= 9), python-all-dev (>= 2.4), jadetex, tidy, docbook-dsssl, sgml-data, docbook-xml
Standards-Version: 3.9.4
Package: qmtest
diff -u qmtest-2.4.1/debian/compat qmtest-2.4.1/debian/compat
--- qmtest-2.4.1/debian/compat
+++ qmtest-2.4.1/debian/compat
@@ -1 +1 @@
-5
+9
diff -u qmtest-2.4.1/debian/rules qmtest-2.4.1/debian/rules
--- qmtest-2.4.1/debian/rules
+++ qmtest-2.4.1/debian/rules
@@ -41,7 +41,7 @@
install: build
dh_testdir
dh_testroot
- dh_clean -k
+ dh_prep
set -e; \
for v in $(PYVERS); do \
@@ -61,7 +61,7 @@
usr/share/man/man1
: # qm-sigmask package
- DH_COMPAT=2 dh_movefiles -p$(p_sig) --sourcedir=$(d_test) \
+ dh_movefiles -p$(p_sig) --sourcedir=$(d_test) \
usr/lib/python*/*-packages/qm/sigmask.so
for v in $(PYVERS); do \
libdir=$$(python$$v -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())'); \
Reply to: