summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2021-05-09 22:56:26 +0200
committerHelmut Grohne <helmut@subdivi.de>2021-05-09 22:56:26 +0200
commit594bd93d1cb04d38c92910e5babb9f353154ebcf (patch)
tree1212f50b9acebe23efb83085318b42bb26f3a5e8
parentff71379fe9a4b333f3effc359b30100eb3f4df3c (diff)
downloadmdbp-594bd93d1cb04d38c92910e5babb9f353154ebcf.tar.gz
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.
-rw-r--r--mdbp/mmdebstrap.py5
1 files changed, 3 insertions, 2 deletions
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)