pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Changed the wording of the warning messages when a ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7dc4a03532ed
branches: trunk
changeset: 529666:7dc4a03532ed
user: rillig <rillig%pkgsrc.org@localhost>
date: Fri Jun 08 20:48:16 2007 +0000
description:
Changed the wording of the warning messages when a compiler-fail-wrapper
is run. As a new feature, an error message is printed when the wrapper
is called, so that there is a better trace to it than a completely empty
output.
See also: http://mail-index.netbsd.org/tech-pkg/2007/06/08/0017.html
diffstat:
mk/compiler.mk | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r fb19bc6d6e2d -r 7dc4a03532ed mk/compiler.mk
--- a/mk/compiler.mk Fri Jun 08 20:35:37 2007 +0000
+++ b/mk/compiler.mk Fri Jun 08 20:48:16 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.59 2007/04/17 11:05:33 tnn Exp $
+# $NetBSD: compiler.mk,v 1.60 2007/06/08 20:48:16 rillig Exp $
#
# This Makefile fragment implements handling for supported C/C++/Fortran
# compilers.
@@ -172,8 +172,12 @@
exec 1>${.TARGET}; \
${ECHO} '#!'${TOOLS_SHELL:Q}; \
${ECHO} 'wrapperlog="$${TOOLS_WRAPPER_LOG-'${_TOOLS_WRAP_LOG:Q}'}"'; \
- ${ECHO} ${ECHO:Q} '"*** Please consider adding USE_LANGUAGES+='${.TARGET:T:S/-fail-wrapper//:Q}' to the package Makefile." >> $$wrapperlog'; \
- ${ECHO} ${ECHO:Q} '"*** Please consider adding USE_LANGUAGES+='${.TARGET:T:S/-fail-wrapper//:Q}' to the package Makefile." > ${WARNING_DIR}/${.TARGET:T}'; \
+ ${ECHO} 'lang="${.TARGET:T:S/-fail-wrapper//}"'; \
+ ${ECHO} 'msg="*** Please consider adding $$lang to USE_LANGUAGES in the package Makefile."'; \
+ ${ECHO} '${ECHO} "$$msg" >> $$wrapperlog'; \
+ ${ECHO} '${ECHO} "$$msg" >> ${WARNING_DIR}/${.TARGET:T}'; \
+ ${ECHO} '${ECHO} "ERROR: To use this compiler, you have to add $$lang to" 1>&2'; \
+ ${ECHO} '${ECHO} "ERROR: USE_LANGUAGES in the package Makefile." 1>&2'; \
${ECHO} 'exit 1'
${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
Home |
Main Index |
Thread Index |
Old Index