FreeBSD Bugzilla – Attachment 161523 Details for
Bug 202302
[MAINTAINER] www/lighttpd: convert to options macros and add Lua 5.2+ compatibility
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
remove Lua 5.2+ support
file_202302.txt (text/plain), 2.12 KB, created by
Piotr Kubaj
on 2015-09-29 10:11:37 UTC
(
hide
)
Description:
remove Lua 5.2+ support
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2015-09-29 10:11:37 UTC
Size:
2.12 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 398160) >+++ Makefile (working copy) >@@ -58,7 +58,7 @@ > IPV6_CONFIGURE_OFF= --disable-ipv6 > LIBEV_CONFIGURE_WITH= libev=${LOCALBASE} > LIBEV_LIB_DEPENDS= libev.so:${PORTSDIR}/devel/libev >-LUA_USES= lua:51+ >+LUA_USES= lua:51 > LUA_CONFIGURE_WITH= lua > LUA_CONFIGURE_ENV= LUA_CFLAGS="-I${LUA_INCDIR}" LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER}" > MEMCACHE_LIB_DEPENDS= libmemcache.so:${PORTSDIR}/databases/libmemcache >Index: files/patch-src_mod__cml__lua.c >=================================================================== >--- files/patch-src_mod__cml__lua.c (revision 398160) >+++ files/patch-src_mod__cml__lua.c (working copy) >@@ -1,25 +0,0 @@ >---- src/mod_cml_lua.c.orig 2015-07-26 10:36:36 UTC >-+++ src/mod_cml_lua.c >-@@ -28,6 +28,10 @@ typedef char HASHHEX[HASHHEXLEN+1]; >- #include <lualib.h> >- #include <lauxlib.h> >- >-+#if LUA_VERSION_NUM >= 502 >-+#define LUA_GLOBALSINDEX LUA_REGISTRYINDEX >-+#endif >-+ >- typedef struct { >- stream st; >- int done; >-@@ -291,7 +295,11 @@ int cache_parse_lua(server *srv, connect >- lua_settable(L, LUA_GLOBALSINDEX); >- >- /* load lua program */ >-+#if LUA_VERSION_NUM >= 502 >-+ if (lua_load(L, load_file, &rm, fn->ptr, NULL) || lua_pcall(L,0,1,0)) { >-+#else >- if (lua_load(L, load_file, &rm, fn->ptr) || lua_pcall(L,0,1,0)) { >-+#endif >- log_error_write(srv, __FILE__, __LINE__, "s", >- lua_tostring(L,-1)); >- >Index: files/patch-src_mod__magnet.c >=================================================================== >--- files/patch-src_mod__magnet.c (revision 398160) >+++ files/patch-src_mod__magnet.c (working copy) >@@ -1,13 +0,0 @@ >---- src/mod_magnet.c.orig 2015-07-26 10:36:36 UTC >-+++ src/mod_magnet.c >-@@ -24,6 +24,10 @@ >- #define MAGNET_CONFIG_PHYSICAL_PATH "magnet.attract-physical-path-to" >- #define MAGNET_RESTART_REQUEST 99 >- >-+#if LUA_VERSION_NUM >= 502 >-+#define LUA_GLOBALSINDEX LUA_REGISTRYINDEX >-+#endif >-+ >- /* plugin config for all request/connections */ >- >- static jmp_buf exceptionjmp;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202302
:
159838
| 161523