On 5.2.2010 22:44, Jan Engelhardt wrote:
The following is a submission to reduce the number of files that will be installed when one wants to compile kernel modules, offering saving both in time and space. Disks are touted as cheap, but let's face it, spending ~340 MB for kernel sources means you have 340 less for your personal files. The time savings should be obvious too: less files to install, and also less files to index — locatedb, quota, beagle/etc., you name it. This is especially beneficial for developers and OBS or OBS-like instances where packages are not only built in random order(*), but where the chroots are usually torn down everytime.
This modification has been tested with various kinds of free and non-free packages and kernel versions already. The latter is especially important because they are the most likely ones to break because of their awkward-to-horrid Makefiles. These have been made available for a long time already at jftp.medozas.de; the list includes at least:
fglrx-kmp-default-8.681~18.104.22.168~jen93-jen0.x86_64.rpm ndiswrapper-kmp-default-1.55~22.214.171.124~jen93-3.4.jen2.x86_64.rpm nvidiagfx-kmp-default-190.53~126.96.36.199~jen93-jen8.x86_64.rpm nvidiagfx-legacy173-kmp-default-173.14.22~188.8.131.52~jen93-jen8.x86_64.rpm nvidiagfx-legacy71-kmp-default-71.86.11~184.108.40.206~jen93-jen8.x86_64.rpm nvidiagfx-legacy96-kmp-default-96.43.14~220.127.116.11~jen93-jen8.x86_64.rpm ttyrpld-kmp-default-2.60~18.104.22.168~jen93-jen4.x86_64.rpm virtualbox-modules-kmp-default-3.1.2_56127~22.214.171.124~jen93-jen0.x86_64.rpm vmware-modules-kmp-default-6.5.3~185404~126.96.36.199~jen93-jen3.x86_64.rpm xtables-addons-kmp-default-1.22~188.8.131.52~jen93-jen0.x86_64.rpm
It was also tested with 2.6.32 and — since somebody decided out of the blue to rebase last week :-) — just now with .33-rc6 too.
The resulting kernel-devel package is 10x smaller in installed size and has roughly 3x fewer files.
Thanks. I uploaded a kernel package with your changes to https://build.opensuse.org/project/show?project=home%3Amichal-m%3Akernel-spl... , which called for one minor fix (http://gitorious.org/~mmarek/opensuse/split-kernel-source/commit/a9016712). If it goes well otherwise, I'll push this to the main repo. Michal -- To unsubscribe, e-mail: email@example.com For additional commands, e-mail: firstname.lastname@example.org