Firefox 2.0 with BLFS 6.2

John Gnew john_linux at verizon.net
Tue Apr 3 07:14:55 PDT 2007


Scott Czepiel wrote:
> I know this has been done successfully, but there are a few special 
> tricks to make it work.  I was hoping someone could point me to a 
> "Read this first" link to get started.  Many thanks,
> czep
The following is what I used to stumble through the build. 2.0.0.2

cat > .mozconfig << "EOF" &&
# ===========.mozconfig begin================
#
# See http://www.mozilla.org/build/ for build instructions.
#

# Source default settings
. $topsrcdir/browser/config/mozconfig

# Options for client.mk.
mk_add_options MOZ_CO_PROJECT=browser

ac_add_options --enable-application=browser

# Options for 'configure' (same as command-line options).
ac_add_options --prefix=/usr
ac_add_options --x-libraries=/usr/lib/X11

# add other common options here, such as making a static release build and
# disabling tests
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --disable-tests

#ac_add_options --with-system-nspr
#ac_add_options --with-system-nss
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-png
ac_add_options --enable-system-cairo
ac_add_options --enable-official-branding
ac_add_options --enable-canvas
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --disable-accessibility
# ac_add_options --enable-svg
ac_add_options --disable-installer
ac_add_options --disable-updater
ac_add_options --enable-strip
ac_add_options --enable-cpp-rtti
ac_add_options --enable-ldap
ac_add_options --enable-safe-browsing
ac_add_options --enable-pango
# ==================.mozconfig end===============
EOF

# patch -Np1 -i $SRCDIR/$PROGRAM-system_nss-1.patch
# The 2.0.0.1 patch works just fine for me on 2.0.0.2
patch -Np1 -i $SRCDIR/firefox-2.0.0.1-GTK-1.patch &&

# sed -i "s/^    enum$/& xptinfo_enum_1/" \
#     xpcom/reflect/xptinfo/public/xptinfo.h &&
make -f client.mk build &&

make -f client.mk install &&

install -v -m755 -d /usr/lib/$PROGRAM/chrome/icons/default &&
#ln -v -s ../../../icons/default.xpm \
#    /usr/lib/$PROGRAM/chrome/icons/default &&

chown -v -R root:root \
    /usr/lib/$PROGRAM/extensions/inspector at mozilla.org/* &&
   
#install -v -m644 ../firefox-build/dist/public/ldap-private/* \
#    /usr/include/$PROGRAM/ldap &&

#  If you built Firefox utilizing system-installed NSS and NSPR libraries
#ln -v -sf nss.pc /usr/lib/pkgconfig/firefox-nss.pc &&
#ln -v -sf nspr.pc /usr/lib/pkgconfig/firefox-nspr.pc

install -v -m755 -d /usr/include/$PROGRAM/nss &&
cp -v -Lf ../$PROGRAMDIR/dist/{private,public}/nss/*.h \
    /usr/include/$PROGRAM/nss &&
   
ln -v -sf firefox /usr/bin/netscape &&

ln -v -s $JAVA_HOME/jre/plugin/i386/ns7/libjavaplugin_oji.so \
    /usr/lib/$PROGRAM/plugins

John



More information about the blfs-support mailing list