pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Output PKG_{FAIL,SKIP}_REASON messages to standard ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6a4465607b31
branches: trunk
changeset: 514611:6a4465607b31
user: jlam <jlam%pkgsrc.org@localhost>
date: Thu Jun 15 02:39:19 2006 +0000
description:
Output PKG_{FAIL,SKIP}_REASON messages to standard error instead of
standard output. These are error or warning messages, so they shouldn't
be "seen" by anything expecting the output of a "make" command to make
sense. This addresses PR pkg/32239 by following the suggestions by
Roland Illig.
diffstat:
mk/bsd.pkg.mk | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diffs (39 lines):
diff -r 01d4427ff48a -r 6a4465607b31 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Thu Jun 15 02:35:23 2006 +0000
+++ b/mk/bsd.pkg.mk Thu Jun 15 02:39:19 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1852 2006/06/15 02:24:41 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1853 2006/06/15 02:39:19 jlam Exp $
#
# This file is in the public domain.
#
@@ -154,11 +154,11 @@
# Check that we are using up-to-date pkg_* tools with this file.
.if !defined(NO_PKGTOOLS_REQD_CHECK)
. if ${PKGTOOLS_VERSION} < ${PKGTOOLS_REQD}
-PKG_FAIL_REASON+='Error: The package tools installed on this system are out of date.'
-PKG_FAIL_REASON+='The installed package tools are dated ${PKGTOOLS_VERSION:C|(....)(..)(..)|\1/\2/\3|} and you must update'
-PKG_FAIL_REASON+='them to at least ${PKGTOOLS_REQD:C|(....)(..)(..)|\1/\2/\3|} using the following command:'
+PKG_FAIL_REASON+='The package tools installed on this system are out of date.'
+PKG_FAIL_REASON+='The installed package tools are dated ${PKGTOOLS_VERSION:C|(....)(..)(..)|\1/\2/\3|} and you must'
+PKG_FAIL_REASON+='update them to at least ${PKGTOOLS_REQD:C|(....)(..)(..)|\1/\2/\3|} using the following command:'
PKG_FAIL_REASON+=''
-PKG_FAIL_REASON+=' (cd ${PKGSRCDIR}/pkgtools/pkg_install && ${MAKE} clean && ${MAKE} update)'
+PKG_FAIL_REASON+=' (cd ${PKGSRCDIR}/pkgtools/pkg_install && ${MAKE} clean && ${MAKE} update)'
. endif
.endif # !NO_PKGTOOLS_REQD_CHECK
@@ -699,8 +699,11 @@
. if defined(SKIP_SILENT)
@${DO_NADA}
. else
- @for str in ${PKG_FAIL_REASON} ${PKG_SKIP_REASON}; do \
- ${PHASE_MSG} "$$str"; \
+ @for str in ${PKG_FAIL_REASON}; do \
+ ${ERROR_MSG} "$$str"; \
+ done
+ @for str in ${PKG_SKIP_REASON}; do \
+ ${WARNING_MSG} "$$str"; \
done
. endif
. if defined(PKG_FAIL_REASON)
Home |
Main Index |
Thread Index |
Old Index