Suppose INSTALL_AS_USER is not set but that /usr/ports is set up so that you can build ports as non-root (say, adm) user belonging to the wheel group, e.g., by `chown -R adm /usr/ports`. Running `make` in a ports directory as adm user stages files owned by adm, of course, but `make package` correctly creates files in the resulting tarball which are owned by root or whatever the plist specifies. The point of this bug report is that `make install` used to behave in the same way before 1.9.4 but now it install files owned by adm. Perhaps, something like the attached patch is needed?
Created attachment 178958 [details] 0001-Try-to-fix-UIDs-for-non-root-port-builds.patch Suggestion for fixing non-root make install
This was committed: https://github.com/freebsd/pkg/commit/517752a456d2ceaf05789afe39aee08d022e877e Closing PR, thanks! Sorry the PR took so long to close.