Rspamd upstream basically does not support Lua 5.1 (Gentoo's default).
Recent versions fail to run with it. Upstream currently defaults to
luajit, which is not as widely supported as main Lua, but upstream may
switch the default to Lua 5.4 anyway [1]. This commit changes Gentoo's
default for rspamd to Lua 5.4.

Link: https://github.com/rspamd/rspamd/pull/5774#issuecomment-3616075781 [1]
Bug: https://bugs.gentoo.org/967009
Signed-off-by: Petr Vaněk <[email protected]>
---
 profiles/base/package.use | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/profiles/base/package.use b/profiles/base/package.use
index d1ae84235adc..3d56f161b943 100644
--- a/profiles/base/package.use
+++ b/profiles/base/package.use
@@ -1,6 +1,17 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
+# Petr Vaněk <[email protected]> (2026-01-12)
+# Recent rspamd wersions don't work with Lua 5.1, upstream currently prefers
+# and defaults to luajit, however, they may switch the default to Lua 5.4 [1].
+# Gentoo defaults to Lua 5.4 as it is more widely supported than Luajit and
+# upstream may switch to it anyway.
+#
+# [1] https://github.com/rspamd/rspamd/pull/5774#issuecomment-3616075781
+>=mail-filter/rspamd-3.14.1 lua_single_target_lua5-4 -lua_single_target_lua5-1
+dev-lua/LuaBitOp lua_targets_lua5-4
+dev-lua/lua-argparse lua_targets_lua5-4
+
 # Michał Górny <[email protected]> (2025-10-25)
 # Use FlexiBLAS by default.  Default-enable OpenBLAS backend for better
 # performance.
-- 
2.52.0


Reply via email to