diff options
author | ahoka <ahoka> | 2008-10-20 18:33:50 +0000 |
---|---|---|
committer | ahoka <ahoka> | 2008-10-20 18:33:50 +0000 |
commit | aaacfcfbc5dd616fb8013f0b0a830b3ecfb6c377 (patch) | |
tree | 2330e8009184c45b840e87fffb9f7f61522ddc61 /mk | |
parent | 46d5770c5d9186d7bcd3f8726fbf4402af5a1e21 (diff) | |
download | pkgsrc-aaacfcfbc5dd616fb8013f0b0a830b3ecfb6c377.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.mk | 6 |
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} |