Gentoo Archives: gentoo-dev

From: solar <solar@g.o>
To: gentoo-dev@l.g.o, betelgeuse@g.o
Subject: Re: [gentoo-dev] USE="minimal" for kernel sources
Date: Thu, 08 Sep 2005 18:12:35
Message-Id: 1126203005.5845.81.camel@alto
In Reply to: [gentoo-dev] USE="minimal" for kernel sources by "Petteri Räty"
1 On Mon, 2005-09-05 at 22:08 +0300, Petteri Räty wrote:
3 > Hash: SHA1
4 >
5 > I have a couple of old machines I maintain and emerging and unmerging
6 > kernel sources take a while because there are so many files. Also one
7 > set of gentoo sources takes about 230MB of disk space. By removing stuff
8 > not belonging to x86 I was able to succesfully run make with 58MB/230MB
9 > removed. The stuff I removed:
10 > arch/* except i386 and x86_64
11 > include/asm-* expect asm-generic, asm-i386 and asm-x86_64
14 > So I propose we implement a minimal USE flag in the kernel-2 eclass that
15 > would make the cleaning I succested before the merging. One problem
16 > coming from the clean is that make clean does not work and at the moment
17 > it is run before unmerging, which is of course a good thing. If the
18 > kernel devs think this is a good idea, I can make an implementation for
19 > this.
21 Would something like an unpack.mask/UNPACK_MASK="paths/ wildcards.."
22 work for you? Perhaps you can simply just take advantage of tar's
23 --exclude=/-e options in the unpack() function of when
24 USERLAND == GNU. Untested patch attached if you want to play
25 with/perfect the idea. By excluding it from tar you should be able to
26 save space/cpu/ram all the way around the board while getting the same
27 end result.


File name MIME type
unpack_mask.patch text/x-patch


Subject Author
Re: [gentoo-dev] USE="minimal" for kernel sources "Diego 'Flameeyes' Pettenò" <flameeyes@g.o>