pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/tools mk/tools: fix BISON_REQD handling for lists o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a45a315b6a17
branches:  trunk
changeset: 393656:a45a315b6a17
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Mar 21 21:47:29 2019 +0000

description:
mk/tools: fix BISON_REQD handling for lists of multiple Bison versions

diffstat:

 mk/tools/bison.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 0a9e29238afe -r a45a315b6a17 mk/tools/bison.mk
--- a/mk/tools/bison.mk Thu Mar 21 21:45:30 2019 +0000
+++ b/mk/tools/bison.mk Thu Mar 21 21:47:29 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bison.mk,v 1.2 2018/08/22 20:48:37 maya Exp $
+# $NetBSD: bison.mk,v 1.3 2019/03/21 21:47:29 rillig Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -43,10 +43,10 @@
        ${SED} -n -e 's/^bison.* \([0-9]\..*\)/\1/p'
 _TOOLS_PKG.bison=              bison-${_TOOLS_VERSION.bison}
 _TOOLS_USE_PKGSRC.bison=       no
-.    for _dep_ in bison>=${BISON_REQD}
+.    for reqd in ${BISON_REQD}
 .      if !empty(_TOOLS_USE_PKGSRC.bison:M[nN][oO])
 _TOOLS_USE_PKGSRC.bison!=                                              \
-       if ${PKG_ADMIN} pmatch ${_dep_:Q} ${_TOOLS_PKG.bison:Q}; then \
+       if ${PKG_ADMIN} pmatch bison\>=${reqd:Q} ${_TOOLS_PKG.bison:Q}; then \
                ${ECHO} no;                                             \
        else                                                            \
                ${ECHO} yes;                                            \



Home | Main Index | Thread Index | Old Index