When enabling the 'compression' module in prosody, it needs lua-bindings to zlib, else it fails: Mar 27 03:23:34 modulemanager error Error initializing module 'compression' on 'jabber.necoro.eu': /usr/bin/prosody:118: module 'zlib' not found: no field package.preload['zlib'] no file '/usr/lib/prosody/zlib.lua' no file './zlib.lua' no file '/usr/local/share/lua/5.1/zlib.lua' no file '/usr/local/share/lua/5.1/zlib/init.lua' no file '/usr/local/lib/lua/5.1/zlib.lua' no file '/usr/local/lib/lua/5.1/zlib/init.lua' no file '/usr/share/lua/5.1/zlib.lua' no file '/usr/share/lua/5.1/zlib/init.lua' no file '/usr/lib/prosody/fallbacks/zlib.lua' no file '/usr/lib/prosody/zlib.so' no file './zlib.so' no file '/usr/local/lib/lua/5.1/zlib.so' no file '/usr/lib/lua/5.1/zlib.so' no file '/usr/local/lib/lua/5.1/loadall.so' no file '/usr/lib/prosody/fallbacks/zlib.so' This is also described in its documentation: http://prosody.im/doc/depends A lua-zlib ebuild is given in bug #360679 .
Created attachment 267339 [details, diff] prosody-0.7.0.ebuild.diff Here is a patch against prosody-0.7.0.ebuild. I took the liberty to mark 'zlib' as enabled by default, as I personally think, there is no harm in installing lua-zlib, even if it is not used (size of lua-zlib: ~61 KiB). And keep in mind, that the compression needs to be enabled explicitly anyway in prosody's config. Also something like the following should be added to metadata.xml: <flag name="zlib">Support for compressing XMPP streams when mod_compression is enabled.</flag> (Yes - 'compress' or 'compression' would be some more self-describing, but having a short glance with 'euse -i zlib', some more packages are using it this way.)
This has been fixed in prosody-0.8.0-r1.