small QoL improvement in the ports framework

Marc Espie <[email protected]>
Newsgroups gmane.os.openbsd.ports
Message-ID <[email protected]>
Normally, fatal errors stop everything through a .BEGIN

However, allowing *show* targets to continue may help with diagnostic

Should be fairly obvious


Index: bsd.port.mk
===================================================================
RCS file: /build/data/openbsd/cvs/ports/infrastructure/mk/bsd.port.mk,v
diff -u -p -r1.1651 bsd.port.mk
--- bsd.port.mk	18 May 2026 23:38:23 -0000	1.1651
+++ bsd.port.mk	13 Jul 2026 16:19:44 -0000
@@ -3901,7 +3902,11 @@ ERRORS += "Fatal: phony target ${_t} doe
 	@echo 1>&2 ${_m} "(in ${PKGPATH})"
 .  endfor
 .  if !empty(ERRORS:M"Fatal\:*") || !empty(ERRORS:M'Fatal\:*')
+.    if defined(_overidden_default) && !empty(_overidden_default:M*show*)
+	@echo 1>&2 "should be fatal but hampers diagnostic"
+.    else
 	@exit 1
+.    endif
 .  endif
 .endif
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.