summaryrefslogtreecommitdiff
path: root/mk/tools/create.mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-07-10 08:13:37 +0000
committerrillig <rillig@pkgsrc.org>2006-07-10 08:13:37 +0000
commitb78b306826c8850e8603c5b03801d58efeecf372 (patch)
treeb0e1760a5280665f2d2a3b7bedf91667143828ea /mk/tools/create.mk
parent6ba20aeaa2cd1a691c1333a86b583a64f0cc20f9 (diff)
downloadpkgsrc-b78b306826c8850e8603c5b03801d58efeecf372.tar.gz
The wrapper for perl silently failed, giving no hint that
USE_TOOLS+=perl was necessary. Therefore, added a new class of tools, TOOLS_FAIL, which records the call in a .warnings file, which is later printed to the user. At least when the tool is first called in the "configure" phase; I didn't test other phases.
Diffstat (limited to 'mk/tools/create.mk')
-rw-r--r--mk/tools/create.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/tools/create.mk b/mk/tools/create.mk
index f62e3e8d04b..0fd1a7b6204 100644
--- a/mk/tools/create.mk
+++ b/mk/tools/create.mk
@@ -1,4 +1,4 @@
-# $NetBSD: create.mk,v 1.1 2006/06/06 06:30:29 jlam Exp $
+# $NetBSD: create.mk,v 1.2 2006/07/10 08:13:37 rillig Exp $
#
# Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -83,6 +83,9 @@
# script is invoked in place of the real tool. This is used
# primarily to hide GNU auto* tools.
#
+# TOOLS_FAIL is a list of tools that return false and record their
+# call in the .warning directory, which is later shown.
+#
######################################################################
@@ -96,6 +99,11 @@ TOOLS_CREATE+= ${_t_}
TOOLS_SCRIPT.${_t_}?= exit 1
.endfor
+.for _t_ in ${TOOLS_FAIL}
+TOOLS_CREATE+= ${_t_}
+TOOLS_SCRIPT.${_t_}?= ${DELAYED_WARNING_MSG} "Please add USE_TOOLS+=${_t_} to the package Makefile."; exit 1
+.endfor
+
.for _t_ in ${TOOLS_GNU_MISSING}
TOOLS_CREATE+= ${_t_}
TOOLS_PATH.${_t_}?= ${PKGSRCDIR}/mk/gnu-config/missing