diff mbox series

[3/6,Unstable] UBUNTU: [Debian] remove dh_testroot from install targets

Message ID 20210603130516.632208-4-seth.forshee@canonical.com
State New
Headers show
Series Kernel package builds running out of space on builders | expand

Commit Message

Seth Forshee June 3, 2021, 1:05 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1930713

When invoked during the build phase we do not expect to be running as
root or under fakeroot.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
---
 debian/rules.d/2-binary-arch.mk  | 1 -
 debian/rules.d/3-binary-indep.mk | 1 -
 2 files changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index b6b8640d8b8f..7e2c8b7ae169 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -124,7 +124,6 @@  $(stampdir)/stamp-install-%: dbgpkgdir_zfs = $(if $(filter true,$(skipdbg)),"",$
 $(stampdir)/stamp-install-%: $(stampdir)/stamp-build-% $(stampdir)/stamp-install-headers
 	@echo Debug: $@ kernel_file $(kernel_file) kernfile $(kernfile) install_file $(install_file) instfile $(instfile)
 	dh_testdir
-	dh_testroot
 	dh_prep -p$(bin_pkg_name)-$*
 	dh_prep -p$(mods_pkg_name)-$*
 	dh_prep -p$(hdrs_pkg_name)-$*
diff --git a/debian/rules.d/3-binary-indep.mk b/debian/rules.d/3-binary-indep.mk
index ba362a23fdaf..584661d16f4a 100644
--- a/debian/rules.d/3-binary-indep.mk
+++ b/debian/rules.d/3-binary-indep.mk
@@ -11,7 +11,6 @@  indep_hdrdir = $(CURDIR)/debian/$(indep_hdrpkg)/usr/src/$(indep_hdrpkg)
 $(stampdir)/stamp-install-headers: $(stampdir)/stamp-prepare-indep
 	@echo Debug: $@
 	dh_testdir
-	dh_testroot
 
 ifeq ($(do_flavour_header_package),true)
 	install -d $(indep_hdrdir)