I'd like to add a line to the display.

This shows visual confirmation that a build was started from scratch,
without a pre-existing wrkdir.

This could be used in dpb to triage build stats time, or for various
other things.

The only potential drawback I see is if some people are expecting
a very inflexible order of lines in the logs.


Index: bsd.port.mk
===================================================================
RCS file: /cvs/ports/infrastructure/mk/bsd.port.mk,v
retrieving revision 1.1588
diff -u -p -r1.1588 bsd.port.mk
--- bsd.port.mk 17 May 2023 10:34:42 -0000      1.1588
+++ bsd.port.mk 17 Jun 2023 19:47:30 -0000
@@ -2651,6 +2654,7 @@ ${_BULK_COOKIE}:
 # disabled, and there are hooks to override behavior.
 
 ${_WRKDIR_COOKIE}:
+       @${ECHO_MSG} "===>  Building from scratch ${FULLPKGNAME}${_MASTER}"
        @${_PBUILD} rm -rf ${WRKDIR}
        @appdefaults=${LOCALBASE}/lib/X11/app-defaults; \
        if ! test -d $$appdefaults -a -h $$appdefaults; then \

Reply via email to