pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk/tools
Module Name: pkgsrc
Committed By: rillig
Date: Sat May 9 20:50:20 UTC 2020
Modified Files:
pkgsrc/mk/tools: create.mk
Log Message:
mk/tools/create.mk: add new variable TOOLS_ALWAYS_WRAP for debugging
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/mk/tools/create.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/tools/create.mk
diff -u pkgsrc/mk/tools/create.mk:1.11 pkgsrc/mk/tools/create.mk:1.12
--- pkgsrc/mk/tools/create.mk:1.11 Sun Mar 24 11:29:19 2019
+++ pkgsrc/mk/tools/create.mk Sat May 9 20:50:20 2020
@@ -1,4 +1,4 @@
-# $NetBSD: create.mk,v 1.11 2019/03/24 11:29:19 rillig Exp $
+# $NetBSD: create.mk,v 1.12 2020/05/09 20:50:20 rillig Exp $
#
# Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -79,6 +79,14 @@
# TOOLS_FAIL is a list of tools that return false and record their
# call in the .warning directory, which is later shown.
#
+# User-settable variables:
+#
+# TOOLS_ALWAYS_WRAP
+# If defined, all tools are wrapped using a small shell program,
+# even if a symlink were sufficient. This will record all
+# invocations of the tools in the work log (.work.log by default).
+# It makes the tool invocations slower and is therefore only
+# useful during a debugging session.
######################################################################
@@ -160,7 +168,7 @@ ${TOOLS_CMD.${_t_}}:
logmain=${TOOLS_PATH.${_t_}:Q:Q}\"\ \"${TOOLS_ARGS.${_t_}:Q:Q}; \
logsuffix='$$shquoted_args'; \
else \
- case ${TOOLS_PATH.${_t_}:Q}"" in \
+ case ${TOOLS_ALWAYS_WRAP:Dwrap}${TOOLS_PATH.${_t_}:Q}"" in \
/*) create=symlink ;; \
*) create=wrapper; \
script=${TOOLS_SCRIPT_DFLT.${_t_}:Q}; \
Home |
Main Index |
Thread Index |
Old Index