Thanks to one of Open­So­laris’ sis­ter com­mu­ni­ties — BeleniX, its founder Moinak Ghosh wrote one nice script and a blog post how to use it and build Open­So­laris from source. I’m glad to present his work and here is excerpt from his post:

The util­ity takes a work­space con­tain­ing the Open­So­laris build snap­shot tar­balls and patches to apply and at the end deliv­ers binary pack­ages. It is also has the abil­ity to check for pre-requisites for run­ning the build. For eg. pres­ence of proper ver­sion of SUN Stu­dio 12, devel­op­ment and locale head­ers, assem­bler etc. It should work on both BeleniX and Open­So­laris though I have found time to only test it on BeleniX till date.

Get­ting it: Exe­cute pkgadd –d http://www.belenix.org/binfiles/autobuilder.pkg

Set­ting up: Cre­ate a direc­tory like say osol_ws. Now cre­ate osol_ws/downloads and osol_ws/patches. If you have patches for ON cre­ate another direc­tory osol_ws/patches/on_patches and copy them into it. Copy your XEN patches if any into osol_ws/patches/xvm_patches. Now run osol_builder pre­req while con­nected to the net. This will check for pre­req­ui­sites for build­ing OSOL on your dis­tro and fix most of the require­ments except for installing the proper SUN Stu­dio 12 which you will have to do man­u­ally since it requires a login to down­load from SUN’s site.

Build­ing: Now down­load all the requires build snap­shot tar­balls into osol_ws/downloads: on-src.tar.bz2, xvm-src.tar.bz2, SUNWonbld.i386.tar.bz2 or SUNWonbld.sparc.tar.bz2 ‚  on-closed-bins-nd.i386.tar.bz2 or on-closed-bins-nd.sparc.tar.bz2. Finally fire up the script: osol_builder build –R /path/to/osol_ws –d myosol

Run­ning the util­ity with­out argu­ments prints a com­plete help text that will explain the sub­com­mands and options.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • LinkedIn
  • NewsVine
  • Technorati
  • Twitter