summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorahoka <ahoka>2008-10-20 18:33:50 +0000
committerahoka <ahoka>2008-10-20 18:33:50 +0000
commit267c12ae314f1685f160abab6dc64bf843567be1 (patch)
tree2330e8009184c45b840e87fffb9f7f61522ddc61 /mk
parent0e6c301ede029460728142128687bd6dc1680202 (diff)
downloadpkgsrc-267c12ae314f1685f160abab6dc64bf843567be1.tar.gz
Sanitise the error message of the fail-wrapper:
- Use PGKSRC-WARNING to note it's coming from pkgsrc and not always fatal. - Describe more precisely what's happening when you get this warning. Hopefuly this will stop the misundersanding of the error message I could see quite often amongst users.
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk
index 96d8abc01af..48860ab47f4 100644
--- a/mk/compiler.mk
+++ b/mk/compiler.mk
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.66 2008/02/13 09:00:52 rillig Exp $
+# $NetBSD: compiler.mk,v 1.67 2008/10/20 18:33:50 ahoka Exp $
#
# This Makefile fragment implements handling for supported C/C++/Fortran
# compilers.
@@ -183,8 +183,8 @@ fail-wrapper: .USE
${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} '${ECHO} "PKGSRC-WARNING: Something is trying to run the $$lang compiler," 1>&2'; \
+ ${ECHO} '${ECHO} "PKGSRC-WARNING: but its not added to USE_LANGUAGES in the package Makefile." 1>&2'; \
${ECHO} 'exit 1'
${RUN}${CHMOD} +x ${.TARGET}