From 626fd75173f81e3116b0a7fb4abebe33c6ba6507 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Wed, 29 Jul 2020 12:46:24 +0300 Subject: [PATCH] dist: debian: do not require root during package build Debian package builds provide a root environment for the installation scripts, since that's what typical installation scripts expect. To avoid providing actual root, a "fakeroot" system is used where syscalls are intercepted and any effect that requires root (like chown) is emulated. However, fakeroot sporadically fails for us, aborting the package build. Since our install scripts don't really require root (when operating in the --packaging mode), we can just tell dpkg-buildpackage that we don't need fakeroot. This ought to fix the sporadic failures. As a side effect, package builds are faster. Follows scylla.git's b608af870b0a1ad88b91a72bddeff0c321877f9e. Refs scylladb/scylla#6655. --- dist/debian/control.template | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/debian/control.template b/dist/debian/control.template index 8b21ee2..1564e91 100644 --- a/dist/debian/control.template +++ b/dist/debian/control.template @@ -4,6 +4,7 @@ Homepage: http://scylladb.com Section: database Priority: optional Standards-Version: 3.9.5 +Rules-Requires-Root: no Package: %{product}-jmx Architecture: all