Kim Alvefur
406b90d31d
core.certmanager: Turn soft dependency on LuaSec into a hard
...
The default network backend server_epoll already requires LuaSec so
Prosody won't even start without it, so we can get rid of these lines
here too.
4 years ago
Kim Alvefur
09a2018e40
util.dependencies: Print tables itself to reduce number of imports
...
Rationale: See diffstat
When this module is imported, it ends up calling stty via term_width()
in util.human.io.table(). When this happens outside of a terminal, the
following message is sent to stdout:
stty: 'standard input': Inappropriate ioctl for device
Not importing this module avoids that.
Furthermore three is value in this module having minimal dependencies as
they might not be available when it does the checks.
Ref a1fed82c44b9
3 years ago
Kim Alvefur
43531740f9
util: Prefix module imports with prosody namespace
3 years ago
Kim Alvefur
ada68efcc9
util.dependencies: Reject Lua 5.1, Lua 5.2 or later is now required (see #1600 )
4 years ago
Kim Alvefur
5393bff075
util.dependencies: Deprecate support for Lua 5.1, this is your final warning
4 years ago
Kim Alvefur
c91cc915b6
util.dependencies: Check for bitop library same way as net.websocket.frames ( fixes #1594 )
5 years ago
Kim Alvefur
f9660a9509
util.dependencies: Refer to 'apt' instead of 'apt-get'
...
The more modern and user friendly frontend, should be in every supported
version of Debian and Ubuntu by now
4 years ago
Kim Alvefur
c43fbe25ec
util.dependencies: Enable warning about missing lua-unbound
...
Packages exists now.
4 years ago
Kim Alvefur
bdea7033a7
util.dependencies: Fix typo (thanks jonas’)
...
vim> Change "sevral" to:
1 "several"
2 "sacral"
3 "spiral"
4 "feral"
5 "serial"
jonas’> I choose 4.
4 years ago
Kim Alvefur
eb2c2d4597
util.dependencies: Discourage Lua 5.1
...
Search for 'Lua 5.1' for reasons.
4 years ago
Kim Alvefur
74e1de54fd
util.dependencies: Consider Lua 5.4 Supported ™️
...
I have been running my own server exclusively on Lua 5.4 for months and
apart from packaging issues I remember on major issues.
4 years ago
Kim Alvefur
fb63560591
util.dependencies: Quiet luacheck
6 years ago
Kim Alvefur
8c73ea0b22
util.dependencies: Tone down lua-unbound dependency for now
...
At least until packages are available
Wording from MattJ
6 years ago
Kim Alvefur
c98a6d205e
util.dependencies: Prefer net.unbound over net.adns
6 years ago
Kim Alvefur
57253b7f87
util.dependencies: Add awareness of luaunbound
6 years ago
Matthew Wild
bec20ff0b4
util.dependencies: Use util.human.io.table to replace custom layout code
6 years ago
Kim Alvefur
f8e36355ee
util.dependencies: Pass require error to error formatting function
...
For future use there.
Silences luacheck warnings about unused 'err'
6 years ago
Kim Alvefur
2848e38b7e
util.dependencies: Avoid missing bitop false positive on Lua 5.4
6 years ago
Kim Alvefur
587c2382b0
util.dependencies: Increase Lua version to warn about to 5.4
...
No significant problems have been encountered with Lua 5.3 itself, so
apart from some odd problems in LuaExpat it seems about time to declare
it ready.
7 years ago
Matthew Wild
9fdfa590d2
util.dependencies: Remove ztact compatability warning
7 years ago
Kim Alvefur
284152ba25
util.dependencies: Add compat code for normalization of socket constructors
...
Old LuaSocket had only tcp() which was IPv4-only. LuaSocket ~3.0 adds a
tcp6() that creates a IPv6 socket. Some version moves tcp() to tcp4()
and adds an IP-version-agnostic tcp() constructor.
7 years ago
Kim Alvefur
9437d97a37
util.dependencies: Add comment about LuaSec compat
9 years ago
Kim Alvefur
255073d6c9
util.dependencies: Add compatibility code for LuaSocket no longer exporting as a global
9 years ago
Kim Alvefur
4a5b4067a9
util.dependencies: Give APT command for installing lua-sec
9 years ago
Kim Alvefur
87f325ecd7
util.dependencies: Normalize whitespace
9 years ago
Kim Alvefur
43cc8f2d9d
util.dependencies: Update Debian package names for liblua5.1-lib0 -> lua-lib transition
9 years ago
Kim Alvefur
00e5c2d7d3
util.dependencies: Add check and info about lua-bitops (for mod_websockets)
9 years ago
Kim Alvefur
1c652e0883
util.dependencies: Update links for LuaExpat and LuaSec which have moved to new locations
9 years ago
Kim Alvefur
09450f23e4
util.dependencies: Set ssl.x509 so core.certmanager knows that LuaSec is capable of certificate validation ( fixes #781 )
9 years ago
Kim Alvefur
73d36e3ff9
util.dependencies: Disable warning about Lua 5.2 (but still warn about 5.3)
9 years ago
Kim Alvefur
c200735dba
util.dependencies: Set global 'ssl' for compat with LuaSec 0.6 ( fixes #749 )
9 years ago
Emmanuel Gil Peyrot
c6048a7cb4
Update every link to the documentation to use HTTPS
10 years ago
Thijs Alkemade
bc0ce12e97
util.dependencies: Show the full error when a symbol is not found (i.e., when running Prosody with the wrong version of Lua).
10 years ago
Matthew Wild
c2c82b591a
util.dependencies: Use prosody.log() instead of global log()
10 years ago
Kim Alvefur
359ca86e38
util.dependencies: Only abort on Lua versions before 5.1, log a warning about 5.2 and above for now
11 years ago
Kim Alvefur
eaa823a597
util.*: Remove use of module() function, make all module functions local and return them in a table at the end
11 years ago
Waqas Hussain
32b9b7ff47
util.dependencies: Check for Lua 5.1. We don't currently support any other versions. LuaJIT identifies as 5.1.
12 years ago
Matthew Wild
36a19e92a7
util.dependencies: Log error when LuaExpat is not capable of enforcing stanza size limits
12 years ago
Kim Alvefur
f06c9f7d0d
Backout ae48bf828f21
12 years ago
Florian Zeitz
1d833bb807
Remove all trailing whitespace
13 years ago
Waqas Hussain
56975d6c63
util.dependencies, util.xmppstream: Move LuaExpat version checking to util.dependencies.
14 years ago
Tobias Markmann
1fbe88e5c4
Run with own LuaSec.
15 years ago
Matthew Wild
6d96edf726
prosody, prosodyctl, util.dependencies: Split checking and logging of dependencies so we can check hard deps before the config and logging is loaded
15 years ago
Matthew Wild
44bf454dd5
prosody, prosodyctl, util.dependencies: Split checking and logging of dependencies so we can check hard deps before the config and logging is loaded
15 years ago
Matthew Wild
ebb9c9d585
util.dependencies: Add a dummy util.ztact loader to log a message for people still using it (e.g. in their Debian-derived config files)
15 years ago
Matthew Wild
2bc0606453
Update copyright headers for 2010
16 years ago
Matthew Wild
b091201f79
util.dependencies: Don't query the config (it isn't really necessary)
16 years ago
Matthew Wild
7086dd06fe
util.dependencies: Load luarocks.loader/luarocks.require
16 years ago
Matthew Wild
08284a586e
util.dependencies, prosody, prosodyctl: Give util.dependencies a check_dependencies() function so the caller can decide what to do when dependencies aren't met - update prosody/prosodyctl for this change
16 years ago
Matthew Wild
6428065b5e
util.dependencies: Fix package name of LuaFilesystem
16 years ago