From f17ae9c19e754e47c7a9471ecfa3d9230bc6efa9 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 19 Nov 2024 16:21:38 +0100 Subject: [PATCH] MT#61568 debian: Switch to Rules-Requires-Root no MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This field tells dpkg-buildpackage that no debian/rules target needs to run as root-like (usually via fakeroot), and can be built with no privileges (real or faked ones). This should make the build either faster as there will be no interposed libc calls via an LD_PRELOAD library like fakeroot does, and more robust as fakeroot needs to keep up with implementation details from the system libc; or more secure if the build was being done via real root. The full documentation can be found with «man deb-src-control» and at «/usr/share/doc/dpkg/spec/rootless-builds.txt». We no longer need to build the package as (fake)root. A rebuild before and after this change produces the same file list (except for a renamed debug symbol file due to file contents change) and permissions. Change-Id: If60eb03b8a7c3813fcd2dd2bab70a36b9ac7a888 --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index dac960ed9..c4e3c3956 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: ngcp-kamailio Section: net Priority: optional Maintainer: Sipwise Development Team -Rules-Requires-Root: binary-targets +Rules-Requires-Root: no Build-Depends: bison, debhelper-compat (= 13),