On Mon, 2008-05-12 at 16:17 -0700, Rodney wrote: > As well as giving myself "Primary Administrator" and "Software > Installation" profiles I tried changing my group to "root" and it made > no difference.
pkgtool currently requires Software Installation. I'll update the script in the next version to accept Primary Administrator too. The group doesn't matter. > 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). I suspect that the spec file you are trying to build is broken. Which one is it? It shouldn't create files during the build in directories where it has no permission to do so. > 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". You don't need to run pkgtool via pfexec. pkgtool calls pfexec when needed (for installing/uninstalling packages). Otherwise the build should run as a non-privileged user to avoid accidentally messing up your system. Laca
