Guys Thanks for your suggestions and thoughts.
As well as giving myself "Primary Administrator" and "Software Installation" profiles I tried changing my group to "root" and it made no difference. I still see builds reach the stage of installing the compiled files but the "mkinstalldirs" script crashes out when it tries to "mkdir", apparently not having authorisation to run mkdir (I'm guessing this because although it complains that it can't find mkdir, I can manually run make install). In fact, even with the profiles and group set as above I have to run "pfexec -P all /opt/pkgbuild/bin/pktool" not just "pkgtool" or the spec file build halts right at the start. It halts if I don't use the fully pathname (even though I've symlinked to /opt/pkgbuild/bin/pkgtool in /usr/bin) and it halts if I don't use "pfexec -P all". I don't have a full grasp on the Solaris RBAC/profiles/groups etc. I would have assumed that with "Primary Administrator" I could do anything, but pkgtool won't run with just "Primary Administrator", it has to also have "Software Installation". I'm sure there's a way to get it configured properly but for a single user on a laptop, where RBAC feels like overkill working against you. I've seen other packages halt at the stage Mark indicated, with the installation suspended after compilation. Definitely fixing the spec files would be a better option, especially for packages with many dependencies. I'll have a look where you suggested. When I'm next at my machine I'll post some compilation output from some of my attempted builds with more details of the fail to install. Then of course, there are the packages that fail to build, but that's another story! This message posted from opensolaris.org
