public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v2] debianize: set DEBIAN_RULES_REQUIRES_ROOT default to "no"
@ 2025-11-01 20:07 'Badrikesh Prusty' via isar-users
  0 siblings, 0 replies; only message in thread
From: 'Badrikesh Prusty' via isar-users @ 2025-11-01 20:07 UTC (permalink / raw)
  To: isar-users; +Cc: badrikesh prusty

From: badrikesh prusty <badrikesh.prusty@siemens.com>

Set DEBIAN_RULES_REQUIRES_ROOT to "no" by default to disable the need for
root privileges during package builds on Debian releases before Trixie.

Since dpkg 1.22.13 (Debian Trixie and later), the default value is "no".
In earlier dpkg versions (Debian Bookworm and before), the default was
"binary-targets".

Debian recommends not using root during builds whenever possible. It may
make builds faster by skipping unnecessary root or fakeroot operations.
Recipes that require root privileges can override this by setting
DEBIAN_RULES_REQUIRES_ROOT accordingly.

This also fixes hangs observed during fakeroot calls in
dpkg-buildpackage. References:
https://github.com/ilbers/isar/issues/113
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1114644
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072521

Signed-off-by: badrikesh prusty <badrikesh.prusty@siemens.com>
---
 meta/classes/debianize.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/debianize.bbclass b/meta/classes/debianize.bbclass
index 1f54e8f9..ad9e1a0d 100644
--- a/meta/classes/debianize.bbclass
+++ b/meta/classes/debianize.bbclass
@@ -18,7 +18,7 @@ DEBIAN_BUILT_USING ??= ""
 DEBIAN_MULTI_ARCH ??= "no"
 DEBIAN_COMPAT ??= "10"
 DEBIAN_CHANGELOG_TIMESTAMP ??= "3600"
-DEBIAN_RULES_REQUIRES_ROOT ??= ""
+DEBIAN_RULES_REQUIRES_ROOT ??= "no"
 DESCRIPTION ??= "must not be empty"
 MAINTAINER ??= "Unknown maintainer <unknown@example.com>"
 
-- 
2.47.3

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20251101200713.140000-1-badrikesh.prusty%40siemens.com.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-11-01 20:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-01 20:07 [PATCH v2] debianize: set DEBIAN_RULES_REQUIRES_ROOT default to "no" 'Badrikesh Prusty' via isar-users

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox