Package: fail2ban
Version: 0.10.2-1
Severity: important

Dear Maintainer,

Please apply attached patch to fix FTBFS with new dh-python.
Patch also adds missing dh-python to Build-Depends
commit 3080b5a15e02056fadffc9039dc24574588c72f5
Author: Piotr Ożarowski <pi...@debian.org>
Date:   Wed Mar 21 10:32:31 2018 +0100

    do not use pybuild's internal paths

diff --git a/debian/control b/debian/control
index 77b32cb3..a4b4b6f4 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Priority: optional
 Maintainer: Yaroslav Halchenko <deb...@onerussian.com>
 Build-Depends:
  debhelper (>= 9)
+ , dh-python (>= 3.20180313~)
  , debhelper (>= 9.20160709) | dh-systemd
  , python3
  , python3-pyinotify
diff --git a/debian/rules b/debian/rules
index 77db4aa7..bb1e8af3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,6 @@ export PYBUILD_DISABLE_python2=1
 	dh $@ --with python3,systemd --buildsystem pybuild
 
 DESTDIR=$(CURDIR)/debian/fail2ban
-PYVERSION=$(shell py3versions -dv)
 
 override_dh_clean:
 	rm -rf fail2ban.egg-info
@@ -55,7 +54,7 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	cd build && \
 	 LC_ALL=C.UTF-8 \
 	 FAIL2BAN_CONFIG_DIR="$(CURDIR)/config" \
-	 PYTHONPATH="$(CURDIR)/.pybuild/pythonX.Y_$(PYVERSION)/build/" \
+	 PYTHONPATH="$(shell pybuild --print build_dir --interpreter python3)" \
 	  scripts-*/fail2ban-testcases --no-network --verbosity=2
 endif
 

Reply via email to