summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@atlas.cz>2022-11-05 20:27:38 +0100
committerSam James <sam@gentoo.org>2022-11-06 06:16:51 +0000
commitb022bb84a1fa213ed074ae78e01717683305ec75 (patch)
tree28523f524bce988b3ab12734708e5e87b309801e /mail-filter
parentmail-filter/rspamd: drop 3.0-r4, 3.1-r2, 3.2 (diff)
downloadgentoo-b022bb84a1fa213ed074ae78e01717683305ec75.tar.gz
gentoo-b022bb84a1fa213ed074ae78e01717683305ec75.tar.bz2
gentoo-b022bb84a1fa213ed074ae78e01717683305ec75.zip
mail-filter/rspamd: remove broken test case
Recent stabilization of luajit-2.1 triggered test phase failures related to improperly designed test case. It was already removed from upstream, see linked PR. Upstream-PR: https://github.com/rspamd/rspamd/pull/4323 Bug: https://bugs.gentoo.org/879575 Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/rspamd/files/rspamd-3.3-remove-test-case.patch20
-rw-r--r--mail-filter/rspamd/rspamd-3.3.ebuild1
2 files changed, 21 insertions, 0 deletions
diff --git a/mail-filter/rspamd/files/rspamd-3.3-remove-test-case.patch b/mail-filter/rspamd/files/rspamd-3.3-remove-test-case.patch
new file mode 100644
index 000000000000..0cad11382b21
--- /dev/null
+++ b/mail-filter/rspamd/files/rspamd-3.3-remove-test-case.patch
@@ -0,0 +1,20 @@
+Remove test case which does not work with luajit-2.1 anymore as it
+depends on internal behavior of lujait-2.0.
+
+Upstream-PR: https://github.com/rspamd/rspamd/pull/4323
+
+diff --git a/test/lua/unit/lua_util.extract_specific_urls.lua b/test/lua/unit/lua_util.extract_specific_urls.lua
+index 05ffeb7b0..a7e2f9f48 100644
+--- a/test/lua/unit/lua_util.extract_specific_urls.lua
++++ b/test/lua/unit/lua_util.extract_specific_urls.lua
+@@ -108,7 +108,6 @@ context("Lua util - extract_specific_urls plain", function()
+ local cases = {
+ {expect = url_list, filter = nil, limit = 9999, need_emails = true, prefix = 'p'},
+ {expect = {}, filter = (function() return false end), limit = 9999, need_emails = true, prefix = 'p'},
+- {expect = {"domain4.co.net", "test.com"}, filter = nil, limit = 2, need_emails = true, prefix = 'p'},
+ {expect = {"domain4.co.net", "test.com", "domain3.org"}, filter = nil, limit = 3, need_emails = true, prefix = 'p'},
+ {
+ expect = {"gov.co.net", "tesco.co.net", "domain1.co.net", "domain2.co.net", "domain3.co.net", "domain4.co.net"},
+--
+2.37.4
+
diff --git a/mail-filter/rspamd/rspamd-3.3.ebuild b/mail-filter/rspamd/rspamd-3.3.ebuild
index b6932290133a..7231e72c2f72 100644
--- a/mail-filter/rspamd/rspamd-3.3.ebuild
+++ b/mail-filter/rspamd/rspamd-3.3.ebuild
@@ -70,6 +70,7 @@ PATCHES=(
"${FILESDIR}/rspamd-3.0-cmake-lua-version.patch"
"${FILESDIR}/rspamd-3.2-unbundle-lua.patch"
"${FILESDIR}/rspamd-2.5-unbundle-snowball.patch"
+ "${FILESDIR}/rspamd-3.3-remove-test-case.patch"
)
src_prepare() {