[OpenIndiana-New-developers] #include <hello.h>

Guido Berhoerster gber at openindiana.org
Mon Feb 28 11:49:23 UTC 2011


Hello,

* Kevin J. Woolley <kjw at javabunny.net> [2011-02-28 07:42]:
> I've got an oi_148a VM set up on my main box, with a hardware
> installation going onto a build box in the next day or two.  The
> latter box will host build zones, once I get zones figured out.  :)

you might want to create a "template" zone which has been
prepared with either our oi-cbe or bootstrap-sfe-testing-os20nn.
You can then clone this zone for each build or experiment in
order to easily get a clean build environment.

> > Building SFE packages on OI is documented here:
> > http://wiki.openindiana.org/oi/Building+SFE+Packages
> 
> I'll be installing the patched versions of SunStudio, etc. in the next
> day or two.  I assume it's non-trivial to make this work with a
> regular release (such as 12.2).

Yes, for SS12.2 you would have to adapt the setup-buildenv.sh
from oi-cbe, we currently use SS12/12u1 for building
consolidations and most SFE packages have probably only been
tested with SS12 or older (some are even built with gcc). It
might make sense to stick with it for now, particularly as Oracle
seems to run into quite a few bugs as they are moving to it for a
number of consolidations.

> > Since you're already familiar with writing specfiles you could
> > also help out by mentoring new developers interested in
> > packaging, e.g. on this list or by offering a packagin lesson on
> > IRC or as a turorial on the wiki.
> 
> Absolutely -- I'm a bit rusty, but I'm hoping it'll all come flooding
> back.  I'll likely write a few scripts to make things easier, such as
> starting a specfile from scratch.  Is there a standard/preference for
> such scripts?  My urge will be to write them in Perl, if not.

Feel free to use what you're comfortable with. A description for
pkgbuild specfiles can be found here:
http://pkgbuild.sourceforge.net/spec-files.txt
There are a few differences from RPM such as some additional tags
with IPS/SVR4 metadata and a macro for IPS non-file actions. You
should also note that with native IPS packages you cannot use
pre-/post installation scripts.
The following might help with creating a template specfile:
http://hub.opensolaris.org/bin/download/Community+Group+sw-porters/specdesc/tmpl.spec.txt
http://hg.openindiana.org/spec-files-oi-main/file/179dae5bc04a/specs/mawk.spec

> > If any of this sounds interesting to you, please let me know and
> > I'll try to help you getting started.
> 
> Sounds good!  I'm definitely interested.  I'll let you know when I've
> got the dev build environment ready (patched SS, cbe, etc.).  At that
> point I'll need a primer on setting up (and maintaining/removing/etc.)
> build zones.  From there I'll grab some existing specfiles and do test
> builds.  Assuming that all works, I'll get into the real guts of it.

There's nothing special about build zones, you can just start
with Oracle's documentation on managing zones. oi-cbe or
bootstrap-sfe-testing-os20nn should then make it relatively
simple to set up a build environment inside a zone. Fell free to
post here or tocontact me personally if you run into any problems
with that.  Additional documentation on the wiki, e.g. about
creating specfiles is always appreciated. There is a lot of
documentation out there but unfortunatly the good bits an pieces
are scattered and fragmented e.g. on the opensolaris.org and
blogs.sun.com.

-- 
Guido Berhoerster



More information about the New-developers mailing list