1 |
commit: 1f22873c9fe5531cd633388d860f8a66cbe457d5 |
2 |
Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz> |
3 |
AuthorDate: Thu Feb 23 16:56:18 2023 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 28 14:34:44 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f22873c |
7 |
|
8 |
dev-libs/hyperscan: add warning message for rspamd users |
9 |
|
10 |
Different version of hyperscan causes runtime failures in |
11 |
mail-filter/rspamd. Workaround is to remove /var/lib/rspamd/*.hs* |
12 |
files. Let's warn users who might be affected because they have rspamd |
13 |
installed. |
14 |
|
15 |
Upstream-issue: https://github.com/rspamd/rspamd/issues/4409 |
16 |
Reported-by: Jakub Gajdoš <jakub <AT> gdos.sk> |
17 |
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz> |
18 |
Closes: https://github.com/gentoo/gentoo/pull/29750 |
19 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
20 |
|
21 |
dev-libs/hyperscan/hyperscan-5.4.0.ebuild | 8 ++++++++ |
22 |
dev-libs/hyperscan/hyperscan-5.4.1.ebuild | 8 ++++++++ |
23 |
2 files changed, 16 insertions(+) |
24 |
|
25 |
diff --git a/dev-libs/hyperscan/hyperscan-5.4.0.ebuild b/dev-libs/hyperscan/hyperscan-5.4.0.ebuild |
26 |
index 34d42c4677bb..55f108b37fa3 100644 |
27 |
--- a/dev-libs/hyperscan/hyperscan-5.4.0.ebuild |
28 |
+++ b/dev-libs/hyperscan/hyperscan-5.4.0.ebuild |
29 |
@@ -55,3 +55,11 @@ src_configure() { |
30 |
src_test() { |
31 |
"${BUILD_DIR}"/bin/unit-hyperscan || die |
32 |
} |
33 |
+ |
34 |
+pkg_postinst() { |
35 |
+ if has_version 'mail-filter/rspamd'; then |
36 |
+ elog "There is known issue with mail-filter/rspamd when hyperscan version changes." |
37 |
+ elog "Known workaround is to remove hyperscan databases ${EROOT}/var/lib/rspamd/*.hs*" |
38 |
+ elog "See https://github.com/rspamd/rspamd/issues/4409 for more information." |
39 |
+ fi |
40 |
+} |
41 |
|
42 |
diff --git a/dev-libs/hyperscan/hyperscan-5.4.1.ebuild b/dev-libs/hyperscan/hyperscan-5.4.1.ebuild |
43 |
index 4377ae025213..2984a1ad61f2 100644 |
44 |
--- a/dev-libs/hyperscan/hyperscan-5.4.1.ebuild |
45 |
+++ b/dev-libs/hyperscan/hyperscan-5.4.1.ebuild |
46 |
@@ -55,3 +55,11 @@ src_configure() { |
47 |
src_test() { |
48 |
"${BUILD_DIR}"/bin/unit-hyperscan || die |
49 |
} |
50 |
+ |
51 |
+pkg_postinst() { |
52 |
+ if has_version 'mail-filter/rspamd'; then |
53 |
+ elog "There is known issue with mail-filter/rspamd when hyperscan version changes." |
54 |
+ elog "Known workaround is to remove hyperscan databases ${EROOT}/var/lib/rspamd/*.hs*" |
55 |
+ elog "See https://github.com/rspamd/rspamd/issues/4409 for more information." |
56 |
+ fi |
57 |
+} |