Changes between Initial Version and Version 1 of firefox


Ignore:
Timestamp:
04/15/2006 09:29:57 AM (18 years ago)
Author:
andy@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • firefox

    v1 v1  
     1Please login and fix my errors
     2== Compiling Firefox and Thunderbird From CVS ==
     3The Mozilla developers tend to be cautious, making stable releases quite infrequently. Meanwhile active development continues on cvs head. Compiling Firefox and Thunderbird from cvs isn't hard. Obviously you'll need cvs [http://www.linuxfromscratch.org/blfs/view/svn/basicnet/netprogs.html#cvs].
     4First, decide where you're going to keep the code. The mozilla tree weighs in at more than 300Mb so it makes sense to use the same code for both Firefox and Thunderbird. First cd into a suitable folder and then login to cvs
     5
     6{{{
     7export CVSROOT=":pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot"
     8cvs login
     9}}}
     10Just press enter when it asks you for a password. Then checkout some configuration files
     11{{{
     12cvs co -f mozilla/client.mk
     13cvs co -f mozilla/browser/config/mozconfig
     14cvs co -f mozilla/mail/config/mozconfig
     15}}}
     16Now create a suitable mozconfig for Firefox
     17{{{
     18cat > mozilla/mozconfig-fox << "EOF"
     19. $topsrcdir/browser/config/mozconfig
     20mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build
     21ac_add_options --with-pthreads
     22ac_add_options --disable-tests
     23ac_add_options --enable-svg
     24ac_add_options --enable-canvas
     25ac_add_options --prefix=/usr
     26ac_add_options --disable-installer
     27EOF
     28}}}
     29And one for Thunderbird
     30{{{
     31cat > mozilla/mozconfig-bird << "EOF"
     32. $topsrcdir/mail/config/mozconfig
     33mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/thunderbuild
     34ac_add_options --with-pthreads
     35ac_add_options --disable-tests
     36ac_add_options --prefix=/usr
     37ac_add_options --disable-installer
     38EOF
     39}}}
     40Create a folder to make a backup copy of the finished builds
     41{{{
     42mkdir tarballs
     43}}}
     44Now you can build Firefox with these commands
     45{{{
     46cd mozilla
     47ln -sf mozconfig-fox mozconfig
     48rm -rf firefox-build
     49make -f client.mk
     50make -C firefox-build/browser/installer
     51cp firefox-build/dist/firefox-3.0a1.en-US.linux-i686.tar.bz2 ../tarballs/firefox-$(date +%d-%m-%y).tar.bz2
     52}}}
     53If you put those commands in a script it makes it easy to automate it and do a weekly build. The first time it is run it will take forever for cvs to pull the code (depending on the speed of you internet connection). [[BR]]
     54Building Thunderbird is basically the same
     55{{{
     56cd mozilla
     57ln -sf mozconfig-bird mozconfig
     58rm -rf thunderbuild
     59make -f client.mk
     60make -C thunderbuild/xpinstall/packager
     61cp thunderbuild/dist/thunderbird-3.0a1.en-US.linux-i686.tar.bz2 ../tarballs/thunderbird-$(date +%d-%m-%y).tar.bz2
     62}}}
     63The date in that command is in the European format, so tweak that to suit yourself. To run the finished build, untar it somewhere suitable and run the {firefox,thunderbird} script in the folder, just like the tarballs you can download from Mozilla.
     64== Tweak the Build ==
     65If I have to start afresh, I like Firefox to create the default profile with my bookmarks already there. To do this, copy ~/.mozilla/firefox/<random number>/bookmarks.html into the mozilla source, mozilla/browser/locales/en-US/profile/bookmarks.html then the next time you run the build script they'll be built in. If it causes a problem for cvs then delete the file and run the build script again, cvs will replace it. [[BR]]
     66Another file that's ripe for tweaking is mozilla/browser/app/profile/prefs.js which, when it becomes the prefs.js file in you profile, stores many imporant settings (font sizes and suchlike).