I'm using comms/minicom here as an example. This is end of the log when I run 'make install NO_PKG_REGISTER=1' on it: Making install in lib Making install in src /bin/mkdir -p '/var/tmp/usr/ports/comms/minicom/work/stage/usr/local/bin' install -s -o root -g wheel -m 555 minicom runscript ascii-xfr '/var/tmp/usr/ports/comms/minicom/work/stage/usr/local/bin' /bin/mkdir -p '/var/tmp/usr/ports/comms/minicom/work/stage/usr/local/bin' install -o root -g wheel -m 555 xminicom '/var/tmp/usr/ports/comms/minicom/work/stage/usr/local/bin' install -d -m 0755 /var/tmp/usr/ports/comms/minicom/work/stage/usr/local/etc/minicom install -d -o root -g wheel -m 0755 /var/tmp/usr/ports/comms/minicom/work/stage/usr/local/share/doc/minicom install -o root -g wheel -m 444 /var/tmp/usr/ports/comms/minicom/work/minicom-2.7/AUTHORS /var/tmp/usr/ports/comms/minicom/work/stage/usr/local/share/doc/minicom/ install -o root -g wheel -m 444 /var/tmp/usr/ports/comms/minicom/work/minicom-2.7/COPYING /var/tmp/usr/ports/comms/minicom/work/stage/usr/local/share/doc/minicom/ install -o root -g wheel -m 444 /var/tmp/usr/ports/comms/minicom/work/minicom-2.7/ChangeLog /var/tmp/usr/ports/comms/minicom/work/stage/usr/local/share/doc/minicom/ (umask 022 && cd /var/tmp/usr/ports/comms/minicom/work/minicom-2.7 && /usr/bin/tar --exclude '*/Makefile*' --exclude '*.orig' -chf - extras doc | /usr/bin/tar -xf - -C /var/tmp/usr/ports/comms/minicom/work/stage/usr/local/share/doc/minicom) ====> Compressing man pages (compress-man) ===> Installing for minicom-2.7 It's clear that the install is done only on the stage directory and not for real on the system. Should the NO_PKG_REGISTER feature work with stage-enable ports? The feature was working before staging was introduced and I can think of a few uses for it.
Over to maintainers.
*** Bug 182347 has been marked as a duplicate of this bug. ***
the machinery is now in pkg, pkg register -N it what is required will be in pkg 1.17.3 or 1.18
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=aedc18359a342d7a3a1bb7c09820059175a24542 commit aedc18359a342d7a3a1bb7c09820059175a24542 Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2021-09-21 08:40:03 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2021-09-21 08:40:03 +0000 Mk/bsd.port.mk: fix NO_PKG_REGISTER Since we switched to pkg, NO_PKG_REGISTER was not working anymore. Since pkg 1.17.2 the pkg register command do support -N option which allows to bring back NO_PKG_REGISTER. PR: 191461 Mk/bsd.port.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)