It's necessary to get snv_134 up to a build between snv_137 and snv_143 before you can go to later builds.
Builds prior to snv_136 built SVR4 packages, 136 and later will output to an IPS pkg repo.
Create an user named openindiana
Login as openindiana
Note: You will need to have the extras repo set up on the box you are doing this for. Please see here or below for instructions.
Enable some services
Configure the extra repository
The extra repository provides several necessary packages, like but not limited to:
This repository is not public accessible. One must register here to obtain a certificate. The certificate is free, only registration is required.
Download and save the certificates (a public and private part) to your home directory. For the remainder of this example the base of the filenames is OpenSolaris_extras. So save them as OpenSolaris_extras.key.pem and OpenSolaris_extras.certificate.pem
Next install the certificates
Add the new repository so that pkg can use it
For more information on setting up the extra repositories see this page
Before beginning, make sure you don't have Sun Studio installed. Multiple versions of Sun Studio exists. To prevent using to incorrect version the safest is to remove all existing versions.
Check if any Sun Studio version is installed:
If they are installed, remove them. Eg:
Keep running "pkg info | grep sunstu" and uninstalling until nothing reports back.
Then double check there is nothing under /opt related to compilers, and remove as necessary, eg:
Set some environment variables:
These are specific to our build environment, but you can achieve the same by obtaining those downloads and altering the environment variables.
Then install the tarballs:
Set up your environment:
Install mercurial to download the source
Grab the source for ONNV 142:
Copy the closed binaries, both debug and non-debug
install build dependencies
system/management/snmp/sea - libssagent.so, used in:
library/libxslt - xslt.h, used in usr/src/cmd/lvm/metassist/xml
system/library/install - libspmicommon.so, used in usr/src/lib/lvm/libsvm
text/gnu-grep - ggrep
NOTE: The list of ONNV dependencies varies between versions, newer ones include perl 5.10, etc.
Create a custom version of opensolaris.sh
Note: We have removed the debug flags and also the -a, -C and -l flags (create cpio archives, check for cstyle/hdrck errors, make lint respectively)
Edit STAFFER and MAILTO in opensolaris.sh as appropriate, then add the following to the bottom of opensolaris.sh:
The "CW_NO_SHADOW" disables shadow compilation. Shadow Compilation basically compiles everything with CC and GCC to ensure both compile cleanly.
Build the ONBLD tools:
From reading the comments in the Makefile it is apparent that the above is all that is needed as we are building with the closed binaries. The other make bit sets stuff up for insiders with complete source trees.
Should the above still contain the "&& dmake setup" from the blog command it copies? If not is there any need for the "cd .."
What does "dmake setup" do? The target doesn't seem to exist.
James McPherson wrote in a post the following
*What does dmake setup do?
*Why did the build succeed without issuing dmake setup
*What is the correct order? First install and than setup or reverse.
Remove any previous installed version of the ONbuild package
Also remove the following directory if it still exists
Install the newly built onbld tools:
Now build ONNV
When the build is finished please see the Build Reports page to check the results.