Nicolas Williams wrote: > On Tue, Jun 16, 2009 at 01:14:01AM +0200, Darren Reed wrote: >> So, in $SRC/pkgdefs/SUNWcsr/postinstall, I can see this: >> >> ... >> cat >> $BASEDIR/var/svc/profile/upgrade <<\_DEL_BIND8 > > That's a bug. > >> ... >> cat >> ${PKG_INSTALL_ROOT}/var/svc/profile/upgrade <<\_IPSECUPGRD >> ... > > That too is a bug, though arguably SUNWcsr can't actually be relocated, > therefore it shouldn't be relocatable, and BASEDIR shouldn't be used. I > don't know why core pkgs that couldn't possibly be relocated are > nonetheless relocatable -- I've long thought it most strange. >
On the latter, I don't follow, especially if you read the link you provided: > http://docs.sun.com/app/docs/doc/820-4042/package-2?a=view The way I understand it is that all packages can have an alternative root ($PKG_INSTALL_ROOT), but that relocatable *objects* inside packages are referenced with $BASEDIR. That doesn't mean that all objects within a package are relocatable. Am I missing something? -Paul