[SRU][P][PATCH 1/1] UBUNTU: [Packaging] Don't generate list of source files
Juerg Haefliger
juerg.haefliger at canonical.com
Mon Aug 11 12:36:03 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 9fef35e753e4..91409b663de4 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 14260d520c9f..4df5a341080c 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -68,14 +68,6 @@ ifeq ($(do_linux_tools),true)
endif
endif
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 $(build_dir) \( -name vmlinux -o -name \*.ko \) -exec dwarfdump -i {} \; | \
- grep -E 'DW_AT_(call|decl)_file' | sed -n 's|.*\s/|/|p' | sort -u > \
- $(build_dir)/sources.list
- test -s $(build_dir)/sources.list
-
$(stamp)
define build_dkms_sign =
@@ -489,8 +481,6 @@ endif
fi
install -m644 debian/canonical-certs.pem $(pkgdir_bldinfo)/usr/lib/linux/$(abi_release)-$*/canonical-certs.pem
install -m644 debian/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 $(build_dir)/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