Skip to end of metadata
Go to start of metadata

Instructions for building the oi_151a PKG consolidation on oi_151a

Prerequistes

Make sure you have Sun Studio installed as per illumos-gate instructions.

Install Dependencies:

sudo pkg install                  \
developer/build/autoconf            \
developer/build/automake-110        \
developer/opensolaris/pkg5          \
developer/swig                      \
developer/versioning/mercurial      \
gnome/accessibility/gnome-a11y-libs \
library/python-2/python-gnome-extras-26 \
library/python-2/python-notify-26   \
package/pkg/package-manager         \
package/pkg/update-manager          \
developer/python/pylint             \
service/network/dns/mdns            \
system/library/math/header-math     \
text/gnu-patch \
developer/gnome/gnome-doc-utils \
system/zones/internal

Set up your environment:

GATE=pkg
BUILDNUM=151

pfexec /sbin/zfs create -o atime=off -p rpool/export/builds/$GATE
pfexec chown `id -u`:`id -g` /export/builds/$GATE
cd /export/builds/$GATE

unset CC
unset CXX
PATH=/usr/bin:/usr/sbin:/opt/SUNWspro/bin:/usr/ccs/bin
export PATH

Get the source and update it to the right branch:

hg clone http://hg.openindiana.org/sustaining/oi_151a/pkg-gate/ pkg-gate
cd pkg-gate
hg update oi_151a

Start the building process:

cd src
dmake install
make -e packages BUILDNUM=${BUILDNUM}
export PATH=`pwd`/../proto/root_`uname -p`/usr/bin:$PATH
export PYTHONPATH=`pwd`/../proto/root_`uname -p`/usr/lib/python2.6/vendor-packages:$PYTHONPATH
cd pkg
make BUILDNUM=${BUILDNUM}
make repository-metadata

Optional unit tests, which take forever:

cd ..
make test-verbose
  • No labels