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.

--- /usr/bin/ebuild.sh	2005-09-08 13:48:02.000000000 -0400
+++ ebuild.sh	2005-09-08 13:51:13.000000000 -0400
@@ -346,8 +346,9 @@
 	if [ "$USERLAND" == "BSD" ]; then
 		tarvars=""
 	else
-		tarvars="--no-same-owner"	
-	fi	
+		tarvars="--no-same-owner"
+		[[ "$UNPACK_MASK" != "" ]] && tarvars="${tarvars} -e \'${UNPACK_MASK}\'"
+	fi
 
 	[ -z "$*" ] && die "Nothing passed to the 'unpack' command"
 

Reply via email to