SFW is the Solars Freeware consolidation, which includes a lot of FOSS software.
Misc note: By default on re-invoking
env -i /opt/onbld/bin/nightly yourenvscrip.sh the build process will clear up the previous build run by removing directories with
Building SFW is a lot like building ONNV. It's recommended you build SFW on a version of ONNV that's not too far behind it (e.g. build SFW 145 on ONNV 144). Please ensure Sun Studio is set up and pkg has been installed from pkg-gate, as per the ONNV build instructions. Also ensure an up to date onbld is present for the version of SFW you're building (if you've built ONNV on the same box then that will be the case).
You'll need to ensure the following dependencies are installed:
Then run the following to set up the build environment:
Note: This command seems to be unnecessary.
The second command depends on which compiler you are using and how you have already configured your build environment. See http://wiki.openindiana.org/oi/Setting+up+the+recommended+build+environment
Note: If repeating builds do not repeat the docbook-catalog-install.sh, it will break stuff!
You will likely find that the build never completes. Instead, it hangs with a spinning `yes' command. This happens because php-5.2.17 must be built with version 2.13 of the autoconf tools. Version 2.69 is installed by the package listed above. You will need to build 2.1.3 from source and install it where it won't interfere with 2.69. /opt/auto is a suitable place. Then you will need to patch usr/src/cmd/php5/Makefile.sfw so that the php build will use 2.13. This patch file is suitable: php5.patch .
You can obtain the sfwnv source from either the Sun website (selecting the correct directory and files for the version you wish to build) or use one of the hg repos like:
cd to the directory you either unpacked or cloned then edit or make a copy of
& invoke the build with
MAKEFLAGS=k means continue on error
DMAKE_MAX_JOBS is worth cranking if you're on a multicore system
See scripts for other options available as it's well documented