commit:     1f22873c9fe5531cd633388d860f8a66cbe457d5
Author:     Petr Vaněk <arkamar <AT> atlas <DOT> cz>
AuthorDate: Thu Feb 23 16:56:18 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Feb 28 14:34:44 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f22873c

dev-libs/hyperscan: add warning message for rspamd users

Different version of hyperscan causes runtime failures in
mail-filter/rspamd.  Workaround is to remove /var/lib/rspamd/*.hs*
files. Let's warn users who might be affected because they have rspamd
installed.

Upstream-issue: https://github.com/rspamd/rspamd/issues/4409
Reported-by: Jakub Gajdoš <jakub <AT> gdos.sk>
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
Closes: https://github.com/gentoo/gentoo/pull/29750
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-libs/hyperscan/hyperscan-5.4.0.ebuild | 8 ++++++++
 dev-libs/hyperscan/hyperscan-5.4.1.ebuild | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git a/dev-libs/hyperscan/hyperscan-5.4.0.ebuild 
b/dev-libs/hyperscan/hyperscan-5.4.0.ebuild
index 34d42c4677bb..55f108b37fa3 100644
--- a/dev-libs/hyperscan/hyperscan-5.4.0.ebuild
+++ b/dev-libs/hyperscan/hyperscan-5.4.0.ebuild
@@ -55,3 +55,11 @@ src_configure() {
 src_test() {
        "${BUILD_DIR}"/bin/unit-hyperscan || die
 }
+
+pkg_postinst() {
+       if has_version 'mail-filter/rspamd'; then
+               elog "There is known issue with mail-filter/rspamd when 
hyperscan version changes."
+               elog "Known workaround is to remove hyperscan databases 
${EROOT}/var/lib/rspamd/*.hs*"
+               elog "See https://github.com/rspamd/rspamd/issues/4409 for more 
information."
+       fi
+}

diff --git a/dev-libs/hyperscan/hyperscan-5.4.1.ebuild 
b/dev-libs/hyperscan/hyperscan-5.4.1.ebuild
index 4377ae025213..2984a1ad61f2 100644
--- a/dev-libs/hyperscan/hyperscan-5.4.1.ebuild
+++ b/dev-libs/hyperscan/hyperscan-5.4.1.ebuild
@@ -55,3 +55,11 @@ src_configure() {
 src_test() {
        "${BUILD_DIR}"/bin/unit-hyperscan || die
 }
+
+pkg_postinst() {
+       if has_version 'mail-filter/rspamd'; then
+               elog "There is known issue with mail-filter/rspamd when 
hyperscan version changes."
+               elog "Known workaround is to remove hyperscan databases 
${EROOT}/var/lib/rspamd/*.hs*"
+               elog "See https://github.com/rspamd/rspamd/issues/4409 for more 
information."
+       fi
+}

Reply via email to