ports/182894: www/mod_security has the wrong LIB_DEPENDS entry for lua
Matthew X. Economou
xenophon+fbsdports at irtnog.org
Fri Oct 11 04:30:01 UTC 2013
>Number: 182894
>Category: ports
>Synopsis: www/mod_security has the wrong LIB_DEPENDS entry for lua
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Oct 11 04:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Matthew X. Economou
>Release: 9.1-RELEASE-p1
>Organization:
IRTNOG
>Environment:
FreeBSD cinep100bsdweb.irtnog.net 9.1-RELEASE-p1 FreeBSD 9.1-RELEASE-p1 #12 r247012M: Wed Feb 20 09:51:27 EST 2013 root at cinep001bsdgw.irtnog.net:/usr/obj/usr/src/sys/FIREWALL amd64
>Description:
After enabling the LUA option in the ports' config, the www/mod_security port explicitly sets LIB_DEPENDS to pull in lang/lua. However, on my system the dependency explicitly states version 5.1.5 of the lua library, when the library version number is 5.1.1. (I don't know why there is a discrepancy.) If I replace the lua LIB_DEPENDS entry in www/mod_security/Makefile with LUA_COMPS=lua:lib, the port builds and links against lua properly, as ports/Mk/bsd.lua.mk sets LIB_DEPENDS for the port.
>How-To-Repeat:
(cd www/apache22 && make install BATCH=yes)
(cd www/mod_security && make install WITH=LUA)
>Fix:
Apply the following patch:
--- www/mod_security/Makefile.orig 2013-10-11 00:06:21.502494975 -0400
+++ www/mod_security/Makefile 2013-10-11 00:09:03.160494716 -0400
@@ -50,8 +50,8 @@
.if ${PORT_OPTIONS:MLUA}
USE_LUA= 5.1+
+LUA_COMPS= lua:lib
CONFIGURE_ARGS+= --with-lua=${LOCALBASE}
-LIB_DEPENDS+= lua-5.1.5:${PORTSDIR}/lang/lua
.else
CONFIGURE_ARGS+= --without-lua
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list