OpenSolaris

You are not signed in. Sign in or register.

Building pkgbase packages from the sources

pkgbase uses the JDS build environment (a.k.a. JDS CBE). To build a pkgbase package,
  1. install the latest JDS CBE for your platform
  2. get the pkgbase spec files from subversion:
    bash$ svn co svn+ssh://anon@svn.opensolaris.org/svn/pkgbase/spec-files/trunk pkgbase
    A    pkgbase/include
    A    pkgbase/base-specs
    A    pkgbase/ChangeLog
    A    pkgbase/patches
    ...
    
  3. build a package using pkgtool:
    bash$ cd pkgbase
    bash$ pkgtool build --download OSOLsomething.spec
    INFO: Copying %use'd or %include'd spec files to SPECS directory
    INFO: Processing spec files
    INFO: Finding sources
    INFO: Downloading source http://some.site.net/something/something-1.2.3.tar.bz2
    INFO: Running pkgbuild -ba [...] OSOLsomething.spec (OSOLsomething)
    INFO: OSOLsomething PASSED
    INFO: Installing OSOLsomething
    
    Summary:
    
                             package |      status | details
    ---------------------------------+-------------+-------------------------------
                       OSOLsomething |      PASSED | 
    
    If the build fails, check /tmp/OSOLsomething.log for details. You can also ask the experts or report a bug.

Hints

  • If your system is behind a firewall, you will need to set the http_proxy / ftp_proxy environment variables for automatic source downloads. See man -M /usr/sfw/man wget for details.
  • Most packages require other packages to be installed. If you don't have the dependent packages installed, pkgtool will give you an error message like this:
    bash$ pkgtool build --download SFEaterm.spec 
    INFO: Copying %use'd or %include'd spec files to SPECS directory
    INFO: Processing spec files
    WARNING: skipping package SFEaterm: required package SFEafterstep not installed
    WARNING: and no spec file specified on the command line provides it
    WARNING: skipping package SFEaterm: required package SFEafterstep-devel not installed
    WARNING: and no spec file specified on the command line provides it
    
    Summary:
    
                             package |      status | details
    ---------------------------------+-------------+-------------------------------
                            SFEaterm |  DEP_FAILED | Dependency check failed
    
    In this example, you need to build SFEafterstep.spec before you can build SFEaterm.spec. You can build them one by one, or list multiple spec files on the command line:
    bash$ pkgtool build --download SFEaterm.spec SFEafterstep.spec
    
    pkgtool will determine the build order from the dependency information listed in the spec files.
  • You can find more information about building spec files here: