Firefox-3.0b2 Minefield.

Ag. D. Hatzimanikas a.hatzim at gmail.com
Sat Dec 22 10:33:31 PST 2007


Hi all,

For anyone is interested here is a small guide to build firefox-3.0b2.

Download the sources:
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0b2/source/firefox-3.0b2-source.tar.bz2

Extract and cd to the sources root directory (mozilla) 

cat >.mozconfig << "EOF"
# Add default firefox settings
. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox
mk_add_options MOZ_MAKE_FLAGS=-j3
# System libraries to use rather than internal snapshots
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --enable-svg
ac_add_options --enable-canvas
ac_add_options --enable-xft
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-updater
ac_add_options --enable-strip
ac_add_options --disable-accessibility
ac_add_options --enable-optimize=-O2
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --disable-dbus
#ac_add_options --with-system-png
#ac_add_options --enable-system-cairo
EOF

vim .mozconfig 

and make your adjustments and then run:

make -f client.mk build

Some observations about the build procedure and the options in the
mozconfig.

- The new firefox requires Python and dbus (comment out the relative line 
  in mozconfig if you have dbus installed).
- It requires also cairo-1.5.2 development version (currently in 1.5.4)
- It requires libpng with APNG support [1] (rejected by the libpng
  developers. Firefox ships with a patched libpng-1.2.23. See #257197 [2]
  for details.

If you manage to build it and you want to create a tarball, as you might not want
to install the beta version under the root filesystem (recommended);
you can cd to the object dir (firefox) and run:

make package

The tarball [3] will be created under dist directory.
Extract the tarball - cd to the new created directory (firefox) and
run:
./firefox -ProfileManager
and create a new firefox profile (recommended), e.g, beta.
If you want to start a new firefox instance with the beta profile,
you can run:
./firefox -P beta


The new firefox looks lean and clean (much more like the first phoenix 
days), and quite surprisingly consumes less memory than the stable 2.0.0.11

Happy testing and ..


			HAPPY CHRISTMAS

1. http://en.wikipedia.org/wiki/Animated_Portable_Network_Graphics
2. https://bugzilla.mozilla.org/show_bug.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&id=257197
3. firefox-3.0b2.en-US.linux-i686.tar.bz2
-- 
http://wiki.linuxfromscratch.org/blfs/wiki/Hacking



More information about the blfs-dev mailing list