]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/BUILD: lua: The strict Lua 5.3 version check is not done.
authorThierry FOURNIER <tfournier@exceliance.fr>
Mon, 9 Mar 2015 23:35:36 +0000 (00:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Mar 2015 09:17:48 +0000 (10:17 +0100)
This patch fix the Lua library check. Only the version
5.3 or later is allowed.

This bug is added by the patch "MEDIUM: lua: use the
Lua-5.3 version of the library" with commit id

   f90838b71a3c7f84e1d8b4ff85760a35d60c6910

Makefile
src/hlua.c

index 1a317924f30ed5237337b58e6223537c6f9b6ab1..a12e4c9fcd01c602cf19d573e6a51457432eaac6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -569,9 +569,9 @@ OPTIONS_CFLAGS  += -DUSE_LUA $(if $(LUA_INC),-I$(LUA_INC))
 LUA_LD_FLAGS := $(if $(LUA_LIB),-L$(LUA_LIB))
 ifeq ($(LUA_LIB_NAME),)
 # Try to automatically detect the Lua library
-LUA_LIB_NAME := $(firstword $(foreach lib,lua5.2 lua52 lua,$(call check_lua_lib,$(lib),$(LUA_LD_FLAGS))))
+LUA_LIB_NAME := $(firstword $(foreach lib,lua5.3 lua53 lua,$(call check_lua_lib,$(lib),$(LUA_LD_FLAGS))))
 ifeq ($(LUA_LIB_NAME),)
-$(error unable to automatically detect the Lua library name, you can enforce its name with LUA_LIB_NAME=<name> (where <name> can be lua5.2, lua52, lua, ...))
+$(error unable to automatically detect the Lua library name, you can enforce its name with LUA_LIB_NAME=<name> (where <name> can be lua5.3, lua53, lua, ...))
 endif
 endif
 
index 564f5bace07077508aed415f00fc4a290bf9df28..fb39dc11f09c27f138bf5897b74798f1e8a027b6 100644 (file)
@@ -4,8 +4,8 @@
 #include <lua.h>
 #include <lualib.h>
 
-#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502
-#error "Requires Lua 5.2 or later."
+#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 503
+#error "Requires Lua 5.3 or later."
 #endif
 
 #include <ebpttree.h>