[OmniOS-discuss] state of building illumos-gate on omnios-stable

Richard PALO richard at netbsd.org
Mon Dec 15 10:50:08 UTC 2014


Le 15/12/14 05:30, Paul B. Henson a écrit :
> One of my winter break plans is to get an illumos-gate dev environment
> going again :). A while back there was some talk of possibly putting up
> some wiki pages on configuring omnios-stable to build upstream
> illumos-gate, but I still see only the "Setting Up A Basic Dev
> Environment" at the moment.
>
> I found https://docu.blackdot.be/snipets/solaris/build-zone, which talks
> about how to get an OmniOS r151012 zone configured for illumos
> development, and seems like a good starting point. Just wondering if
> anybody had any further advice or possible hangups to keep an eye out
> for, or if maybe there was some official omnios wiki page about to be
> pushed out ;).
>
> Thanks much...
>

One possibility, that is if you use what you build, is to start from 
omnios bloody.

For example,  git remote -v (doctored up for <your github id>)
> illumos-joyent  git://github.com/joyent/illumos-joyent (fetch)
> illumos-joyent  git://github.com/joyent/illumos-joyent (push)
> illumos-omnios  git://github.com/omniti-labs/illumos-omnios.git (push)
> illumos-omnios  git://github.com/omniti-labs/illumos-omnios.git (fetch)
> origin  ssh://git@github.com/<your github id>/illumos-gate (fetch)
> origin  ssh://git@github.com/<your github id>/illumos-gate (push)
> upstream        git://github.com/illumos/illumos-gate (fetch)
> upstream        git://github.com/illumos/illumos-gate (push)

by having your development branches rebased or merged from
illumos-omnios, you can now test with
'pkg update -v --be-name=<test BE name>'

For upstream, you can then create a branch using upstream and then
cherry picking your patchset.

I've been doing this since summer after dropping hipster.

For myself, my diffs for illumos.sh and nightly.sh:

> richard at omnis:/home/richard/src/illumos-gate$ diff illumos.sh usr/src/tools/env/illumos.sh
> 47c47
> < export NIGHTLY_OPTIONS='-FnCDAmprt'
> ---
> > export NIGHTLY_OPTIONS='-FnCDAlmprt'
> 60c60
> < export GATE='illumos-gate'
> ---
> > export GATE='testws'
> 162,164d161
> < if [[ -d "$CODEMGR_WS/.git" ]]; then
> < export VERSION="$GATE-$(git log -1 --format=%h)"
> < else
> 166d162
> < fi
> 235d230
> < # export ENABLE_SMB_PRINTING='#'
> 237,244d231
> <
> < export GCC_ROOT=/opt/gcc-4.4.4
> < export CW_NO_SHADOW=1
> < export ONNV_BUILDNUM=151013
> < export RELEASE_DATE=`git log --pretty=format:%cd --date=short -n 1 | tr - .`
> < export i386_LINT=/opt/SUNWspro/bin/lint
> < export amd64_LINT=/opt/SUNWspro/bin/lint
> < export MULTI_PROTO=yes

and
> richard at omnis:/home/richard/src/illumos-gate$ diff nightly.sh usr/src/tools/scripts/nightly.sh
> 2159,2161c2159,2161
> <       checkpaths $arg $checkroot > $SRC/check-paths.out 2>&1
> <       if [[ -s $SRC/check-paths.out ]]; then
> <               tee -a $LOGFILE < $SRC/check-paths.out >> $mail_msg_file
> ---
> >       checkpaths $arg $checkroot > $SRC/checkpaths.out 2>&1
> >       if [[ -s $SRC/checkpaths.out ]]; then
> >               tee -a $LOGFILE < $SRC/checkpaths.out >> $mail_msg_file

(I also reverted .gitignore from illumos-omnios to use upstream...)

If you have any particular questions about my config, offline is perhaps 
best.

It will be great when illumos-omnios and upstream converge 'au maximum'.



More information about the OmniOS-discuss mailing list