On Mon, 2005-09-05 at 22:08 +0300, Petteri Räty wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I have a couple of old machines I maintain and emerging and unmerging > kernel sources take a while because there are so many files. Also one > set of gentoo sources takes about 230MB of disk space. By removing stuff > not belonging to x86 I was able to succesfully run make with 58MB/230MB > removed. The stuff I removed: > arch/* except i386 and x86_64 > include/asm-* expect asm-generic, asm-i386 and asm-x86_64 > So I propose we implement a minimal USE flag in the kernel-2 eclass that > would make the cleaning I succested before the merging. One problem > coming from the clean is that make clean does not work and at the moment > it is run before unmerging, which is of course a good thing. If the > kernel devs think this is a good idea, I can make an implementation for > this. Would something like an unpack.mask/UNPACK_MASK="paths/ wildcards.." work for you? Perhaps you can simply just take advantage of tar's --exclude=/-e options in the unpack() function of ebuild.sh when USERLAND == GNU. Untested patch attached if you want to play with/perfect the idea. By excluding it from tar you should be able to save space/cpu/ram all the way around the board while getting the same end result.