summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@atlas.cz>2020-08-31 14:39:30 +0200
committerJoonas Niilola <juippis@gentoo.org>2020-10-02 10:21:44 +0300
commit560a9449d85a8f3e68c2b8bb3c9379d288bde3fd (patch)
tree9db415bb2777ab51455d620dd392214a5d3ca2be /mail-filter/rspamd
parentmail-filter/rspamd: clean old and buggy versions (diff)
downloadgentoo-560a9449d85a8f3e68c2b8bb3c9379d288bde3fd.tar.gz
gentoo-560a9449d85a8f3e68c2b8bb3c9379d288bde3fd.tar.bz2
gentoo-560a9449d85a8f3e68c2b8bb3c9379d288bde3fd.zip
mail-filter/rspamd: Fix gcc10 compilation issue
Closes: https://bugs.gentoo.org/738174 Package-Manager: Portage-3.0.4, Repoman-2.3.23 Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-filter/rspamd')
-rw-r--r--mail-filter/rspamd/files/rspamd-2.5-replxx-gcc10.patch12
-rw-r--r--mail-filter/rspamd/rspamd-2.5.ebuild1
2 files changed, 13 insertions, 0 deletions
diff --git a/mail-filter/rspamd/files/rspamd-2.5-replxx-gcc10.patch b/mail-filter/rspamd/files/rspamd-2.5-replxx-gcc10.patch
new file mode 100644
index 000000000000..81d7f3de2958
--- /dev/null
+++ b/mail-filter/rspamd/files/rspamd-2.5-replxx-gcc10.patch
@@ -0,0 +1,12 @@
+diff --git a/contrib/replxx/src/io.cxx b/contrib/replxx/src/io.cxx
+index a09886701..8df176d1c 100644
+--- a/contrib/replxx/src/io.cxx
++++ b/contrib/replxx/src/io.cxx
+@@ -3,6 +3,7 @@
+ #include <cstdlib>
+ #include <cstring>
+ #include <array>
++#include <stdexcept>
+
+ #ifdef _WIN32
+
diff --git a/mail-filter/rspamd/rspamd-2.5.ebuild b/mail-filter/rspamd/rspamd-2.5.ebuild
index b5d45580a5de..a533869c5122 100644
--- a/mail-filter/rspamd/rspamd-2.5.ebuild
+++ b/mail-filter/rspamd/rspamd-2.5.ebuild
@@ -54,6 +54,7 @@ BDEPEND="
"
PATCHES=(
+ "${FILESDIR}/rspamd-2.5-replxx-gcc10.patch"
"${FILESDIR}/rspamd-2.5-unbundle-lua.patch"
"${FILESDIR}/rspamd-2.5-unbundle-zstd.patch"
"${FILESDIR}/rspamd-2.5-unbundle-snowball.patch"