From 5eccec0868adfbbcf3c68f235b8f524ed1ca8e12 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Mon, 4 Dec 2023 10:49:49 +0900 Subject: [PATCH] UBUNTU: [Packaging] Allow to run debian/rules without (fake)root While DEB_RULES_REQUIRES_ROOT is set by build drivers like dpkg-buildpackage, we often run debian/rules directly. Typing "fakeroot debian/rules ..." can be tedious, so we introduced a shorthand alias fdr="fakeroot debian/rules" By setting DEB_RULES_REQUIRES_ROOT=no, debhelpers will function as intended even when debian/rules is directly executed without fakeroot. Signed-off-by: Masahiro Yamada Acked-by: Agathe Porte Acked-by: Thibault Ferrante Signed-off-by: Dimitri John Ledkov --- debian/rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/rules b/debian/rules index 57595186fcc6..396c853fbe85 100755 --- a/debian/rules +++ b/debian/rules @@ -11,6 +11,9 @@ # (this increases performance and avoids hard-to-debug behaviour) MAKEFLAGS += -rR +# Allow to run debian/rules directly without root +export DEB_RULES_REQUIRES_ROOT := no + .NOTPARALLEL: DEBIAN=$(shell awk -F= '($$1 == "DEBIAN") { print $$2 }'