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

Seth Forshee seth.forshee at canonical.com
Thu Jun 3 13:05:13 UTC 2021


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 at canonical.com>
---
 debian/rules.d/2-binary-arch.mk  | 1 -
 debian/rules.d/3-binary-indep.mk | 1 -
 2 files changed, 2 deletions(-)

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)
-- 
2.31.1




More information about the kernel-team mailing list