1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 20:55:19 +03:00
aports/community/lua-turbo/default-luasocket.patch
Natanael Copa 3b642ff071 community/lua-turbo: rebuild with openssl 1.1
the openssl ffi binding is broken, both for libressl/openssl1.0 and for
openssl 1.1. https://release-monitoring.org certificate verification
fails with hostname mismatch for some reason.

So we disable the ffi and use luasocket and luasec by default. To use
the FFI you need to explicitly set `__TURBO_USE_LUASOCKET__=false`
2020-01-09 12:09:25 +00:00

14 lines
545 B
Diff

diff --git a/turbo.lua b/turbo.lua
index 543cce4..e03f8ce 100644
--- a/turbo.lua
+++ b/turbo.lua
@@ -88,6 +88,9 @@ assert(pcall(require, "bit") or pcall(require, "bit32"),
"No bit or compatible library available")
turbo.platform = require "turbo.platform"
turbo.log = require "turbo.log"
+if _G.__TURBO_USE_LUASOCKET__ == nil then
+ _G.__TURBO_USE_LUASOCKET__ = true
+end
if not turbo.platform.__LINUX__ then
if not pcall(require, "socket") then
turbo.log.error("Could not load LuaSocket. Aborting.")