On Mon, Jan 12, 2026 at 02:07:46PM -0500, Eli Schwartz wrote:
> On 1/12/26 12:30 PM, Petr Vaněk wrote:
> > Hi all,
> > 
> > Recent rspamd releases (starting with 3.14.1) are broken with Lua 5.1
> > [1], which is the Gentoo default. Rspamd upstream plans to officially
> > drop the support for Lua versions older than 5.3 soon [2], and they
> > currently default to luajit.
> > 
> > I originally thought it would be reasonable to switch the Gentoo default
> > for rspamd to luajit, however, as I was pointed out by juippis, its
> > architecture support is limited compared to standard Lua. Moreover,
> > Rspamd upstream may switch the default to Lua 5.4 as well [2].
> > 
> > I have two questions:
> > 
> >   1. wdyt, should I switch the rspamd to Lua 5.4 as proposed in
> >      following patch?
> 
> NACK. The patch makes no sense, because (those versions of) rspamd does
> not even list lua 5.1 in LUA_COMPAT.
> 
> Setting
> 
> >=mail-filter/rspamd-3.14.1 -lua_single_target_lua5-1
> 
> 
> is a logic error. There's nothing to change. Removing it from LUA_COMPAT
> was anyways the correct solution **rather than** changing profiles/base.
> 
> 
> Setting
> 
> >=mail-filter/rspamd-3.14.1 lua_single_target_lua5-4
> 
> is "ok", but feels ever so slightly questionable; personally I'd rather
> use this
> 
> IUSE="+lua_single_target_lua5-4"
> 
> instead :(

Thank you. I agree, this really looks better. I tried to search if any
package sets it this way, but there is none. I later found multiple
packages changing profiles/base and thought that it is maybe preferred.

> Setting
> 
> dev-lua/LuaBitOp lua_targets_lua5-4
> dev-lua/lua-argparse lua_targets_lua5-4
> 
> is out of place; you're forcing other packages to pull in lua 5.4 just
> for depending on these two libraries. emerge with autounmask trivially
> solves for adding these targets, as long as rspamd defaults to enabling
> *a* LUA_SINGLE_TARGET value

Ok, I agree again :) but I have seen that in profiles/base as well.

Anyway, thank you for your suggestions! I will go with
IUSE="+lua_single_target_lua5-4".

Petr

Reply via email to