pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/tools Oops, make sure the variable is defined befor...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f33f84a54bec
branches:  trunk
changeset: 538397:f33f84a54bec
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Thu Feb 07 16:53:14 2008 +0000

description:
Oops, make sure the variable is defined before testing it's value.

diffstat:

 mk/tools/replace.mk |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 44691edf7124 -r f33f84a54bec mk/tools/replace.mk
--- a/mk/tools/replace.mk       Thu Feb 07 16:43:18 2008 +0000
+++ b/mk/tools/replace.mk       Thu Feb 07 16:53:14 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.205 2008/02/07 12:10:36 tnn Exp $
+# $NetBSD: replace.mk,v 1.206 2008/02/07 16:53:14 tnn Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -897,7 +897,8 @@
 MAKEFLAGS+=            TOOLS_IGNORE.${_t_}=
 .    elif !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS]) || \
        !empty(_TOOLS_USE_PKGSRC.groff:M[yY][eE][sS]) 
-.      if !empty(_TOOLS_USE_PKGSRC.groff:M[yY][eE][sS])
+.      if defined(_TOOLS_USE_PKGSRC.groff) && \
+         !empty(_TOOLS_USE_PKGSRC.groff:M[yY][eE][sS])
 _TOOLS_USE_PKGSRC.${_t_}= yes
 .      endif
 TOOLS_DEPENDS.${_t_}?= groff>=1.19.2nb3:../../textproc/groff



Home | Main Index | Thread Index | Old Index