Blob Blame History Raw
Hack by Robert Scheck <robert@fedoraproject.org> for prosody >= 0.10.0 which removes the
default warning for missing Lua BitOp. Prosody >= 0.10.0 requires either Lua 5.1 with the
Lua BitOp extension or Lua 5.2 without Lua BitOp extension, Lua 5.3 is not supported. If
the Lua BitOp extension is missing, the WebSocket module will throw an error if enabled.

--- prosody-0.10.0/util/dependencies.lua		2017-09-27 16:49:58.000000000 +0200
+++ prosody-0.10.0/util/dependencies.lua.bitop		2017-10-01 23:49:44.000000000 +0200
@@ -99,16 +99,6 @@
 			}, "SSL/TLS support will not be available");
 	end
 
-	local bit = _G.bit32 or softreq"bit";
-
-	if not bit then
-		missingdep("lua-bitops", {
-			["Debian/Ubuntu"] = "sudo apt-get install lua-bitop";
-			["luarocks"] = "luarocks install luabitop";
-			["Source"] = "http://bitop.luajit.org/";
-		}, "WebSocket support will not be available");
-	end
-
 	local encodings, err = softreq "util.encodings"
 	if not encodings then
 		if err:match("module '[^']*' not found") then