Gentoo Archives: gentoo-user

From: William Kenworthy <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: firefox-bin optimizations?
Date: Thu, 07 Oct 2010 07:53:11
Message-Id: 1286437948.25943.59.camel@rattus
In Reply to: Re: [gentoo-user] Re: firefox-bin optimizations? by Walter Dnes
1 In /etc/fstab I have (this is a diskless atom based PXE system):
2
3 shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
4
5 tmpfs /tmp tmpfs size=1250M,mode=1777,noatime,auto 0 0
6 tmpfs /var/lock tmpfs size=10m,noatime,auto 0 0
7 tmpfs /var/run tmpfs size=10m,noatime,auto 0 0
8 tmpfs /var/cache/hald tmpfs size=10m,noatime,auto 0 0
9
10
11 and in /etc/conf.d/local.start:
12 mkdir /tmp/portage
13 mkdir /tmp/portage/tmp
14 mkdir /tmp/portage/distfiles
15
16 and it /etc/make.conf
17
18 DISTDIR="/tmp/portage/distfiles"
19 PORTAGE_TMPDIR='/tmp/portage/tmp'
20 PORTDIR='/tmp/portage/'
21 PORTDIR_OVERLAY="/usr/local/portage"
22 PORTAGE_BINHOST="http://tinderbox.dev.gentoo.org/default-linux/amd64/"
23 PKGDIR="/tmp/portage/packages/"
24
25
26 It works fine except for gcc where with 3G of ram, everything in tmpfs
27 and swap over nfs works randomly due to running out of ram.
28
29 BillK
30
31
32
33
34 On Thu, 2010-10-07 at 00:55 -0400, Walter Dnes wrote:
35 > On Tue, Oct 05, 2010 at 11:27:54PM -0400, Walter Dnes wrote
36 >
37 > > Looks like I can tweak stuff in the ebuild via "mozconfig_annotate"
38 > > lines, and then...
39 > >
40 > > ebuild firefox-3.6.9.ebuild manifest
41 > > emerge firefox
42 >
43 > Something isn't working. I put in
44 > mozconfig_annotate '' --disable-pango
45 > mozconfig_annotate '' --disable-oji --disable-mathml
46 >
47 > into the ebuild (a copy in my local overlay) and ebuild-manifested it.
48 > Portage said it was building from the overlay, but "about:buildconfig"
49 > shows them as being enabled. I have been able to
50 > --disable-necko-wifi (WTF is *THAT* in a browser, fercryingoutloud?).
51 >
52 > Any ideas? A long time ago, in a place far away, I used to build
53 > Mozilla 0.9x "the hard way", because the downloadable binary was
54 > painfully slow on my machine. And later on Phoenix 0.9x (remember
55 > that?). I've forgotten most of what I learned, but I can follow the
56 > instructions at https://developer.mozilla.org/En/Simple_Firefox_build
57 > I have a couple of questions before proceeding...
58 > 1) what do I have to set to force all files to be installed in /opt or
59 > in /usr/local ?
60 > 2) I've got 8 gigs of ram. How do I force the compiler to use /dev/shm
61 > as the scratch directory ?
62 >
63
64 --
65 William Kenworthy <billk@×××××××××.au>
66 Home in Perth!

Replies

Subject Author
Re: [gentoo-user] Re: firefox-bin optimizations? William Kenworthy <billk@×××××××××.au>