Created attachment 206963 [details] lua-resty-core.diff lua-resty-core - New FFI-based Lua API for ngx_http_lua_module and/or ngx_stream_lua_module. https://github.com/openresty/lua-resty-core lua-resty-lrucache - Lua-land LRU cache based on the LuaJIT FFI. https://github.com/openresty/lua-resty-lrucache poudriere testport passed
Created attachment 206964 [details] lua-resty-lrucache.diff
+1, I need this too. @Martin This is actually wrong, #240438 doesn't block this ticket, actually this ticket should be blocking #240438 Anyway, as #240438 is already committed can this one be committed too? Thanks in advance
I am taking this PR and have a question. lua-resty-core and lua-resty-lrucache are actually intended to be used with luajit-openresty. Why the requirement USES=lua:51? These ports should actually do pretty well standalone.
I have just checked lang/luajit-openresty It autosearches (in the following order): ./?.lua /usr/local/share/luajit-2.1.0-beta3/?.lua /usr/local/share/lua/5.1/?.lua I am fine with putting the files into /usr/local/share/lua/5.1 but I still don't think the package has a runtime or buildtime dependency on lua.
Created attachment 207514 [details] lua-resty-core.diff changed dependency
Created attachment 207515 [details] lua-resty-lrucache.diff changed dependency
Created attachment 207516 [details] lua-resty-core.diff fixed portlint warning
Created attachment 207517 [details] lua-resty-lrucache.diff fixed portlint warning
A commit references this bug: Author: mm Date: Sun Sep 15 23:12:14 UTC 2019 New revision: 512134 URL: https://svnweb.freebsd.org/changeset/ports/512134 Log: Lua-land LRU cache based on the LuaJIT FFI WWW: https://github.com/openresty/lua-resty-lrucache PR: 240160 Submitted by: Dmitry Wagin <dmitry.wagin@ya.ru> Changes: head/www/Makefile head/www/lua-resty-lrucache/ head/www/lua-resty-lrucache/Makefile head/www/lua-resty-lrucache/distinfo head/www/lua-resty-lrucache/pkg-descr
A commit references this bug: Author: mm Date: Sun Sep 15 23:18:48 UTC 2019 New revision: 512135 URL: https://svnweb.freebsd.org/changeset/ports/512135 Log: New FFI-based Lua API for ngx_http_lua_module and/or ngx_stream_lua_module WWW: https://github.com/openresty/lua-resty-core PR: 240160 Submitted by: Dmitry Wagin <dmitry.wagin@ya.ru> Changes: head/www/Makefile head/www/lua-resty-core/ head/www/lua-resty-core/Makefile head/www/lua-resty-core/distinfo head/www/lua-resty-core/pkg-descr head/www/lua-resty-core/pkg-plist