site  contact  subhomenews

Firefox 4.0.1

May 15, 2011 — BarryK
I have compiled Firefox 4.0.1 in Wary. This should work in all Wary and Quirky builds, but I'm not sure about the latest Quirky release.

Oh man, FF4 is big! The PET package is 11.97MB, compare that with my FF 3.6.13 PET which is 9.16MB.
It is difficult to see what that 2.8MB extra bulk is offering, that FF3 doesn't have. Yes, support for HTML5, but FF4 is using the system libraries where possible, including system libvpx.
I don't know what to think...

Anyway, here is the PET (11.97MB):
http://distro.ibiblio.org/quirky/pet_packages-wary5/firefox4-4.0.1-w5.pet

Most important, if you want to try FF4 in Wary, you have to install the upgraded sqlite 3.7.5, pixman 0.18.4 and cairo 1.10.2, as explained in my previous post:
http://bkhome.org/archive/blog2/201105/sqlite-pixman-cairo.html
...they are also available at ibiblio.org.
...the next release of Wary will have these.

For developers, here is the .mozconfig file:
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-fx-release

mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_PHOENIX=1
ac_add_options --enable-application=browser
ac_add_options --enable-system-hunspell
ac_add_options --localstatedir=/var
ac_add_options --sysconfdir=/etc
ac_add_options --prefix=/usr
ac_add_options --host=i486-pc-linux-gnu
ac_add_options --disable-dbus
ac_add_options --disable-accessibility
ac_add_options --with-system-bz2
ac_add_options --disable-updater
ac_add_options --disable-parental-controls
ac_add_options --disable-gnomevfs
ac_add_options --disable-gnomeui
ac_add_options --enable-system-sqlite
ac_add_options --enable-system-cairo
ac_add_options --enable-system-pixman
ac_add_options --enable-strip
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --enable-libxul
ac_add_options --enable-storage
ac_add_options --disable-tests
ac_add_options --with-default-mozilla-five-home=/usr/lib/firefox
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --disable-crashreporter
ac_add_options --disable-libnotify
ac_add_options --enable-extensions=default
ac_add_options --enable-mathml
ac_add_options --enable-crypto
ac_add_options --without-system-png
ac_add_options --enable-cookies
ac_add_options --enable-negotiateauth
ac_add_options --enable-plugins
ac_add_options --disable-debug
ac_add_options --with-pthreads
ac_add_options --enable-printing
ac_add_options --with-system-libvpx
ac_add_options --enable-jsd


...it won't compile unless have --enable-jsd

# export MOZ_PHOENIX=1
# make -f client.mk
# cd objdir-fx-release
# make package
...makes tarball in objdir-fx-release/dist/
# cd ..
# make -f client.mk install
# ln -s firefox-4.0.1 /usr/lib/firefox

Comments

Seamonkey V2.1b1 to b3
Username: GCMartin
Thanks for this Barry. Will there be a SeaMonkey V2.1+ offering forthcoming for Wary was well at some point? Thanks

Re cairo
Username: BarryK
"GCMartin, sqlite, pixman and cairo already exist in Wary, in fact in all puppies. I have just upgraded them. This has already been done, so the next Wary could be built with FF4 or SM2.1 if desired. Yes, I will be compiling SM 2.1 sometime. I was planning on waiting until the final release of 2.1.

FF4
Username: ttuuxxx
"Hi Barry I noticed you compiled it with ac_add_options --without-system-png hmmm that would mean that it would use its own png and would give your build some bloat. FF4 needs png to patched with apng for it to use the system png, http://sourceforge.net/projects/libpng-apng/ is where you can download the latest patch, so you could patch wary's default png lib+devx and update it. ttuuxxx

Firefox 4 is big
Username: happypuppy
"BarryK wrote: "It is difficult to see what that 2.8MB extra bulk is offering, that FF3 doesn't have." This: - Support for XRender and OpenGL HARDWARE ACCELERATION - Mozilla's new HTML5 WEB AUDIO FRAMEWORK

T2 has old libpng
Username: BarryK
"Interestingly, the T2 people have stayed with the older libpng 1.2.x series, the latest they use is 1.2.44: http://t2-project.org/packages/libpng.html The T2 that I used to build Wary has libpng 1.2.40. The latest release of libpng is 1.5.2. The official libpng home has this to say: [i]libpng 1.2.x will continue to get security fixes for the foreseeable future[/i] Official libpng home: http://www.libpng.org/pub/png/libpng.html I have always compiling FF and SM with internal libpng. However, I see that the APNG site has a patch for libpng 1.2.44, so I will upgrade Wary from 1.2.40 to 1.2.44 and apply that patch.


Tags: wary