From bcc26d6dfbe6948e8f79d501ac727b34771e4021 Mon Sep 17 00:00:00 2001 From: Steve McIntyre <93sam@debian.org> Date: Sun, 21 Feb 2021 16:14:14 +0000 Subject: [PATCH] Remove artifacts that upstream installs that we don't use ... to keep debhelper from complaining --- debian/rules | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/rules b/debian/rules index 952f646..00c5547 100755 --- a/debian/rules +++ b/debian/rules @@ -65,4 +65,10 @@ override_dh_auto_build: $(DBX_LIST) override_dh_auto_install: dh_auto_install --destdir=debian/tmp -- $(COMMON_OPTIONS) + # Remove the copy of the source that's installed - we have git + # already... + rm -rf debian/tmp/usr + # And remove the extra removable-media copy of shim too, it's + # not needed for our build and causes debhelper to complain + rm -f debian/tmp/boot/efi/EFI/BOOT/BOOT*.EFI ./debian/signing-template.generate