Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 360683 - >=net-im/prosody-0.6.0 needs an optional dependency on dev-lua/lua-zlib
Summary: >=net-im/prosody-0.6.0 needs an optional dependency on dev-lua/lua-zlib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Dirkjan Ochtman (RETIRED)
URL: http://prosody.im/doc/depends
Whiteboard:
Keywords:
Depends on: 360679
Blocks:
  Show dependency tree
 
Reported: 2011-03-27 02:17 UTC by René 'Necoro' Neumann
Modified: 2011-05-02 16:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
prosody-0.7.0.ebuild.diff (prosody-0.7.0.ebuild.diff,675 bytes, patch)
2011-03-27 02:29 UTC, René 'Necoro' Neumann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description René 'Necoro' Neumann 2011-03-27 02:17:28 UTC
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 .
Comment 1 René 'Necoro' Neumann 2011-03-27 02:29:13 UTC
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.)
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-05-02 16:55:22 UTC
This has been fixed in prosody-0.8.0-r1.