From 1f22873c9fe5531cd633388d860f8a66cbe457d5 Mon Sep 17 00:00:00 2001 From: Petr Vaněk Date: Thu, 23 Feb 2023 17:56:18 +0100 Subject: dev-libs/hyperscan: add warning message for rspamd users MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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š Signed-off-by: Petr Vaněk Closes: https://github.com/gentoo/gentoo/pull/29750 Signed-off-by: Joonas Niilola --- 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 +} -- cgit v1.2.3-65-gdbad