pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/nmap nmap: set LUA_VERSIONS_ACCEPTED to avoid usin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9c060191952e
branches:  trunk
changeset: 370577:9c060191952e
user:      leot <leot%pkgsrc.org@localhost>
date:      Thu Oct 19 21:43:25 2017 +0000

description:
nmap: set LUA_VERSIONS_ACCEPTED to avoid using internal Lua provided by nmap

Without that change the nmap configure script checks for `lua_isyield'
symbol (appeared on Lua 5.3), and for LUA_VERSION_DEFAULT != 53
(pkgsrc by default set LUA_VERSION_DEFAULT to 52) it will just
silently use its internal version.

Set LUA_VERSIONS_ACCEPTED to 53 to avoid that.

Fix PR pkg/52624 reported by Patrick Mackey.

Bump PKGREVISION.

diffstat:

 net/nmap/Makefile   |  3 ++-
 net/nmap/options.mk |  3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r efd56cc64a93 -r 9c060191952e net/nmap/Makefile
--- a/net/nmap/Makefile Thu Oct 19 20:32:24 2017 +0000
+++ b/net/nmap/Makefile Thu Oct 19 21:43:25 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.136 2017/08/03 13:52:00 adam Exp $
+# $NetBSD: Makefile,v 1.137 2017/10/19 21:43:25 leot Exp $
 
 DISTNAME=      nmap-7.60
+PKGREVISION=   1
 CATEGORIES=    net security
 MASTER_SITES=  http://nmap.org/dist/
 EXTRACT_SUFX=  .tar.bz2
diff -r efd56cc64a93 -r 9c060191952e net/nmap/options.mk
--- a/net/nmap/options.mk       Thu Oct 19 20:32:24 2017 +0000
+++ b/net/nmap/options.mk       Thu Oct 19 21:43:25 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.18 2017/01/01 14:43:50 wiz Exp $
+# $NetBSD: options.mk,v 1.19 2017/10/19 21:43:25 leot Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.nmap
 
@@ -37,6 +37,7 @@
 .endif
 
 .if !empty(PKG_OPTIONS:Mlua)
+LUA_VERSIONS_ACCEPTED= 53      # needs lua_isyieldable, introduced in Lua 5.3
 .include "../../lang/lua/buildlink3.mk"
 CONFIGURE_ARGS+=       --with-liblua=${BUILDLINK_PREFIX.lua}
 PLIST.lua=             yes



Home | Main Index | Thread Index | Old Index