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
 

Reply via email to