Child pages
  • Building slim_source (Caiman)
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 21 Next »

Building slim_source ips packages

Build Environment

We would always recommend building in a Zone. To build slim_source as per the instructions below, please make sure you are running oi_151. You will also need to make sure you have Sun Studio installed, please see Setting up the recommended build environment for information on getting both Sun Studio versions.

Get slim_source source:

export BUILD_ID=oi_151a
export SNV=151

hg clone http://hg.openindiana.org/sustaining/oi_151a/slim_source/
cd slim_source
hg update $BUILD_ID

Install required IPS packages:

sudo pkg install archiver/gnu-tar \
developer/build/onbld \
developer/object-file \
developer/swig \
developer/versioning/mercurial \
gnome/config/gconf \
install/beadm \
library/desktop/gtk2 \
library/desktop/libglade \
library/glib2 \
library/gnome/gnome-libs \
package/svr4 \
service/network/smtp/sendmail \
system/boot/wanboot/internal \
system/library/install \
system/library/install/libinstzones \
system/library/libdiskmgt/header-libdiskmgt \
system/library/storage/ima/header-ima \
system/zones/internal \
text/gnu-gettext \
text/gnu-grep \
text/gnu-sed

Prepare the build script:

cd usr/src
cp tools/env/developer.sh .
echo 'export CW_NO_SHADOW=1' >>developer.sh
echo "export INSTALL_BUILDNUM=$SNV" >>developer.sh
echo "export CODEMGR_WS=`hg root`" >> developer.sh
echo 'export NIGHTLY_OPTIONS="-ANndlmp +t"' >> developer.sh
echo 'export SPRO_ROOT=/opt/sunstudio12.1' >> developer.sh

Start the build:

/opt/onbld/bin/nightly developer.sh

Once the build is complete, you can check the logs in ../../log/*

If the build was successful, the end result are two repos: under the base slim_source directory: packages/i386/nightly-nd/repo.extra and packages/i386/nightly-nd/repo.redist

  • No labels