Subject: [PATCH] Build without Rules-Requires-Root: binary-targets

From: Jochen Sprickerhof <[email-masked]>
Date: Wed, 24 Jun 2026 11:40:36 +0200

This allows building without fakeroot and makes the package reproducible
on reproduce.debian.net. Note that setting install_user/group has no
effect on on the resulting packages as the user and group are fixed by
the Debian build tooling.
---
 debian/control    | 1 -
 debian/control.in | 1 -
 debian/rules      | 2 +-
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 1569c0e..1be197a 100644
--- a/debian/control
+++ b/debian/control
@@ -31,7 +31,6 @@ Build-Depends: debhelper-compat (= 13),
                libidn2-dev,
                libidn-dev
 Homepage: http://www.proftpd.org/
-Rules-Requires-Root: binary-targets
 Vcs-Browser: https://salsa.debian.org/debian-proftpd-team/proftpd
 Vcs-Git: https://salsa.debian.org/debian-proftpd-team/proftpd.git
 
diff --git a/debian/control.in b/debian/control.in
index 04e01ba..002f7e1 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -31,7 +31,6 @@ Build-Depends: debhelper-compat (= 13),
                libidn2-dev,
                libidn-dev
 Homepage: http://www.proftpd.org/
-Rules-Requires-Root: binary-targets
 Vcs-Browser: https://salsa.debian.org/debian-proftpd-team/proftpd
 Vcs-Git: https://salsa.debian.org/debian-proftpd-team/proftpd.git
 
diff --git a/debian/rules b/debian/rules
index ff6687a..e12fe33 100755
--- a/debian/rules
+++ b/debian/rules
@@ -73,7 +73,7 @@ override_dh_auto_configure:
 
 	# upstream autotools stuff is old enough to miss --runstatedir option and break debhelper(>10)
 	# dh_auto_configure -- $(CONF_ARGS) --with-shared=$(DSOMODS1):$(DSOMODS2):$(DSOMODS3):$(DSOMODS4):$(DSOMODS5):$(DSOMODS6)
-	./configure --infodir=\${prefix}/share/info --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/$(DEB_BUILD_GNU_TYPE) --disable-dependency-tracking \
+	install_user=$$(id -un) install_group=$$(id -gn) ./configure --infodir=\${prefix}/share/info --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/$(DEB_BUILD_GNU_TYPE) --disable-dependency-tracking \
 				$(CONF_ARGS) --with-shared=$(DSOMODS1):$(DSOMODS2):$(DSOMODS3):$(DSOMODS4):$(DSOMODS5):$(DSOMODS6)
 
 override_dh_auto_build: debian/proftpd-substvars
-- 
2.53.0