Subject: Re: Coexistence of pkgsrc and non-pkgsrc on Solaris
To: Alan Barrett <>
From: Geert Hendrickx <>
List: tech-pkg
Date: 10/26/2005 10:40:58
On Wed, Oct 26, 2005 at 10:06:20AM +0200, Alan Barrett wrote:
> I know very little about Solaris.  I am doing some work at a site that
> runs Solaris, and they like to install precompiled Solaris packages from
>  I want to add some stuff that's available in pkgsrc,
> but not available from  I'd prefer it if I could use
> gensolpkg to create Solaris-format binary packages that can be installed
> in /usr/local with the Solaris "pkgadd" command.  (There are multiple
> machines, and an existing procedure for adding stuff via "pkgadd", but it
> would be a pain to add a whole new pkgsrc infrastructure on every
> machine.)
> Here's a sample problem:  They already have python and subversion
> installed in /usr/local.  I want to install py-subversion from pkgsrc.
> py-subversion depends on python.  I want it to use the already-installed
> python and subversion, not build and install extra copies.  Is there a
> sane way of doing that (for values of "sane" that generalise to multiple
> packages)?
> Alternatively, can I run gensolpkg in a mode where it magically relocates
> things, so that the resulting Solaris binary package installs stuff in
> /usr/local, even though pkgsrc uses LOCALBASE=/somewhere/else?
> Alternatively, is there an easy way to run chrooted pkgsrc builds on
> Solaris, with LOCALBASE=/usr/local inside the chroot, then use gensolpkg
> inside the chroot, and Solaris "pkgadd" outside the chroot?
> --apb (Alan Barrett)

If it's only for adding a few packages not included in the
repository, I wouldn't bother setting up pkgsrc and teaching it to use
external dependencies.  Just install those packages from source under
/usr/local and package them up using gensolpkg.