[SRU][J][PATCH 1/1] UBUNTU: [Packaging] Don't generate list of source files
Juerg Haefliger
juerg.haefliger at canonical.com
Mon Aug 11 12:36:07 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 cf57ba9be5ca..f6c1db0f098e 100644
--- a/debian.master/control.stub.in
+++ b/debian.master/control.stub.in
@@ -13,7 +13,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 ff6a26e91599..3437bbba302d 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -63,14 +63,6 @@ ifneq ($(skipdbg),true)
$(build_cd) $(kmake) $(build_O) $(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
-
@touch $@
define build_dkms_sign =
@@ -547,8 +539,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
ifneq ($(full_build),false)
# Clean out this flavours build directory.
--
2.48.1
More information about the kernel-team
mailing list