From 594bd93d1cb04d38c92910e5babb9f353154ebcf Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 9 May 2021 22:56:26 +0200 Subject: mmdebstrap: install fakeroot When the package does not say "Rules-Requires-Root: no", we need a root command and dpkg-buildpackage defaults to fakeroot. Unfortunately, we cannot tell whether the packages requires fakeroot, because the stanza is not copied to the .dsc. Unconditionally install fakeroot then. --- mdbp/mmdebstrap.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mdbp/mmdebstrap.py') diff --git a/mdbp/mmdebstrap.py b/mdbp/mmdebstrap.py index 21862c6..c5139b5 100644 --- a/mdbp/mmdebstrap.py +++ b/mdbp/mmdebstrap.py @@ -70,11 +70,12 @@ def main() -> None: hostarch = build.get("hostarch") or buildarch if buildarch == hostarch: - buildessential = set(("build-essential",)) + buildessential = set(("build-essential", "fakeroot")) else: buildessential = set(("crossbuild-essential-" + hostarch, "libc-dev:" + hostarch, - "libstdc++-dev:" + hostarch)) + "libstdc++-dev:" + hostarch, + "fakeroot")) buildpath = pathlib.PurePath(build.get("buildpath", "/build/build")) enablelog = build["output"].get("log", True) -- cgit v1.2.3