pkg image format update shafts /var/pkg
Dan upgraded to 151a3, and it broke the illumos build.
It turns out that what really broke was pkg in general. As part of the image format upgrade, when he got the new version of pkg it made the permissions of /var/pkg 0700, preventing non-root users from doing anything at all to do with pkg.
That's, obviously, really rather bad.
I think this bug may have existed and been fixedu pstream, so a patch for it should be relatively easy to find.