pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/lua make sure varable is defined before using it.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/df118759875d
branches:  trunk
changeset: 626024:df118759875d
user:      obache <obache%pkgsrc.org@localhost>
date:      Wed Oct 30 08:53:40 2013 +0000

description:
make sure varable is defined before using it.

diffstat:

 lang/lua/luaversion.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6f1260534c5e -r df118759875d lang/lua/luaversion.mk
--- a/lang/lua/luaversion.mk    Wed Oct 30 08:39:07 2013 +0000
+++ b/lang/lua/luaversion.mk    Wed Oct 30 08:53:40 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: luaversion.mk,v 1.1 2013/10/30 06:18:09 dholland Exp $
+# $NetBSD: luaversion.mk,v 1.2 2013/10/30 08:53:40 obache Exp $
 
 # This file determins which Lua version is used as a dependency for
 # a package.
@@ -99,7 +99,7 @@
 #
 # Handle self-conflicts
 #
-.if !empty(LUA_SELF_CONFLICT:M[Yy][Ee][Ss])
+.if defined(LUA_SELF_CONFLICT) && !empty(LUA_SELF_CONFLICT:M[Yy][Ee][Ss])
 .for v in ${_LUA_VERSIONS_ACCEPTED:N${_LUA_VERSION}}
 CONFLICTS+=    ${PKGNAME:S/lua${_LUA_VERSION}/lua${v}/:C/-[0-9].*$/-[0-9]*/}
 .endfor



Home | Main Index | Thread Index | Old Index