Please see the revised patch, which drops the redundant --prefix=/usr.
Peter
--- a/debian/rules +++ b/debian/rules @@ -1,19 +1,14 @@ #!/usr/bin/make -f +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + %: dh $@ --with systemd,autoreconf -CONFIGURE_FLAGS := --prefix /usr ifeq (linux,$(DEB_HOST_ARCH_OS)) CONFIGURE_FLAGS += --with-systemd \ --with-systemdsystemunitdir=/lib/systemd/system endif -override_dh_auto_build: - autoreconf -i - ./configure $(CONFIGURE_FLAGS) - $(MAKE) - -override_dh_clean: - rm -f aclocal.m4 - dh_clean +override_dh_auto_configure: + dh_auto_configure -- $(CONFIGURE_FLAGS)