Got an email from pkg-fallout today that this failed to build in stage. There is a line in Makefile for the post-install-DOCS-on: target that has a chown -R to change ownership of all docs. And another for "find" that attempts to chmod on the docs dir. These both need to be removed, because they cause problems trying to build in stagedir as non-root user. The gz file from upstream has correct owner and permissions already. FIX: Lines 53 and 54 of Makefile need to be removed.
A commit references this bug: Author: danfe Date: Sat Sep 29 20:50:43 UTC 2018 New revision: 480926 URL: https://svnweb.freebsd.org/changeset/ports/480926 Log: - Unbreak packaging as non-root user by removing needless call to chmod(1) - While here, do not force ${SHAREMODE} (444) on docfiles as well: default permissions (644) are perfectly fine Reported by: pkg-fallout PR: 231802 Submitted by: maintainer Changes: head/lang/ocaml-camlidl/Makefile
Committed as ports r480926, thanks.