From a323afdf371df04b036f18fee47b912ce42ce200 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 19 Apr 2020 18:13:12 +0100 Subject: [PATCH] bin/chroot-maint: Force `--no-merged-usr'. Otherwise things go excitingly wrong. The crosstools tree has split root and `/usr', so when we try to copy the tools into the target chroot, the corresponding paths start fighting each other, and only one `.../lib/x86_x64-linux-gnu' symlink can win. Also, you can't make good package builds with merged `/usr'. Also also, it's just a really bad idea. --- bin/chroot-maint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/chroot-maint b/bin/chroot-maint index ba6aa50..6202f49 100755 --- a/bin/chroot-maint +++ b/bin/chroot-maint @@ -2116,7 +2116,7 @@ class ChrootJob (BaseJob): ## Install the base system. progress("install base system") - run_root(["eatmydata", "debootstrap"] + + run_root(["eatmydata", "debootstrap", "--no-merged-usr"] + (arch in C.FOREIGN_ARCHS and ["--foreign"] or []) + ["--arch=" + arch, "--variant=minbase", "--include=" + ",".join(C.BASE_PACKAGES), -- 2.11.0