OpenSolaris

  subsites   code review   repo   packages   bugs   defect   polls   planet
You are not signed in. Sign in or register.

Building the fox-gate

Downloads

After downloading the Sun-modified sources from opensolaris.org, and unpacking them, you will need to download the original open source packages they modify.

The Sun sources include a script named download-tarballs that you can run to do this. It assumes running /usr/sfw/bin/wget can connect to Internet websites. If you need to set it to use web proxies, run "man -M /usr/sfw/man wget" for instructions.

To download all needed sources:

./download-tarballs

To delete all current tarballs and re-download all needed sources:

./download-tarballs -c         (c for "clobber")

To see what it will do without connecting to any sites:

./download-tarballs -n

Build requirements & preparation

  • Solaris Nevada (full install), build 65 or later
  • Studio 10, 11 or 12 compilers
  • GNU autotools, gettext, and make
  • lynx (for converting docs from DocBook -> html -> text)

The recommended source for the GNU tools needed to build the X consolidation is the JDS CBE, available from: http://www.opensolaris.org/os/project/jds/contributing/building/

Specifically required are:

CBEmake CBEm4 CBEautoconf CBEautomake CBElibtool CBEgettext

The recommended source for lynx is the Solaris Companion CD. The packages needed from the Solaris 10 edition are:

SFWgcmn SFWgcc2l SFWgcc34l SFWncur SFWlynx

To build all 64-bit software, you will need to be running in 64-bit mode (which on x86 requires an AMD64 or Intel EM64T capable CPU).

To build freetype on x86 which displays text correctly in gpdf you must either use Studio 11 or add patch 117846-11 to Studio 10.

To build xscreensaver on x86, you need to add patch 120759-08 to Studio 11, use Studio 10, or remove the -fsimple=2 flag from its Makefile.

To build the SUNWxorg-server package, you will need to edit XW_NV/packages/SUNWxorg-server/prototype_com and comment out the line for libbitstream.so. You may want to uncomment the line for libfreetype.so to get the open source TrueType font support to replace libbitstream and modify the open-src/lib/libXfont/Makefile to build with freetype support.


Building the software

To build the software, simply cd into the top level directory and run

./buildit 

To build the software and create SVR4 packages, add the -p flag to buildit:

./buildit -p

Output of various stages is stored into log files which you can check for errors:

XW_NV buildlog/buildit-XW
XW_NV packagingXW_NV/proto-packages/logs/package_build

The built binaries are found after the build in a proto area:

SPARCXW_NV/proto-sun4-svr4/
x86/x64XW_NV/proto-i386-svr4/


Installing packages

The built packages will be found in the directory: XW_NV/proto-packages/installdir

To install the packages from XW_NV/proto-packages/installdir, first pkgrm any existing packages with the same names and then pkgadd the new ones.