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@gdos.sk>
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Closes: https://github.com/gentoo/gentoo/pull/29750
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
Petr Vaněk
2023-02-23 17:56:18 +01:00
committed by Joonas Niilola
parent 079413741d
commit 1f22873c9f
2 changed files with 16 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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
}