Solaris 10 Build Prerequisites

Optional Software

 

  • JDS Common Build Environment (CBE). Provides build tools needed by some open-source projects (eg Gnome). The tools included with Solaris and Sun Studio should be sufficient for building Mozilla, so you can skip this.
    • The installer must install additional Sun-provided packages from the OS install DVD, so that DVD has to be available.
    • The installer will try to install the SUNWsmbaS package, which is not available in newer versions of SXDE. Fortunately, it also isn't necessary, so you can fix this problem by simply removing the reference to that package from the installer script (cbe-install).
    • The installer may tell you your C compiler is not the recommended compiler, but the compiler you installed will work fine, so you should tell the installer to use the compiler anyway.
    • Run . /opt/jdsbld/bin/env.sh to import the JDS CBE settings into your environment.

Build Environment

1. Install Sun Studio 12 or Sun Studio 11 with a patch to avoid a compiler bug.
2. Install CBE. Make some changes to /opt/jdsbld/bin/env.sh.

--- env.sh.orig	Tue Jul  1 02:38:35 2008
+++ env.sh	Tue Jun 24 01:08:01 2008
@@ -95,7 +95,8 @@
     echo Setting LD=$LD
 export LD
-PATH="$CBE_PREFIX/bin:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/bin:/usr /sfw/bin:$CCDIR"
+PATH="/opt/sfw/bin:$CBE_PREFIX/bin:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/s bin:/bin:/usr/sfw/bin:$CCDIR"
 test "x$JDS_CBE_ENV_QUIET" != x1  && \
     echo Setting PATH=$PATH
 export PATH
+export PKG_CONFIG_PATH=/opt/sfw/lib/pkgconfig:/usr/lib/pkgconfig

3. Replace the commands in CBE that don't work on Solaris 10.

% cd /opt/jdsbld/bin
% mv make make.bak
% ln -s /usr/sfw/bin/gmake make
% mv ls ls.bak
% ln -s /usr/bin/ls ls

4. Checkout the desktop spec files for branch gnome-2-20.

% svn co svn+ssh://anon at svn dot opensolaris dot org/svn/jds/spec-files/branches/gnome-2-20

5. Unpack the extra spec file tarball to the spec file directory.

% cd gnome-2-20
% gtar jxvf firefox-solaris-10-spec.tar.bz2

6. Unpack the patch tarball to the patches directory.

% cd gnome-2-20/patches
% gtar jxvf firefox-3.0-solaris-10-patches.tar.bz2

7. Build pkg-config and gtk-doc from source. Just unpack the source tarball, run "./configure --prefix=/opt/sfw", make and make install. Add /opt/sfw/bin to PATH environment after installation.

8. Build glib/atk/cairo/pango/gtk2/dbus/dbus-glib/firefox.

% . /opt/jdsbld/bin/env.sh
% pkgtool --download build-only -v solaris10/SFW{name1}.spec
% pkgadd -d . {package_name1}
% pkgadd -d . {package_name1}-devel
% pkgtool --download build-only -v solaris10/SFW{name2}.spec
% pkgadd -d . {package_name2}
% pkgadd -d . {package_name2}-devel
......

Document Tags and Contributors

 Contributors to this page: Sheppy, teoli, Alfredpeng
 Last updated by: teoli,