commit: b022bb84a1fa213ed074ae78e01717683305ec75 Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz> AuthorDate: Sat Nov 5 19:27:38 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Nov 6 06:16:51 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b022bb84
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 <AT> atlas.cz> Signed-off-by: Sam James <sam <AT> gentoo.org> .../rspamd/files/rspamd-3.3-remove-test-case.patch | 20 ++++++++++++++++++++ mail-filter/rspamd/rspamd-3.3.ebuild | 1 + 2 files changed, 21 insertions(+) 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() {
