Your message dated Tue, 07 Apr 2009 01:31:34 -0500
with message-id <[email protected]>
and subject line Re: Bug#517293: Speed up generation of the kernel_headers 
package
has caused the Debian Bug report #517293,
regarding Speed up generation of the kernel_headers package
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
517293: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517293
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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)



--- End Message ---
--- Begin Message ---
Hi,

        
On Thu, Feb 26 2009, Theodore Ts'o wrote:
> 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-headers
> package, so skipping that check saves a lot of time.

        I know that is not the case:
--8<---------------cut here---------------start------------->8---
[v2.6.29.1]__> find debian/linux-headers-2.6.29.1-anzu -type f | ( while read 
i; do                 ~base_dir
 if file -b $i | egrep -q "^ELF.*executable.*dynamically linked" ; then
echo $i
fi
done
)
debian/linux-headers-2.6.29.1-anzu/usr/src/linux-headers-2.6.29.1-anzu/scripts/basic/fixdep
debian/linux-headers-2.6.29.1-anzu/usr/src/linux-headers-2.6.29.1-anzu/scripts/basic/hash
debian/linux-headers-2.6.29.1-anzu/usr/src/linux-headers-2.6.29.1-anzu/scripts/basic/docproc
debian/linux-headers-2.6.29.1-anzu/usr/src/linux-headers-2.6.29.1-anzu/scripts/mod/mk_elfconfig
debian/linux-headers-2.6.29.1-anzu/usr/src/linux-headers-2.6.29.1-anzu/scripts/mod/modpost
debian/linux-headers-2.6.29.1-anzu/usr/src/linux-headers-2.6.29.1-anzu/scripts/kconfig/conf
debian/linux-headers-2.6.29.1-anzu/usr/src/linux-headers-2.6.29.1-anzu/scripts/kconfig/qconf
debian/linux-headers-2.6.29.1-anzu/usr/src/linux-headers-2.6.29.1-anzu/scripts/bin2c
debian/linux-headers-2.6.29.1-anzu/usr/src/linux-headers-2.6.29.1-anzu/scripts/selinux/mdp/mdp
debian/linux-headers-2.6.29.1-anzu/usr/src/linux-headers-2.6.29.1-anzu/scripts/ihex2fw
debian/linux-headers-2.6.29.1-anzu/usr/src/linux-headers-2.6.29.1-anzu/scripts/genksyms/genksyms
debian/linux-headers-2.6.29.1-anzu/usr/src/linux-headers-2.6.29.1-anzu/scripts/conmakehash
debian/linux-headers-2.6.29.1-anzu/usr/src/linux-headers-2.6.29.1-anzu/scripts/kallsyms
debian/linux-headers-2.6.29.1-anzu/usr/src/linux-headers-2.6.29.1-anzu/scripts/pnmtologo
--8<---------------cut here---------------end--------------->8---

        Now, if you can find some other places where k-p is doing extra
 work, please do let me know.

        manoj
-- 
Morton's Law: If rats are experimented upon, they will develop cancer.
Manoj Srivastava <[email protected]> <http://www.golden-gryphon.com/>  
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C


--- End Message ---

Reply via email to