package: kernel-package version: 11.001 tags: patch severity: wishlist make-kpkg is pretty slow because it does a lot of extra work that isn't necessary. For example, there are no executables in the kernel-image package, so skipping that check saves a lot of time.
Other similar changes could be done to speed up the all of the binary-indep packages, but I normally don't build those packages, so I didn't bother to try making that change. It may be worth auditing the make rules to see if there is other extra unnecessary work that is being done. I'm pretty sure this wasn't all of it, but just the bit which was most obvious. Index: kernel-package/ruleset/targets/headers.mk =================================================================== --- kernel-package.orig/ruleset/targets/headers.mk +++ kernel-package/ruleset/targets/headers.mk @@ -178,14 +178,6 @@ debian/$(h_package): testroot $(DEBDIR)/pkg/headers/postinst > $(TMPTOP)/DEBIAN/postinst chmod 755 $(TMPTOP)/DEBIAN/postinst # echo "/etc/kernel/postinst.d/create_link-$(version)" > $(TMPTOP)/DEBIAN/conffiles - cp -pf debian/control debian/control.dist - k=`find $(TMPTOP) -type f | ( while read i; do \ - if file -b $$i | egrep -q "^ELF.*executable.*dynamically linked" ; then \ - j="$$j $$i"; \ - fi; \ - done; echo $$j; )`; test -z "$$k" || dpkg-shlibdeps $$k; \ - test -n "$$k" || perl -pli~ -e 's/\$$\{shlibs:Depends\}\,?//g' debian/control - test ! -e debian/control~ || rm -f debian/control~ ifneq ($(strip $(header_clean_hook)),) (cd $(SRCDIR); test -x $(header_clean_hook) && $(header_clean_hook)) endif @@ -195,7 +187,6 @@ endif chown -R root:root $(TMPTOP) chmod -R og=rX $(TMPTOP) dpkg --build $(TMPTOP) $(DEB_DEST) - cp -pf debian/control.dist debian/control binary/$(h_package): $(REASON) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org