[SRU][N][PATCH 1/1] UBUNTU: [Packaging] Don't generate list of source files
Juerg Haefliger
juerg.haefliger at canonical.com
Mon Aug 11 12:36:05 UTC 2025
BugLink: https://bugs.launchpad.net/bugs/2104911
Generating the list of source files used for the build takes a very long
time on some architecures. Up to 30 mins. Lets not do that. We have all
that information in the debug packages and can collect it from there after
the build.
Signed-off-by: Juerg Haefliger <juerg.haefliger at canonical.com>
---
debian.master/control.stub.in | 1 -
debian/rules.d/2-binary-arch.mk | 10 ----------
2 files changed, 11 deletions(-)
diff --git a/debian.master/control.stub.in b/debian.master/control.stub.in
index 697fe93c0b41..eb5bcc59bf3d 100644
--- a/debian.master/control.stub.in
+++ b/debian.master/control.stub.in
@@ -16,7 +16,6 @@ Build-Depends:
debhelper-compat (= 10),
default-jdk-headless <!stage1>,
dkms <!stage1>,
- dwarfdump <!stage1>,
flex <!stage1>,
gawk <!stage1>,
java-common <!stage1>,
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index a20eb8442e02..aa8c521be8c9 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -43,14 +43,6 @@ ifeq ($(do_dbgsym_package),true)
$(kmake) O=$(builddir)/build-$* $(conc_level) scripts_gdb ; \
fi
endif
-
- # Collect the list of kernel source files used for this build. Need to do this early before
- # modules are stripped. Fail if the resulting file is empty.
- find $(builddir)/build-$* -name vmlinux -o -name \*.ko -exec dwarfdump -i {} \; | \
- grep -E 'DW_AT_(call|decl)_file' | sed -n 's|.*\s/|/|p' | sort -u > \
- $(builddir)/build-$*/sources.list
- test -s $(builddir)/build-$*/sources.list
-
$(stamp)
define build_dkms_sign =
@@ -492,8 +484,6 @@ endif
fi
install -m644 $(DROOT)/canonical-certs.pem $(pkgdir_bldinfo)/usr/lib/linux/$(abi_release)-$*/canonical-certs.pem
install -m644 $(DROOT)/canonical-revoked-certs.pem $(pkgdir_bldinfo)/usr/lib/linux/$(abi_release)-$*/canonical-revoked-certs.pem
- # List of source files used for this build
- install -m644 $(builddir)/build-$*/sources.list $(pkgdir_bldinfo)/usr/lib/linux/$(abi_release)-$*/sources
# Get rid of .o and .cmd artifacts in headers
find $(hdrdir) -name \*.o -or -name \*.cmd -exec rm -f {} \;
--
2.48.1
More information about the kernel-team
mailing list