From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1EDQt1-0007Ri-HY for garchives@archives.gentoo.org; Thu, 08 Sep 2005 18:12:35 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j88I7oTd002892; Thu, 8 Sep 2005 18:07:50 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j88I656H010405 for ; Thu, 8 Sep 2005 18:06:05 GMT Received: from mail01.emarketsouth.com ([208.247.233.6]) by smtp.gentoo.org with smtp (Exim 4.43) id 1EDQqJ-0007Gi-Av for gentoo-dev@lists.gentoo.org; Thu, 08 Sep 2005 18:09:47 +0000 Received: (qmail 5383 invoked by uid 399); 8 Sep 2005 18:07:36 -0000 Received: from unknown (HELO alto) (64.192.54.4) by mail01.emarketsouth.com with SMTP; 8 Sep 2005 18:07:36 -0000 Subject: Re: [gentoo-dev] USE="minimal" for kernel sources From: solar To: gentoo-dev@lists.gentoo.org, betelgeuse@gentoo.org In-Reply-To: <431C97C4.3070406@gentoo.org> References: <431C97C4.3070406@gentoo.org> Content-Type: multipart/mixed; boundary="=-jueYfVmkZaDCbgy9+v01" Organization: Gentoo Date: Thu, 08 Sep 2005 14:10:05 -0400 Message-Id: <1126203005.5845.81.camel@alto> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 X-Archives-Salt: 2254b815-efea-4d82-a92c-a8b2dcea44f5 X-Archives-Hash: b6260626e2f7200abd15514936bcb0f0 --=-jueYfVmkZaDCbgy9+v01 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id j88I7oVD002892 On Mon, 2005-09-05 at 22:08 +0300, Petteri R=E4ty wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > 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 stuf= f > 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 tha= t > 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 momen= t > 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=3D"paths/ wildcards.." work for you? Perhaps you can simply just take advantage of tar's --exclude=3D/-e options in the unpack() function of ebuild.sh when USERLAND =3D=3D 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. --=-jueYfVmkZaDCbgy9+v01 Content-Disposition: attachment; filename=unpack_mask.patch Content-Type: text/x-patch; name=unpack_mask.patch; charset=us-ascii Content-Transfer-Encoding: 7bit --- /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" --=-jueYfVmkZaDCbgy9+v01-- -- gentoo-dev@gentoo.org mailing list