Group: IceCat/Compile and package/build 31.2.0 on Debian Wheezy 7.0

From LibrePlanet
Jump to: navigation, search
(Some other minor changes and improvements)
m (Change all http links to https)
Line 1: Line 1:
{{Languages|master page=build_31.2.0_on_debian_wheezy_amd64|language=en}}
+
{{Languages|master
 +
page=build_31.2.0_on_debian_wheezy_amd64|language=en}}
  
 
__TOC__
 
__TOC__
  
 
* The information contained in this page is current as of: 3/1/2015.
 
* The information contained in this page is current as of: 3/1/2015.
* The text in this page was last modified on: {{REVISIONDAY}}/{{REVISIONMONTH}}/{{REVISIONYEAR}}.
+
* The text in this page was last modified on:  
 +
{{REVISIONDAY}}/{{REVISIONMONTH}}/{{REVISIONYEAR}}.
  
 
== Introduction ==
 
== Introduction ==
  
This page contains a report, with comments and hints, on a successful build of [http://www.gnu.org/software/gnuzilla/ Gnuzilla IceCat] [http://ftp.gnu.org/gnu/gnuzilla/31.2.0/ 31.2.0] on a updated [http://www.debian.org/ Debian] [http://www.debian.org/News/2013/20130504.en.html Wheezy] <tt style="font-size:larger;">amd64</tt> (64bit) machine.
+
This page contains a report, with comments and hints, on a successful  
 +
build of [https://www.gnu.org/software/gnuzilla/ Gnuzilla IceCat]  
 +
[https://ftp.gnu.org/gnu/gnuzilla/31.2.0/ 31.2.0] on a updated  
 +
[https://www.debian.org/ Debian]  
 +
[https://www.debian.org/News/2013/20130504.en.html Wheezy] <tt  
 +
style="font-size:larger;">amd64</tt> (64bit) machine.
  
The procedure below might apply, eventually with some differences, also to newer [http://www.debian.org/releases/ Debian releases] and different [http://www.debian.org/ports/ Debian ports].
+
The procedure below might apply, eventually with some differences, also  
 +
to newer [https://www.debian.org/releases/ Debian releases] and different
 +
[http://www.debian.org/ports/ Debian ports].
  
 
== Prepare the developing environment ==
 
== Prepare the developing environment ==
Line 16: Line 25:
 
* '''System update'''
 
* '''System update'''
 
First of all, it is highly reccomended having an updated system:
 
First of all, it is highly reccomended having an updated system:
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
  $ sudo apt-get update
 
  $ sudo apt-get update
 
  $ sudo apt-get upgrade
 
  $ sudo apt-get upgrade
Line 22: Line 33:
  
 
* '''Install common development tools'''
 
* '''Install common development tools'''
The most common development tools should be installed on your system. Please install (this is required only once):
+
The most common development tools should be installed on your system.  
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
Please install (this is required only once):
 +
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ sudo apt-get install gcc g++ make patch zip unzip
 
$ sudo apt-get install gcc g++ make patch zip unzip
$ sudo apt-get install autoconf automake build-essential checkinstall debhelper devscripts dpkg-dev fakeroot gdb-minimal libc6-dev libtool intltool pbuilder pkg-config  
+
$ sudo apt-get install autoconf automake build-essential checkinstall  
 +
debhelper devscripts dpkg-dev fakeroot gdb-minimal libc6-dev libtool  
 +
intltool pbuilder pkg-config  
 
</pre>
 
</pre>
  
* '''Install and configure <tt style="font-size:larger;">ccache</tt> ''(optional)'''''
+
* '''Install and configure <tt  
If you want to use <tt style="font-size:larger;">ccache</tt> during the build process (see below), please install and configure it (this is required only once):
+
style="font-size:larger;">ccache</tt> ''(optional)'''''
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
If you want to use <tt style="font-size:larger;">ccache</tt>
 +
during the build process (see below), please install and configure it  
 +
(this is required only once):
 +
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ sudo apt-get install ccache
 
$ sudo apt-get install ccache
 
$ mkdir <ccache_basepath>/ccache
 
$ mkdir <ccache_basepath>/ccache
Line 38: Line 59:
 
</pre>
 
</pre>
 
where:
 
where:
: <tt style="font-size:larger;"><ccache_basepath></tt>: is the full path of a directory you should choose as base where storing <tt style="font-size:larger;">cccache</tt> files
+
: <tt  
: <tt style="font-size:larger;"><N></tt>: is the maximum size (in GB) of the cache
+
style="font-size:larger;"><ccache_basepath></tt>: is the  
 +
full path of a directory you should choose as base where storing <tt  
 +
style="font-size:larger;">cccache</tt> files
 +
: <tt style="font-size:larger;"><N></tt>: is the  
 +
maximum size (in GB) of the cache
  
 
== Prepare requested libraries and dependencies ==
 
== Prepare requested libraries and dependencies ==
  
To successfully build [http://www.gnu.org/software/gnuzilla/ IceCat] you need some libraries to be installed and some dependencies to be satisfied. Please install (this is required only once):
+
To successfully build [https://www.gnu.org/software/gnuzilla/ IceCat] you
 +
need some libraries to be installed and some dependencies to be  
 +
satisfied. Please install (this is required only once):
  
 
* '''Linux environment files'''
 
* '''Linux environment files'''
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
$ sudo apt-get install zip mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev libidl-dev mesa-common-dev autoconf2.13 yasm libgtk2.0-dev libdbus-1-dev libdbus-glib-1-dev python-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libpulse-dev
+
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 +
$ sudo apt-get install zip mercurial libasound2-dev libcurl4-openssl-dev
 +
libnotify-dev libxt-dev libiw-dev libidl-dev mesa-common-dev  
 +
autoconf2.13 yasm libgtk2.0-dev libdbus-1-dev libdbus-glib-1-dev  
 +
python-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev  
 +
libpulse-dev
 
</pre>
 
</pre>
''(see: [http://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Linux_Prerequisites/ Linux_Prerequisites] at the [http://developer.mozilla.org/en-US/ Mozilla Developer Network])''
+
''(see:  
 +
[https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Linux_Prerequisites/
 +
Linux_Prerequisites] at the [https://developer.mozilla.org/en-US/  
 +
Mozilla Developer Network])''
  
 
* '''Default IceCat libraries'''
 
* '''Default IceCat libraries'''
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
$ sudo apt-get install libpango libpangoxft libpangoft2 libfreetype libxft libgtk2 libx11
+
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 +
$ sudo apt-get install libpango libpangoxft libpangoft2 libfreetype  
 +
libxft libgtk2 libx11
 
</pre>
 
</pre>
''(see: 'README.IceCat' file contained in the [http://ftp.gnu.org/gnu/gnuzilla/31.2.0/icecat-31.2.0.tar.xz IceCat 31.2.0 sources])''
+
''(see: 'README.IceCat' file contained in the  
 +
[http://ftp.gnu.org/gnu/gnuzilla/31.2.0/icecat-31.2.0.tar.xz IceCat  
 +
31.2.0 sources])''
  
 
* '''Other suggested libraries and dependencies'''
 
* '''Other suggested libraries and dependencies'''
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
$ sudo apt-get install libxml2-dev libglib2.0-dev libevent-dev libiw-dev libglu1-mesa-dev xulrunner-dev python python-virtualenv python-pip
+
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 +
$ sudo apt-get install libxml2-dev libglib2.0-dev libevent-dev libiw-dev
 +
libglu1-mesa-dev xulrunner-dev python python-virtualenv python-pip
 
$ sudo apt-get install build-dep iceweasel
 
$ sudo apt-get install build-dep iceweasel
 
</pre>
 
</pre>
Line 65: Line 109:
 
== Prepare the building environment ==
 
== Prepare the building environment ==
  
'''IMPORTANT NOTE''': Every time the build process fails, it is highly recommended to '''repeat all the entire process''', starting again '''from a completely clean building environment''' (see here below): cleaned and cleared ccache, empty <tt style="font-size:larger;">src</tt> and <tt style="font-size:larger;">obj</tt> directories etc. A system reboot is also suggested.
+
'''IMPORTANT NOTE''': Every time the build process fails, it is highly  
 +
recommended to '''repeat all the entire process''', starting again  
 +
'''from a completely clean building environment''' (see here below):  
 +
cleaned and cleared ccache, empty <tt  
 +
style="font-size:larger;">src</tt> and <tt  
 +
style="font-size:larger;">obj</tt> directories etc. A system  
 +
reboot is also suggested.
  
The building environment should be set up before to start the building process. Please do the following:
+
The building environment should be set up before to start the building  
 +
process. Please do the following:
  
* '''Clean and check <tt style="font-size:larger;">ccache</tt>'''
+
* '''Clean and check <tt  
If <tt style="font-size:larger;">ccache</tt> is in use, it should be clear and clean:
+
style="font-size:larger;">ccache</tt>'''
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
If <tt style="font-size:larger;">ccache</tt> is in use, it  
 +
should be clear and clean:
 +
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ ccache --clear --cleanup
 
$ ccache --clear --cleanup
 
$ ccache -s
 
$ ccache -s
Line 78: Line 133:
 
* '''Set the building base directory'''
 
* '''Set the building base directory'''
 
You should have a directory to use as base for all the building process:
 
You should have a directory to use as base for all the building process:
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ cd <build_basepath>
 
$ cd <build_basepath>
 
$ mkdir icecat-31.2.0
 
$ mkdir icecat-31.2.0
Line 84: Line 141:
 
</pre>
 
</pre>
 
where:
 
where:
: <tt style="font-size:larger;"><build_basepath></tt>: is the path of a directory you should choose as base for all the building process
+
: <tt style="font-size:larger;"><build_basepath></tt>:
: <tt style="font-size:larger;">icecat-31.2.0</tt>: is the sub-directory of <build_basepath> where to work
+
is the path of a directory you should choose as base for all the  
 +
building process
 +
: <tt style="font-size:larger;">icecat-31.2.0</tt>: is the  
 +
sub-directory of <build_basepath> where to work
  
 
* '''Download the sources'''
 
* '''Download the sources'''
To download the sources into the <tt style="font-size:larger;"><build_basepath>/icecat-31.2.0</tt> directory, please run:
+
To download the sources into the <tt  
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
style="font-size:larger;"><build_basepath>/icecat-31.2.0</tt>
$ curl -O -J -L 'http://ftp.gnu.org/gnu/gnuzilla/31.2.0/icecat-31.2.0.tar.xz'  
+
directory, please run:
$ curl -O -J -L 'http://ftp.gnu.org/gnu/gnuzilla/31.2.0/icecat-31.2.0.tar.xz.sig'  
+
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 +
$ curl -O -J -L  
 +
'https://ftp.gnu.org/gnu/gnuzilla/31.2.0/icecat-31.2.0.tar.xz'  
 +
$ curl -O -J -L  
 +
'https://ftp.gnu.org/gnu/gnuzilla/31.2.0/icecat-31.2.0.tar.xz.sig'  
 
</pre>
 
</pre>
  
 
* '''Verify the downloaded sources'''
 
* '''Verify the downloaded sources'''
The [http://www.gnu.org/software/gnuzilla/ Gnuzilla IceCat] releases are signed with a gpg key. The new gpg key has ID:<tt style="font-size:larger;">D7E04784</tt>.  
+
The [https://www.gnu.org/software/gnuzilla/ Gnuzilla IceCat] releases are
 +
signed with a gpg key. The new gpg key has ID:<tt  
 +
style="font-size:larger;">D7E04784</tt>.  
 
Please download the key and check its fingerprint:
 
Please download the key and check its fingerprint:
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ gpg --keyserver keys.gnupg.net --recv-keys D7E04784
 
$ gpg --keyserver keys.gnupg.net --recv-keys D7E04784
 
$ gpg --fingerprint D7E04784
 
$ gpg --fingerprint D7E04784
 
</pre>
 
</pre>
  
The fingerprint of the gpg key used to sing the [http://www.gnu.org/software/gnuzilla/ Gnuzilla IceCat] releases should be:
+
The fingerprint of the gpg key used to sing the  
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
[https://www.gnu.org/software/gnuzilla/ Gnuzilla IceCat] releases should  
 +
be:
 +
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
A573 69A8 BABC 2542 B5A0  368C 3C76 EED7 D7E0 4784
 
A573 69A8 BABC 2542 B5A0  368C 3C76 EED7 D7E0 4784
 
</pre>
 
</pre>
  
 
Then verify the downloaded sources:
 
Then verify the downloaded sources:
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ gpg --verify icecat-31.2.0.tar.xz.sig  
 
$ gpg --verify icecat-31.2.0.tar.xz.sig  
 
</pre>
 
</pre>
  
 
* '''Prepare the sources'''
 
* '''Prepare the sources'''
To prepare the sources tree in the <tt style="font-size:larger;"><build_basepath>/icecat-31.2.0/src</tt> directory, please run:
+
To prepare the sources tree in the <tt  
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
style="font-size:larger;"><build_basepath>/icecat-31.2.0/src</tt>
 +
directory, please run:
 +
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ tar -Jxvf icecat-31.2.0.tar.xz
 
$ tar -Jxvf icecat-31.2.0.tar.xz
 
$ mv icecat-31.2.0  src
 
$ mv icecat-31.2.0  src
Line 123: Line 203:
 
Configuration of the build process could be obtained through:
 
Configuration of the build process could be obtained through:
 
; configuration parameters
 
; configuration parameters
: which can be passed to the command script <tt style="font-size:larger;">configure</tt> as command-line parameters or, better, through a configuration file named <tt style="font-size:larger;">src/.mozconfig</tt> (or <tt style="font-size:largerv">src/mozconfig</tt>) to be created into the source directory
+
: which can be passed to the command script <tt  
 +
style="font-size:larger;">configure</tt> as command-line  
 +
parameters or, better, through a configuration file named <tt  
 +
style="font-size:larger;">src/.mozconfig</tt> (or <tt  
 +
style="font-size:largerv">src/mozconfig</tt>) to be created  
 +
into the source directory
 
; configuration variables
 
; configuration variables
: which can be set via the <tt style="font-size:larger;">src/browser/confvars.sh</tt> file
+
: which can be set via the <tt  
 +
style="font-size:larger;">src/browser/confvars.sh</tt> file
  
The configuration parameters are used by the command script <tt style="font-size:larger;">configure</tt> to set the corresponding configuration variables.
+
The configuration parameters are used by the command script <tt  
 +
style="font-size:larger;">configure</tt> to set the  
 +
corresponding configuration variables.
  
Please note that *not* all the configuration variables can be set through the command script <tt style="font-size:larger;">configure</tt>: these variables can be set only directly in the <tt style="font-size:larger;">src/browser/confvars.sh</tt> file.
+
Please note that *not* all the configuration variables can be set  
 +
through the command script <tt  
 +
style="font-size:larger;">configure</tt>: these variables can  
 +
be set only directly in the <tt  
 +
style="font-size:larger;">src/browser/confvars.sh</tt> file.
  
==== Set the configuration parameters (file: <tt style="font-size:larger;">src/mozconfig</tt>) ====
+
==== Set the configuration parameters (file: <tt  
 +
style="font-size:larger;">src/mozconfig</tt>) ====
  
The best way to set any of the '''''configuration parameters''''' is through a configuration file <tt style="font-size:larger;">src/.mozconfig</tt> (or <tt style="font-size:larger;">src/mozconfig</tt>) to be created into the source directory.
+
The best way to set any of the '''''configuration parameters''''' is  
 +
through a configuration file <tt  
 +
style="font-size:larger;">src/.mozconfig</tt> (or <tt  
 +
style="font-size:larger;">src/mozconfig</tt>) to be created  
 +
into the source directory.
  
 
A complete list of the available parameters can be obtained running:
 
A complete list of the available parameters can be obtained running:
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ ./src/configure --help
 
$ ./src/configure --help
 
</pre>
 
</pre>
  
Here below is listed the content of the <tt style="font-size:larger;">src/mozconfig</tt> which is suggested to be used building [http://ftp.gnu.org/gnu/gnuzilla/31.2.0/ IceCat 31.2.0].  
+
Here below is listed the content of the <tt  
 +
style="font-size:larger;">src/mozconfig</tt> which is suggested
 +
to be used building [https://ftp.gnu.org/gnu/gnuzilla/31.2.0/ IceCat  
 +
31.2.0].  
  
 
Use your favourite text editor to create and modify it if necessary.
 
Use your favourite text editor to create and modify it if necessary.
  
 
Please note that:
 
Please note that:
* this file has been tested since has been successfully used building [http://ftp.gnu.org/gnu/gnuzilla/31.2.0/ IceCat 31.2.0]
+
* this file has been tested since has been successfully used building  
* '''before to start the build process is *highly reccomended* to check carefully all the content of this file''', in order to comment/uncomment the options accordingly with your system and your preferences
+
[https://ftp.gnu.org/gnu/gnuzilla/31.2.0/ IceCat 31.2.0]
 +
* '''before to start the build process is *highly reccomended* to check  
 +
carefully all the content of this file''', in order to comment/uncomment
 +
the options accordingly with your system and your preferences
  
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
###
 
###
 
### - icecat mozconfig file - debian wheezy amd64
 
### - icecat mozconfig file - debian wheezy amd64
 
###
 
###
  
### - the following two are from: 'build/mozconfig.common' (should not be changed)
+
### - the following two are from: 'build/mozconfig.common' (should not  
 +
be changed)
 
### - WARNING: THE FOLLOWING TWO SHOULD NOT BE CHANGED
 
### - WARNING: THE FOLLOWING TWO SHOULD NOT BE CHANGED
  
Line 175: Line 283:
  
 
### - ccache (comment out if you do not use ccache!!!)
 
### - ccache (comment out if you do not use ccache!!!)
### - WARNING: THE FOLLOWING ONE SHOULD BE COMMENT OUT IF NOT USING CCACHE
+
### - WARNING: THE FOLLOWING ONE SHOULD BE COMMENT OUT IF NOT USING  
 +
CCACHE
  
 
# build using ccache  
 
# build using ccache  
Line 239: Line 348:
  
 
### - to be tested (uncomment the options you want to use)
 
### - to be tested (uncomment the options you want to use)
### - WARNING: THE FOLLOWING NOT TESTED!!! USE WITH CARE: THE BUILD MIGHT FAIL!!!
+
### - WARNING: THE FOLLOWING NOT TESTED!!! USE WITH CARE: THE BUILD  
 +
MIGHT FAIL!!!
  
 
# ac_add_options --with-system-zlib  
 
# ac_add_options --with-system-zlib  
Line 254: Line 364:
  
  
### - DO NOT WORK WITH DEBIAN WHEEZY (should not be changed) - Maybe they work with newer Debian releases
+
### - DO NOT WORK WITH DEBIAN WHEEZY (should not be changed) - Maybe  
### - WARNING: AVOID USING THE FOLLOWING WITH DEBIAN WHEEZY!!! THE BUILD WILL PROBABLY FAIL!!!
+
they work with newer Debian releases
 +
### - WARNING: AVOID USING THE FOLLOWING WITH DEBIAN WHEEZY!!! THE BUILD
 +
WILL PROBABLY FAIL!!!
  
 
# NSPR too old
 
# NSPR too old
Line 274: Line 386:
 
</pre>
 
</pre>
  
==== Set the configuration variables (file: <tt style="font-size:larger;">src/browser/confvars.sh</tt>) ====
+
==== Set the configuration variables (file: <tt  
 +
style="font-size:larger;">src/browser/confvars.sh</tt>) ====
  
The variables which can not be set through the command script <tt style="font-size:larger;">configure</tt>, can be set directly in the <tt style="font-size:larger;">src/browser/confvars.sh</tt> file.
+
The variables which can not be set through the command script <tt  
 +
style="font-size:larger;">configure</tt>, can be set directly  
 +
in the <tt  
 +
style="font-size:larger;">src/browser/confvars.sh</tt> file.
  
 
Use your favourite text editor to modify it if necessary.
 
Use your favourite text editor to modify it if necessary.
  
 
Please note that:
 
Please note that:
* a very deep knowledge and comprehension of the source code is needed to safely modify this file  
+
* a very deep knowledge and comprehension of the source code is needed  
 +
to safely modify this file  
 
* the documentation about these variables is often poor and/or unclear
 
* the documentation about these variables is often poor and/or unclear
* '''is *highly reccomended* to avoid changes in this file if unnecessary'''
+
* '''is *highly reccomended* to avoid changes in this file if  
 +
unnecessary'''
  
Here below are listed some variables which can be safely add at the bottom of the <tt style="font-size:larger;">src/browser/confvars.sh</tt> file, being tested to produce a successful build of [http://ftp.gnu.org/gnu/gnuzilla/31.2.0/ IceCat 31.2.0]:
+
Here below are listed some variables which can be safely add at the  
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
bottom of the <tt  
 +
style="font-size:larger;">src/browser/confvars.sh</tt> file,  
 +
being tested to produce a successful build of  
 +
[https://ftp.gnu.org/gnu/gnuzilla/31.2.0/ IceCat 31.2.0]:
 +
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
# ##  
 
# ##  
 
# ## src/browser/confvars.sh CUSTOM SETTINGS  
 
# ## src/browser/confvars.sh CUSTOM SETTINGS  
Line 303: Line 427:
 
== Build IceCat 31.2.0 ==
 
== Build IceCat 31.2.0 ==
  
Building the binaries means run <tt style="font-size:larger;">configure</tt> and <tt style="font-size:larger;">make</tt>. It 'a heavy task, requiring significant system resources and can last for a very long time. On a machine with 64bit CPU 4-core 3.8GHz and 8GB RAM, it takes about 40-45 minutes.
+
Building the binaries means run <tt  
 +
style="font-size:larger;">configure</tt> and <tt  
 +
style="font-size:larger;">make</tt>. It 'a heavy task,  
 +
requiring significant system resources and can last for a very long  
 +
time. On a machine with 64bit CPU 4-core 3.8GHz and 8GB RAM, it takes  
 +
about 40-45 minutes.
  
* '''Prepare the directory <tt style="font-size:larger;"><build_basepath>/icecat-31.2.0/obj</tt> where to build'''
+
* '''Prepare the directory <tt  
The build will take place in a separate so-called <tt style="font-size:larger;">objdir</tt> sub-directory (whose path has been previously set in the <tt style="font-size:larger;">src/mozconfig</tt> file), in order to leave clean the sources tree.:
+
style="font-size:larger;"><build_basepath>/icecat-31.2.0/obj</tt>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
where to build'''
 +
The build will take place in a separate so-called <tt  
 +
style="font-size:larger;">objdir</tt> sub-directory (whose path
 +
has been previously set in the <tt  
 +
style="font-size:larger;">src/mozconfig</tt> file), in order to
 +
leave clean the sources tree.:
 +
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ mkdir obj
 
$ mkdir obj
 
$ cd obj
 
$ cd obj
Line 313: Line 450:
  
 
* '''Run <tt style="font-size:larger;">configure</tt>'''
 
* '''Run <tt style="font-size:larger;">configure</tt>'''
Staying in the <tt style="font-size:larger;"><build_basepath>/icecat-31.2.0/obj</tt> directory, please run:
+
Staying in the <tt  
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
style="font-size:larger;"><build_basepath>/icecat-31.2.0/obj</tt>
 +
directory, please run:
 +
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ ../src/configure
 
$ ../src/configure
 
</pre>
 
</pre>
  
or, if you want to capture and save the output of the command to the terminal:
+
or, if you want to capture and save the output of the command to the  
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
terminal:
 +
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ ../src/configure 2>&1 | tee config.txtout
 
$ ../src/configure 2>&1 | tee config.txtout
 
</pre>
 
</pre>
  
The command script log will be in the <tt style="font-size:larger;">config.log</tt> file.
+
The command script log will be in the <tt  
 +
style="font-size:larger;">config.log</tt> file.
  
The command script output to the terminal will be (if saved as above using <tt style="font-size:larger;">tee</tt>) in the <tt style="font-size:larger;">config.txtfile</tt> file.
+
The command script output to the terminal will be (if saved as above  
 +
using <tt style="font-size:larger;">tee</tt>) in the <tt  
 +
style="font-size:larger;">config.txtfile</tt> file.
  
 
* '''Run <tt style="font-size:larger;">make</tt>'''
 
* '''Run <tt style="font-size:larger;">make</tt>'''
Staying in the <tt style="font-size:larger;"><build_basepath>/icecat-31.2.0/obj</tt> directory, please run:
+
Staying in the <tt  
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
style="font-size:larger;"><build_basepath>/icecat-31.2.0/obj</tt>
 +
directory, please run:
 +
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ make -j<N> -f ../src/client.mk 2>&1 | tee make.txtout
 
$ make -j<N> -f ../src/client.mk 2>&1 | tee make.txtout
 
</pre>
 
</pre>
  
or, if you want to capture and save the output of the command to the terminal:
+
or, if you want to capture and save the output of the command to the  
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
terminal:
 +
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ make -j<N> -f ../src/client.mk 2>&1 | tee make.txtout
 
$ make -j<N> -f ../src/client.mk 2>&1 | tee make.txtout
 
</pre>
 
</pre>
 
where:
 
where:
: <tt style="font-size:larger;"><N></tt>: is the number of the CPU cores/threads you want to be used during the compilation
+
: <tt style="font-size:larger;"><N></tt>: is the  
 +
number of the CPU cores/threads you want to be used during the  
 +
compilation
  
The command script output to the terminal will be (if saved as above using <tt style="font-size:larger;">tee</tt>) in the <tt style="font-size:larger;">make.txtfile</tt> file.
+
The command script output to the terminal will be (if saved as above  
 +
using <tt style="font-size:larger;">tee</tt>) in the <tt  
 +
style="font-size:larger;">make.txtfile</tt> file.
  
 
* '''Langpack ''(optional)'''''
 
* '''Langpack ''(optional)'''''
  
You can simply download the pre-built [http://ftp.gnu.org/gnu/gnuzilla/31.2.0/langpacks/ langpacks for IceCat 31.2.0] you need.  
+
You can simply download the pre-built  
 +
[https://ftp.gnu.org/gnu/gnuzilla/31.2.0/langpacks/ langpacks for IceCat  
 +
31.2.0] you need.  
  
 
Otherwise, if you prefer to build yourself a langpack, please run:
 
Otherwise, if you prefer to build yourself a langpack, please run:
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ cd browser/locales
 
$ cd browser/locales
 
$ make langpack-$LANG LOCALE_MERGEDIR=.
 
$ make langpack-$LANG LOCALE_MERGEDIR=.
Line 353: Line 515:
 
</pre>
 
</pre>
 
where:
 
where:
: <tt style="font-size:larger;">$LANG</tt>: is the locale of the langpack to build
+
: <tt style="font-size:larger;">$LANG</tt>: is the locale of
 +
the langpack to build
  
 
== Installation ==
 
== Installation ==
  
After the building process has been successfully completed, you might want to install [http://www.gnu.org/software/gnuzilla/ IceCat] on your system.
+
After the building process has been successfully completed, you might  
 +
want to install [https://www.gnu.org/software/gnuzilla/ IceCat] on your  
 +
system.
  
 
==== Standalone installation ====
 
==== Standalone installation ====
  
To install the binaries as a "standalone" program, staying in the <tt style="font-size:larger;"><build_basepath>/icecat-31.2.0/obj</tt> directory, please run:
+
To install the binaries as a "standalone" program, staying in the <tt
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
 +
style="font-size:larger;"><build_basepath>/icecat-31.2.0/obj</tt>
 +
directory, please run:
 +
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ make install DESTDIR=<build_basepath>/icecat-31.2.0/bin
 
$ make install DESTDIR=<build_basepath>/icecat-31.2.0/bin
 
</pre>
 
</pre>
 
where:
 
where:
: <tt style="font-size:larger;"><build_basepath></tt>: is the path of a directory you should choose as base for all the building process (please, now use a *full* path here)
+
: <tt style="font-size:larger;"><build_basepath></tt>:
 +
is the path of a directory you should choose as base for all the  
 +
building process (please, now use a *full* path here)
  
The "standalone" binaries will be generated into the <tt style="font-size:larger;"><build_basepath>/icecat-31.2.0/bin/usr/lib/icecat-31.2.0</tt> directory.
+
The "standalone" binaries will be generated into the <tt  
 +
style="font-size:larger;"><build_basepath>/icecat-31.2.0/bin/usr/lib/icecat-31.2.0</tt>
 +
directory.
  
To install just copy the directory with the "standalone" binaries in an appropriate place to be used in your system. A common suggested place is <tt style="font-size:larger;">/opt/icecat</tt>.
+
To install just copy the directory with the "standalone" binaries in an  
 +
appropriate place to be used in your system. A common suggested place is
 +
<tt style="font-size:larger;">/opt/icecat</tt>.
  
 
==== Tarball package creation ====
 
==== Tarball package creation ====
  
To create a binary tarball, staying in the <tt style="font-size:larger;"><build_basepath>/icecat-31.2.0/obj</tt> directory, please run:
+
To create a binary tarball, staying in the <tt  
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:larger;">
+
style="font-size:larger;"><build_basepath>/icecat-31.2.0/obj</tt>
 +
directory, please run:
 +
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;  
 +
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;
 +
font-size:larger;">
 
$ cd browser/installer
 
$ cd browser/installer
 
$ make
 
$ make
Line 381: Line 561:
 
</pre>
 
</pre>
  
The tarball package will be generated into the <tt style="font-size:larger;"><build_basepath>/icecat-31.2.0/obj/dist</tt> directory.
+
The tarball package will be generated into the <tt  
 +
style="font-size:larger;"><build_basepath>/icecat-31.2.0/obj/dist</tt>
 +
directory.
  
  

Revision as of 07:12, 4 January 2015

{{{master page}}}Property "Master page" (as page type) with input value "{{{master page}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. en en

  • The information contained in this page is current as of: 3/1/2015.
  • The text in this page was last modified on:

4/01/2015.

Introduction

This page contains a report, with comments and hints, on a successful build of Gnuzilla IceCat 31.2.0 on a updated Debian Wheezy amd64 (64bit) machine.

The procedure below might apply, eventually with some differences, also to newer Debian releases and different

Debian ports.

Prepare the developing environment

  • System update

First of all, it is highly reccomended having an updated system:

 $ sudo apt-get update
 $ sudo apt-get upgrade
  • Install common development tools

The most common development tools should be installed on your system. Please install (this is required only once):

$ sudo apt-get install gcc g++ make patch zip unzip
$ sudo apt-get install autoconf automake build-essential checkinstall 
debhelper devscripts dpkg-dev fakeroot gdb-minimal libc6-dev libtool 
intltool pbuilder pkg-config 
  • Install and configure ccache (optional)

If you want to use ccache

during the build process (see below), please install and configure it 

(this is required only once):

$ sudo apt-get install ccache
$ mkdir <ccache_basepath>/ccache
$ export CCACHE_DIR=<ccache_basepath>/ccache
$ ccache --max-size <N>G
$ export CCACHE_COMPRESS=""

where:

<ccache_basepath>: is the

full path of a directory you should choose as base where storing cccache files

<N>: is the

maximum size (in GB) of the cache

Prepare requested libraries and dependencies

To successfully build IceCat you

need some libraries to be installed and some dependencies to be 

satisfied. Please install (this is required only once):

  • Linux environment files
$ sudo apt-get install zip mercurial libasound2-dev libcurl4-openssl-dev
 libnotify-dev libxt-dev libiw-dev libidl-dev mesa-common-dev 
autoconf2.13 yasm libgtk2.0-dev libdbus-1-dev libdbus-glib-1-dev 
python-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev 
libpulse-dev

(see: [https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Linux_Prerequisites/

Linux_Prerequisites] at the [https://developer.mozilla.org/en-US/ 

Mozilla Developer Network])

  • Default IceCat libraries
$ sudo apt-get install libpango libpangoxft libpangoft2 libfreetype 
libxft libgtk2 libx11

(see: 'README.IceCat' file contained in the [http://ftp.gnu.org/gnu/gnuzilla/31.2.0/icecat-31.2.0.tar.xz IceCat 31.2.0 sources])

  • Other suggested libraries and dependencies
$ sudo apt-get install libxml2-dev libglib2.0-dev libevent-dev libiw-dev
 libglu1-mesa-dev xulrunner-dev python python-virtualenv python-pip
$ sudo apt-get install build-dep iceweasel

Prepare the building environment

IMPORTANT NOTE: Every time the build process fails, it is highly recommended to repeat all the entire process, starting again from a completely clean building environment (see here below): cleaned and cleared ccache, empty src and obj directories etc. A system reboot is also suggested.

The building environment should be set up before to start the building process. Please do the following:

  • Clean and check ccache

If ccache is in use, it should be clear and clean:

$ ccache --clear --cleanup
$ ccache -s
  • Set the building base directory

You should have a directory to use as base for all the building process:

$ cd <build_basepath>
$ mkdir icecat-31.2.0
$ cd icecat-31.2.0

where:

<build_basepath>:
is the path of a directory you should choose as base for all the 

building process

icecat-31.2.0: is the

sub-directory of <build_basepath> where to work

  • Download the sources

To download the sources into the <build_basepath>/icecat-31.2.0

directory, please run:
$ curl -O -J -L 
'https://ftp.gnu.org/gnu/gnuzilla/31.2.0/icecat-31.2.0.tar.xz' 
$ curl -O -J -L 
'https://ftp.gnu.org/gnu/gnuzilla/31.2.0/icecat-31.2.0.tar.xz.sig' 
  • Verify the downloaded sources

The Gnuzilla IceCat releases are

signed with a gpg key. The new gpg key has ID:D7E04784. 

Please download the key and check its fingerprint:

$ gpg --keyserver keys.gnupg.net --recv-keys D7E04784
$ gpg --fingerprint D7E04784

The fingerprint of the gpg key used to sing the Gnuzilla IceCat releases should be:

A573 69A8 BABC 2542 B5A0  368C 3C76 EED7 D7E0 4784

Then verify the downloaded sources:

$ gpg --verify icecat-31.2.0.tar.xz.sig 
  • Prepare the sources

To prepare the sources tree in the <build_basepath>/icecat-31.2.0/src

directory, please run:
$ tar -Jxvf icecat-31.2.0.tar.xz
$ mv icecat-31.2.0  src

Configure the build

Configuration of the build process could be obtained through:

configuration parameters
which can be passed to the command script configure as command-line

parameters or, better, through a configuration file named src/.mozconfig (or src/mozconfig) to be created into the source directory

configuration variables
which can be set via the src/browser/confvars.sh file

The configuration parameters are used by the command script configure to set the corresponding configuration variables.

Please note that *not* all the configuration variables can be set through the command script configure: these variables can be set only directly in the src/browser/confvars.sh file.

Set the configuration parameters (file: src/mozconfig)

The best way to set any of the configuration parameters is through a configuration file src/.mozconfig (or src/mozconfig) to be created into the source directory.

A complete list of the available parameters can be obtained running:

$ ./src/configure --help

Here below is listed the content of the src/mozconfig which is suggested

to be used building [https://ftp.gnu.org/gnu/gnuzilla/31.2.0/ IceCat 

31.2.0].

Use your favourite text editor to create and modify it if necessary.

Please note that:

  • this file has been tested since has been successfully used building

IceCat 31.2.0

  • before to start the build process is *highly reccomended* to check

carefully all the content of this file, in order to comment/uncomment

the options accordingly with your system and your preferences
###
### - icecat mozconfig file - debian wheezy amd64
###

### - the following two are from: 'build/mozconfig.common' (should not 
be changed)
### - WARNING: THE FOLLOWING TWO SHOULD NOT BE CHANGED

mk_add_options AUTOCLOBBER=1
ac_add_options --enable-release

### - app & paths  (should not be changed)
### - WARNING: THE FOLLOWING SHOULD NOT BE CHANGED

# application to build
ac_add_options --enable-application=browser

# path: sources for locales
ac_add_options --with-l10n-base=$topsrcdir/l10n

# build using an objdir (to keep sources clean)
mk_add_options MOZ_OBJDIR=$topsrcdir/../obj

# path: system install dir
ac_add_options --prefix=/usr

### - ccache (comment out if you do not use ccache!!!)
### - WARNING: THE FOLLOWING ONE SHOULD BE COMMENT OUT IF NOT USING 
CCACHE

# build using ccache 
ac_add_options --with-ccache

### - building...  (should not be changed)
### - WARNING: THE FOLLOWING SHOULD NOT BE CHANGED

# build with optimization
ac_add_options --enable-optimize="-pipe -O3"

# elf-hack
ac_add_options --enable-elf-hack

# avoid dependency on libstdc++ 4.7
ac_add_options --enable-stdcxx-compat

# stripping
ac_add_options --enable-strip
ac_add_options --enable-install-strip

### - app options  (should not be changed)
### - WARNING: THE FOLLOWING SHOULD NOT BE CHANGED

# branding
ac_add_options --enable-official-branding
ac_add_options --with-distribution-id=org.gnu 

# enable wanted options
ac_add_options --enable-safe-browsing 
ac_add_options --enable-gio 
ac_add_options --disable-gnomevfs 
ac_add_options --enable-gstreamer=0.10 
ac_add_options --enable-default-toolkit=cairo-gtk2

# disable unwanted options
ac_add_options --disable-debug
ac_add_options --disable-debug-symbols
ac_add_options --disable-tests 
ac_add_options --disable-crashreporter 
ac_add_options --disable-updater 
ac_add_options --disable-update-channel
ac_add_options --disable-update-packaging
ac_add_options --disable-maintenance-service
ac_add_options --disable-parental-controls 
ac_add_options --disable-webapp-runtime
ac_add_options --disable-necko-wifi 

### - other recommended options (comment out what you do not want/need)

# webm (VP8 video and Vorbis audio) support 
# WARNING: VP8 and Vorbis must be installed in your system!
ac_add_options --enable-webm 

# use alsa instead of pulseaudio
# WARNING: Alsa must be installed in your system!
# WARNING: comment/uncomment TOGETHER the following two
ac_add_options --enable-alsa  
ac_add_options --disable-pulseaudio 

# wave support
ac_add_options --enable-wave 

### - to be tested (uncomment the options you want to use)
### - WARNING: THE FOLLOWING NOT TESTED!!! USE WITH CARE: THE BUILD 
MIGHT FAIL!!!

# ac_add_options --with-system-zlib 
# ac_add_options --with-system-bz2 
# ac_add_options --enable-system-hunspell 

# ac_add_options --with-system-libxul
# ac_add_options --with-system-libvpx
# ac_add_options --enable-system-pixmap

# ac_add_options --enable-canvas
# ac_add_options --enable-raw
# ac_add_options --enable-xinerama


### - DO NOT WORK WITH DEBIAN WHEEZY (should not be changed) - Maybe 
they work with newer Debian releases
### - WARNING: AVOID USING THE FOLLOWING WITH DEBIAN WHEEZY!!! THE BUILD
 WILL PROBABLY FAIL!!!

# NSPR too old
# ac_add_options --with-system-nspr 

# system's libpng doesn't have APNG support
# ac_add_options --with-system-png 

# SQLITE too old (should be sqlite3 >= 3.8.4.2)
# ac_add_options --enable-system-sqlite 

# error: Insufficient JPEG library version for --with-system-jpeg
# ac_add_options --with-system-jpeg 
# ac_add_options --disable-libjpeg_turbo

# error NSS wrong version (should be >= 3.16.2.2)
# ac_add_options --with-system-nss 

Set the configuration variables (file: src/browser/confvars.sh)

The variables which can not be set through the command script configure, can be set directly in the src/browser/confvars.sh file.

Use your favourite text editor to modify it if necessary.

Please note that:

  • a very deep knowledge and comprehension of the source code is needed

to safely modify this file

  • the documentation about these variables is often poor and/or unclear
  • is *highly reccomended* to avoid changes in this file if

unnecessary

Here below are listed some variables which can be safely add at the bottom of the src/browser/confvars.sh file, being tested to produce a successful build of IceCat 31.2.0:

# ## 
# ## src/browser/confvars.sh CUSTOM SETTINGS 
# ## 
# ## ADD THIS AT THE BOTTOM OF 'src/browser/confvars.sh'

MOZ_SERVICES_METRICS=

MOZ_SOCIAL=
MOZ_DATA_REPORTING=
MOZ_TELEMETRY_REPORTING=
MOZ_SERVICES_HEALTHREPORT=
MOZ_CRASHREPORTER=

Build IceCat 31.2.0

Building the binaries means run configure and make. It 'a heavy task, requiring significant system resources and can last for a very long time. On a machine with 64bit CPU 4-core 3.8GHz and 8GB RAM, it takes about 40-45 minutes.

  • Prepare the directory <build_basepath>/icecat-31.2.0/obj
where to build

The build will take place in a separate so-called objdir sub-directory (whose path

has been previously set in the src/mozconfig file), in order to
leave clean the sources tree.:
$ mkdir obj
$ cd obj
  • Run configure

Staying in the <build_basepath>/icecat-31.2.0/obj

directory, please run:
$ ../src/configure

or, if you want to capture and save the output of the command to the terminal:

$ ../src/configure 2>&1 | tee config.txtout

The command script log will be in the config.log file.

The command script output to the terminal will be (if saved as above using tee) in the config.txtfile file.

  • Run make

Staying in the <build_basepath>/icecat-31.2.0/obj

directory, please run:
$ make -j<N> -f ../src/client.mk 2>&1 | tee make.txtout

or, if you want to capture and save the output of the command to the terminal:

$ make -j<N> -f ../src/client.mk 2>&1 | tee make.txtout

where:

<N>: is the

number of the CPU cores/threads you want to be used during the compilation

The command script output to the terminal will be (if saved as above using tee) in the make.txtfile file.

  • Langpack (optional)

You can simply download the pre-built [https://ftp.gnu.org/gnu/gnuzilla/31.2.0/langpacks/ langpacks for IceCat 31.2.0] you need.

Otherwise, if you prefer to build yourself a langpack, please run:

$ cd browser/locales
$ make langpack-$LANG LOCALE_MERGEDIR=.
$ cd ../..

where:

$LANG: is the locale of
the langpack to build

Installation

After the building process has been successfully completed, you might want to install IceCat on your system.

Standalone installation

To install the binaries as a "standalone" program, staying in the <build_basepath>/icecat-31.2.0/obj

directory, please run:
$ make install DESTDIR=<build_basepath>/icecat-31.2.0/bin

where:

<build_basepath>:
is the path of a directory you should choose as base for all the 

building process (please, now use a *full* path here)

The "standalone" binaries will be generated into the <build_basepath>/icecat-31.2.0/bin/usr/lib/icecat-31.2.0

directory.

To install just copy the directory with the "standalone" binaries in an appropriate place to be used in your system. A common suggested place is

/opt/icecat.

Tarball package creation

To create a binary tarball, staying in the <build_basepath>/icecat-31.2.0/obj

directory, please run:
$ cd browser/installer
$ make
$ cd ../..

The tarball package will be generated into the <build_basepath>/icecat-31.2.0/obj/dist

directory.


Enjoy Gnuzilla IceCat!


[ Document edited by: alexus ]