On 10/9/10, Walter Dnes <waltd...@waltdnes.org> wrote:
> On Thu, Oct 07, 2010 at 12:03:19PM +0300, Arttu V. wrote
>
>> I think the eclass(es) might be messing up the config, e.g., by
>> force-feeding pango and some other settings.
>>
>> Could you try also copying the mozcoreconf-2.eclass to your local
>> overlay's eclass/ subdir, and edit it there to suite your taste?
>
>   I tried but no luck.  I think I'll try building manually and see what
> happens.

Sorry, I went after the wrong eclass. Apparently www-client/firefox
compiles just a shell of an application ("front-end", mostly written
in XUL and JS?) when the real stuff is in net-libs/xulrunner. And
xulrunner's ebuilds use mozconfig-3.eclass instead.

Another thing I noticed about mozilla's build system is that one
*must* remove the enabling from the eclass(es) due to the way
mozilla's configure checks for these settings. If you have both
--enable-pango and --disable-pango in .mozconfig then enable will
override. And since Gentoo moz* eclasses will automatically force
several enabling lines into .mozconfig, it's useless to add
--disable-foo later on (e.g., in the ebuild). The change has to be
made in the eclass(es).

Thus equipped, I copied both mozconfig-3.eclass and
mozcoreconf-2.eclass over to a local overlay, modified their hardcoded
--enable-pango statements into --disable-pango's, re-emerged both
packages (xulrunner, firefox), and now about:buildconfig shows among
other things:

<snip>
Configure arguments
--enable-application=xulrunner --enable-optimize --disable-installer
--disable-pedantic --enable-crypto --with-system-jpeg
--with-system-zlib --disable-updater --disable-pango --disable-svg
--enable-system-cairo --disable-strip --disable-strip-libs
--disable-install-strip
</snip>

There it is, --disable-pango. Unfortunately by now I have already
forgotten why I was even removing pango in the first place, so I think
I'll re-enable it. I'd rather see if there are some ricing
opportunities^W^Wcompiler optimization switches that can be toggled to
make this sluggish browser faster.

-- 
Arttu V. -- Running Gentoo is like running with scissors

Reply via email to