[noble PATCH v2 3/3] UBUNTU: SAUCE: Allow to run debian/rules without (fake)root
Masahiro Yamada
masahiro.yamada at canonical.com
Mon Dec 4 01:49:49 UTC 2023
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 <masahiro.yamada at canonical.com>
---
(no changes since v1)
debian/rules | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/rules b/debian/rules
index b78aff60ce24..787f412dba0c 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 }' <debian/debian.env)
--
2.40.1
More information about the kernel-team
mailing list