pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/wrapper fix previous to work with pkgsrc bmake, and...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6b402e51192f
branches:  trunk
changeset: 490375:6b402e51192f
user:      grant <grant%pkgsrc.org@localhost>
date:      Tue Mar 08 00:52:31 2005 +0000

description:
fix previous to work with pkgsrc bmake, and add a comment explaining
why it must be done this way.

diffstat:

 mk/wrapper/bsd.wrapper.mk |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 54f6d9f150cf -r 6b402e51192f mk/wrapper/bsd.wrapper.mk
--- a/mk/wrapper/bsd.wrapper.mk Tue Mar 08 00:26:31 2005 +0000
+++ b/mk/wrapper/bsd.wrapper.mk Tue Mar 08 00:52:31 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.wrapper.mk,v 1.25 2005/03/06 22:27:12 agc Exp $
+# $NetBSD: bsd.wrapper.mk,v 1.26 2005/03/08 00:52:31 grant Exp $
 #
 # Copyright (c) 2004 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -36,7 +36,10 @@
 
 .include "../../mk/wrapper/wrapper-defs.mk"
 
-.if ${PKG_DEBUG_LEVEL} > 0 || defined(PKG_VERBOSE)
+# pkgsrc bmake does not (yet) correctly handle ${VAR} > 0 because
+# ${VAR} is treated as a string, so we must use a string comparison
+# operator.
+.if ${PKG_DEBUG_LEVEL} != "0" || defined(PKG_VERBOSE)
 ECHO_WRAPPER_MSG?=     ${ECHO}
 .else
 ECHO_WRAPPER_MSG?=     ${TRUE}



Home | Main Index | Thread Index | Old Index