[ydl-gen] Firefox 5 build
Stephen Harker
s.harker at adfa.edu.au
Sun Jul 17 11:15:55 JST 2011
For anyone who may be interested I have successfully built Firefox 5.0
in YDL6.2. To enable build you need to patch two files in the source
so that IPC will work with powerpc. These are given in the following
bug report.
https://bugzilla.mozilla.org/attachment.cgi?id=520465&action=diff
Having done this I used a .mozconfig as follows:
# .mozconfig
. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt
export PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig:/usr/share/pkgconfig
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --target=powerpc-unknown-linux-gnu
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --enable-optimize
ac_add_options --without-system-nspr
ac_add_options --without-system-nss
ac_add_options --with-system-zlib
ac_add_options --without-system-bz2
ac_add_options --with-system-jpeg
ac_add_options --without-system-png
ac_add_options --without-system-mng
ac_add_options --with-pthreads
ac_add_options --enable-update-packaging
ac_add_options --enable-update-channel=release
ac_add_options --enable-crypto
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --enable-svg
ac_add_options --enable-canvas
ac_add_options --enable-xft
ac_add_options --enable-application=browser
ac_add_options --enable-ipc
ac_add_options --enable-pango
ac_add_options --enable-safe-browsing
ac_add_options --enable-extensions=default
Then I followed the following steps:
# make
make -f client.mk configure
make -f client.mk build
# test
ff-opt/dist/bin/firefox
# package
cd ff-opt
make package
# archive in: /ff-opt/dist
The resulting archive is unpacked somewhere like /usr/local/lib and a
link set up:
cd /usr/local/bin
ln -s /usr/local/lib/firefox/firefox
This may not be as convenient as a rpm, but provides an executable
that seems to work quite well. I have done limited testing on my
iBook and G5. The build takes at least two hours on my G5.
I hope this is of use to someone.
--
Stephen Harker s.harker at adfa.edu.au
PEMS
UNSW at ADFA
More information about the yellowdog-general
mailing list