Optimizing kernel-devel
Arjan van de Ven
arjan at fenrus.demon.nl
Sat May 13 17:02:40 UTC 2006
On Sat, 2006-05-13 at 12:53 -0400, Sam Varshavchik wrote:
> After drinking yet another half a dozen cups of tea while waiting for both
> kernel-devel and kernel-devel-smp to install, I have an idea how to fix this
> mess:
>
> 1) Add one more file to kernel-devel and kernel-devel-smp packages, whose
> contents are the output of:
>
> cd $RPM_BUILD_ROOT/usr/src/kernels/<<version>>
> find . -type f -print | sort | xargs md5sum >../<<version>>.md5sum
>
> 2) %post would then simply read all .md5sum files, reconcile them, and know
> exactly what to hard link.
>
> I'd be surprised if this will not speed things up by at least a factor of
> 10.
another one would be to make a kernel-devel-base, which works for all
versions, and which just has filenames that are the md5sums of all the
headers. The kernel-devel package would then only contain symlinks to
the md5sum filenames ;)
(yes it's a hack, and yes it's grossly horrible :)
More information about the fedora-devel-list
mailing list