summaryrefslogtreecommitdiff
path: root/mk/patch
diff options
context:
space:
mode:
authorjlam <jlam>2006-06-09 13:59:06 +0000
committerjlam <jlam>2006-06-09 13:59:06 +0000
commit7e84eca891de4df59bcecc961eb93715d7eadbdb (patch)
treebc3ee1d8414671473ac53f6468293fea0563cf1d /mk/patch
parent5e70459214d534d0a4a83a6745444816d8156296 (diff)
downloadpkgsrc-7e84eca891de4df59bcecc961eb93715d7eadbdb.tar.gz
Introduce the capability to gather all the warnings and errors that
are generated for a target and output them all at once at the conclusion of the target's invocation. The implementation is in bsd.pkg.error.mk, which defines a macro target "error-check" that will print out any non-empty warning and error files in ${WARNING_DIR} and ${ERROR_DIR} and exit appropriately if there were errors. Convert some targets that were just long sequences of ${ERROR_MSG} or ${WARNING_MSG} within a single shell statement to use the new delayed error output via error-check. Modify the compiler "fail" wrappers for C++ and Fortran to be less verbose during invocation. Instead collect the warnings and only print them at the end of the completed phase, e.g. after "configure" and/or "build" completes.
Diffstat (limited to 'mk/patch')
-rw-r--r--mk/patch/patch.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/patch/patch.mk b/mk/patch/patch.mk
index e39ffb711c2..cea306ce9fc 100644
--- a/mk/patch/patch.mk
+++ b/mk/patch/patch.mk
@@ -1,4 +1,4 @@
-# $NetBSD: patch.mk,v 1.3 2006/06/08 08:01:53 rillig Exp $
+# $NetBSD: patch.mk,v 1.4 2006/06/09 13:59:08 jlam Exp $
#
# The following variables may be set in a package Makefile and control
# how pkgsrc patches are applied.
@@ -83,6 +83,7 @@ _REAL_PATCH_TARGETS+= pre-patch
_REAL_PATCH_TARGETS+= do-patch
_REAL_PATCH_TARGETS+= post-patch
_REAL_PATCH_TARGETS+= patch-cookie
+_REAL_PATCH_TARGETS+= error-check
.PHONY: real-patch
real-patch: ${_REAL_PATCH_TARGETS}