git: 834e273d0233 - main - www/httest: enable only for lua <= 5.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 08 Sep 2022 07:52:31 UTC
The branch main has been updated by tcberner:
URL: https://cgit.FreeBSD.org/ports/commit/?id=834e273d0233cd36a48d11a0b8dfc3c1331b4ff1
commit 834e273d0233cd36a48d11a0b8dfc3c1331b4ff1
Author: Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2022-09-08 07:50:55 +0000
Commit: Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-09-08 07:51:35 +0000
www/httest: enable only for lua <= 5.2
From lua_module.c:
#if ( LUA_VERSION_NUM == 501 )
failed = (lua_load(L, lua_get_line, reader, "@client") != 0 ||
lua_pcall(L, 0, LUA_MULTRET, 0) != 0);
#elif ( LUA_VERSION_NUM == 502 )
failed = (lua_load(L, lua_get_line, reader, "@client", NULL) != 0 ||
lua_pcall(L, 0, LUA_MULTRET, 0) != 0);
#else
#error this lua version is not supported
#endif
PR: 220281
---
www/httest/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/httest/Makefile b/www/httest/Makefile
index e06c4d8bb1eb..020904935a6c 100644
--- a/www/httest/Makefile
+++ b/www/httest/Makefile
@@ -15,7 +15,7 @@ LIB_DEPENDS= libexpat.so:textproc/expat2 \
libpcre.so:devel/pcre \
libapr-1.so:devel/apr1
-USES= iconv lua libtool bdb ssl
+USES= iconv lua:-52 libtool bdb ssl
USE_LDCONFIG= yes
GNU_CONFIGURE= yes