Gentoo Archives: gentoo-user

From: "Arttu V." <arttuv69@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: firefox-bin optimizations?
Date: Sat, 09 Oct 2010 15:53:15
Message-Id: AANLkTimSNSgp57=3N+Kjbjr2FNNAjXv4qJDQZPafvfGZ@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: firefox-bin optimizations? by Walter Dnes
1 On 10/9/10, Walter Dnes <waltdnes@××××××××.org> wrote:
2 > On Thu, Oct 07, 2010 at 12:03:19PM +0300, Arttu V. wrote
3 >
4 >> I think the eclass(es) might be messing up the config, e.g., by
5 >> force-feeding pango and some other settings.
6 >>
7 >> Could you try also copying the mozcoreconf-2.eclass to your local
8 >> overlay's eclass/ subdir, and edit it there to suite your taste?
9 >
10 > I tried but no luck. I think I'll try building manually and see what
11 > happens.
12
13 Sorry, I went after the wrong eclass. Apparently www-client/firefox
14 compiles just a shell of an application ("front-end", mostly written
15 in XUL and JS?) when the real stuff is in net-libs/xulrunner. And
16 xulrunner's ebuilds use mozconfig-3.eclass instead.
17
18 Another thing I noticed about mozilla's build system is that one
19 *must* remove the enabling from the eclass(es) due to the way
20 mozilla's configure checks for these settings. If you have both
21 --enable-pango and --disable-pango in .mozconfig then enable will
22 override. And since Gentoo moz* eclasses will automatically force
23 several enabling lines into .mozconfig, it's useless to add
24 --disable-foo later on (e.g., in the ebuild). The change has to be
25 made in the eclass(es).
26
27 Thus equipped, I copied both mozconfig-3.eclass and
28 mozcoreconf-2.eclass over to a local overlay, modified their hardcoded
29 --enable-pango statements into --disable-pango's, re-emerged both
30 packages (xulrunner, firefox), and now about:buildconfig shows among
31 other things:
32
33 <snip>
34 Configure arguments
35 --enable-application=xulrunner --enable-optimize --disable-installer
36 --disable-pedantic --enable-crypto --with-system-jpeg
37 --with-system-zlib --disable-updater --disable-pango --disable-svg
38 --enable-system-cairo --disable-strip --disable-strip-libs
39 --disable-install-strip
40 </snip>
41
42 There it is, --disable-pango. Unfortunately by now I have already
43 forgotten why I was even removing pango in the first place, so I think
44 I'll re-enable it. I'd rather see if there are some ricing
45 opportunities^W^Wcompiler optimization switches that can be toggled to
46 make this sluggish browser faster.
47
48 --
49 Arttu V. -- Running Gentoo is like running with scissors

Replies

Subject Author
Re: [gentoo-user] Re: firefox-bin optimizations? Walter Dnes <waltdnes@××××××××.org>
Re: [gentoo-user] Re: firefox-bin optimizations? Walter Dnes <waltdnes@××××××××.org>