Subject: Coexistence of pkgsrc and non-pkgsrc on Solaris
To: None <tech-pkg@netbsd.org>
From: Alan Barrett <apb@cequrux.com>
List: tech-pkg
Date: 10/26/2005 10:06:20
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
sunfreeware.com.  I want to add some stuff that's available in pkgsrc,
but not available from sunfreeware.com.  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)