Gentoo Archives: gentoo-dev

From: Ciaran McCreesh <ciaranm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] what to do when an ebuild needs loads of RAM?
Date: Fri, 19 Nov 2004 20:58:57
Message-Id: 20041119205838.66fa8f5e@snowdrop.home
In Reply to: Re: [gentoo-dev] what to do when an ebuild needs loads of RAM? by Michael Hanselmann
1 On Fri, 19 Nov 2004 20:21:56 +0100 Michael Hanselmann
2 <hansmi@g.o> wrote:
3 | > darwin has /usr/sbin/sysctl , changed the hardcoded path and it
4 | > works just dandy.
5 |
6 | I tried it on Mac OS X, also had to switch the path (or even remove it
7 | at all). But here I get two values, one for hw.memsize and one for
8 | hw.physmem. The following sed fixed that:
9 | sed -e 's/^[^:=]*[:=][[:space:]]*//;s/[[:space:]].*//g'
10
11 Ok, check-reqs.eclass is in the tree for anyone who wants to play...
12 Probably needs more testing before anyone actually uses it, and it might
13 get removed if we decide that it sucks :) Have fun.
14
15 --
16 Ciaran McCreesh : Gentoo Developer (Vim, Fluxbox, Sparc, Mips)
17 Mail : ciaranm at gentoo.org
18 Web : http://dev.gentoo.org/~ciaranm