Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922522 - mail-filter/rspamd-3.8.0 doesn't work with lua5-1
Summary: mail-filter/rspamd-3.8.0 doesn't work with lua5-1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Petr Vaněk
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-20 08:34 UTC by Kim B. Sindalsen
Modified: 2024-01-26 09:16 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kim B. Sindalsen 2024-01-20 08:34:37 UTC
rspamd fails to start when using lua5-1 - so should probably be removed as available LUA_SINGLE_TARGET

Reproducible: Always

Steps to Reproduce:
1. LUA_SINGLE_TARGET="lua5-1" emerge -v1DN mail-filter/rspamd
2. /etc/init.d/rspamd start
Actual Results:  
mail ~ # /etc/init.d/rspamd start
rcl parse error: cannot init lua file /usr/share/rspamd/rules/rspamd.lua: error loading module 'lua_maps' from file '/usr/share/rspamd/lualib/lua_maps.lua':
        /usr/share/rspamd/lualib/lua_maps.lua:564: nesting of [[...]] is deprecated near '['; trace: [1]:{[C]:-1 - <unknown> [C]}; [2]:{[C]:-1 - require [C]}; [3]:{/usr/share/rspamd/lualib/global_functions.lua:21 - <unknown> [main]}; [4]:{[C]:-1 - require [C]}; [5]:{rspamd.lua:19 - <unknown> [main]};
 * ERROR: rspamd failed to start
mail ~ #

Expected Results:  
Works fine when swithcing to lua5-3 or lua5-4
Comment 1 Petr Vaněk gentoo-dev 2024-01-20 13:05:53 UTC
Could you report it to upstream, lua-5.1 seems to be still supported, see https://github.com/rspamd/rspamd/blob/3.8.0/CMakeLists.txt#L192-L200
Comment 2 Kim B. Sindalsen 2024-01-20 13:57:06 UTC
https://github.com/rspamd/rspamd/issues/4784
Comment 3 Larry the Git Cow gentoo-dev 2024-01-26 09:16:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a31d97af4910925784bfd609199347030336516

commit 9a31d97af4910925784bfd609199347030336516
Author:     Petr Vaněk <arkamar@gentoo.org>
AuthorDate: 2024-01-26 09:03:02 +0000
Commit:     Petr Vaněk <arkamar@gentoo.org>
CommitDate: 2024-01-26 09:15:18 +0000

    mail-filter/rspamd: drop 3.8.0
    
    Closes: https://bugs.gentoo.org/922522
    Signed-off-by: Petr Vaněk <arkamar@gentoo.org>

 mail-filter/rspamd/Manifest            |   1 -
 mail-filter/rspamd/rspamd-3.8.0.ebuild | 155 ---------------------------------
 2 files changed, 156 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2e961efcd3c4333c31d9248b5b6e0dcef5f1e93

commit a2e961efcd3c4333c31d9248b5b6e0dcef5f1e93
Author:     Petr Vaněk <arkamar@gentoo.org>
AuthorDate: 2024-01-26 09:01:43 +0000
Commit:     Petr Vaněk <arkamar@gentoo.org>
CommitDate: 2024-01-26 09:15:17 +0000

    mail-filter/rspamd: add 3.8.1
    
    This version fixes Lua 5.1 issue, see bug 922522.
    
    Bug: https://bugs.gentoo.org/922522
    Signed-off-by: Petr Vaněk <arkamar@gentoo.org>

 mail-filter/rspamd/Manifest            |   1 +
 mail-filter/rspamd/rspamd-3.8.1.ebuild | 155 +++++++++++++++++++++++++++++++++
 2 files changed, 156 insertions(+)