http://bugzilla.novell.com/show_bug.cgi?id=437068 User jengelh@medozas.de added comment http://bugzilla.novell.com/show_bug.cgi?id=437068#c8 --- Comment #8 from Jan Engelhardt <jengelh@medozas.de> 2009-10-02 15:03:36 MDT --- Created an attachment (id=320897) --> (http://bugzilla.novell.com/attachment.cgi?id=320897) specfile logic for %install section to wire group-files script up Excerpt from the end of the changed .spec file; there is a little that needs to be added to the %install section, and then comes the slightly adjusted %files section. This is also trackable via git://dev.medozas.de/suse-kernel on the "2.6.31" branch. Splitting kernel-source like this has the benefit of: (1) reducing the amount of needed files to build KMPs (2) smart removal of files so that destructive commands that screw up the kernel source cease working. Elaboration: many a user runs `make oldconfig` in /usr/src/linux-$version and thus kills the ability to build modules via the *standard* mechanism (aka. `make -C /lib/modules/$version/build M=and so on`), ending in a "/usr/src/linux-$version is not clean". The removal of files as proposed will make it impossible to run oldconfig and screw up the source. (3) To cater for people that _do_ really want to recompile for whatever obstruous reason, there is new package "kernel-source-full" which uses a directory named differently from /usr/src/linux* and that is NOT linked to from anywhere else in the filesystem, like /lib/modules/../build or [..]/source. Kernel:HEAD$ rpm -qlp kernel-source-rt-2.6.31-10.2.noarch.rpm | wc -l 31203 -rw-r--r-- 1 455 ftp 67976328 Sep 8 05:21 kernel-source-rt-2.6.31-10.2.noarch.rpm jeng$ rpm -qlp noarch/kernel-source-rt-2.6.31.1-jen90.noarch.rpm | wc -l 5927 -rw-r--r-- 2 jengelh users 5176378 Sep 28 20:00 kernel-source-rt-2.6.31.1-jen90.noarch.rpm 60MB saved on home machines :) The fewer inodes are beneficial for about any disk searching activity (find, quotacheck, etc.), esp. when people do not need each and every original .c file. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.