diff options
author | rillig <rillig@pkgsrc.org> | 2007-06-08 20:48:16 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-06-08 20:48:16 +0000 |
commit | 4e653a34ec3686a359421ebf3acb4ada629846c8 (patch) | |
tree | b6c2c7a3644a78120db249bf3d3cf9dbeb31a36d | |
parent | 9abf25edac9f249e9fd99e45fbf750bbb38c6ba0 (diff) | |
download | pkgsrc-4e653a34ec3686a359421ebf3acb4ada629846c8.tar.gz |
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
-rw-r--r-- | mk/compiler.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk index edcfb835acd..66dd60e6538 100644 --- a/mk/compiler.mk +++ b/mk/compiler.mk @@ -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 @@ fail-wrapper: .USE 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} |