pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/Xrandr-mixedcase check variable is defined before ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/13ed2ad3007a
branches:  trunk
changeset: 496703:13ed2ad3007a
user:      grant <grant%pkgsrc.org@localhost>
date:      Sat Jul 09 03:14:36 2005 +0000

description:
check variable is defined before testing its value. fixes malformed
conditional problem noted by Jake Maciejewski on tech-pkg@

diffstat:

 x11/Xrandr-mixedcase/builtin.mk |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r d502b0df57dd -r 13ed2ad3007a x11/Xrandr-mixedcase/builtin.mk
--- a/x11/Xrandr-mixedcase/builtin.mk   Sat Jul 09 01:11:15 2005 +0000
+++ b/x11/Xrandr-mixedcase/builtin.mk   Sat Jul 09 03:14:36 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.12 2005/06/03 19:12:49 jlam Exp $
+# $NetBSD: builtin.mk,v 1.13 2005/07/09 03:14:36 grant Exp $
 
 BUILTIN_PKG:=  Xrandr
 
@@ -41,7 +41,8 @@
 _BLTN_XRANDR_1.0.xorg=         6.[7-9]* 6.[1-9][0-9]*
 .  for _version_ in ${_BLTN_XRANDR_VERSIONS}
 .    for _pattern_ in ${_BLTN_XRANDR_${_version_}.${BUILTIN_X11_TYPE.${X11_TYPE}}}
-.      if !empty(BUILTIN_X11_VERSION.${X11_TYPE}:M${_pattern_})
+.      if defined(BUILTIN_X11_VERSION.${X11_TYPE}) && \
+          !empty(BUILTIN_X11_VERSION.${X11_TYPE}:M${_pattern_})
 BUILTIN_VERSION.Xrandr?=       ${_version_}
 .      endif
 .    endfor



Home | Main Index | Thread Index | Old Index