Bug#842906: lua-sec 0.6 is not compatible with lua 5.1

2016-11-11 Thread Elia Argentieri
> > lua-sec 0.6 is not compatible with lua 5.1
> 
> Are you sure about that? The rockspec says:
>
> dependencies = {
>"lua >= 5.1", "luasocket"
> }

I am, rockspec might be wrong. See https://github.com/brunoos/luasec,
it says "Lua 5.2 and 5.3 compatibility", but no lua 5.1 is mentioned.



Bug#842906: lua-sec 0.6 is not compatible with lua 5.1

2016-11-06 Thread Ondřej Surý
Control: tags -1 +patch

> lua-sec 0.6 is not compatible with lua 5.1

Are you sure about that? The rockspec says:

dependencies = {
   "lua >= 5.1", "luasocket"
}

I think the problem is:

Quoting from https://prosody.im/issues/issue/749

"LuaSec 0.6 will no longer follow the old and deprecated practice of
exporting itself into the global environment."

and the workaround is pretty easy:
https://hg.prosody.im/0.9/rev/decb657bc0a0



--- a/util/dependencies.lua Thu Aug 18 14:51:11 2016 +0200
+++ b/util/dependencies.lua Fri Sep 23 16:09:46 2016 +0200
@@ -99,6 +99,9 @@
["luarocks"] = "luarocks install
luasec";
["Source"] =
"http://www.inf.puc-rio.br/~brunoos/luasec/;;
}, "SSL/TLS support will not be available");
+   elseif not _G.ssl then
+   _G.ssl = ssl;
+   _G.ssl.context = require "ssl.context";
end

local encodings, err = softreq "util.encodings"



Cheers,
-- 
Ondřej Surý 
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server
Knot Resolver (https://www.knot-resolver.cz/) – secure, privacy-aware,
fast DNS(SEC) resolver
Vše pro chleba (https://vseprochleba.cz) – Mouky ze mlýna a potřeby pro
pečení chleba všeho druhu



Bug#842906: lua-sec 0.6 is not compatible with lua 5.1

2016-11-04 Thread Elia Argentieri
lua-sec 0.6 is not compatible with lua 5.1 and Prosody 0.9.10 runs with
lua 5.1.

We have two possibilities: make two packages lua5.1-sec=0.5.1 and
lua5.2-sec=0.6 to maintain compatibility with prosody 0.9.10, or
package Prosody 0.9.11 which contains "Workaround for compatibility
with LuaSec 0.6" [1].

[1]: http://blog.prosody.im/prosody-0-9-11-released/