diff options
author | Sam James <sam@gentoo.org> | 2023-01-26 07:21:40 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-01-26 07:21:40 +0000 |
commit | 8bf21588a1ff873679440c9b751aedec9ae783fa (patch) | |
tree | 9d9aeaff9d18a93da4182effec33319858e6c644 /mail-filter | |
parent | media-libs/harfbuzz: drop obsolete c++14 force (diff) | |
download | gentoo-8bf21588a1ff873679440c9b751aedec9ae783fa.tar.gz gentoo-8bf21588a1ff873679440c9b751aedec9ae783fa.tar.bz2 gentoo-8bf21588a1ff873679440c9b751aedec9ae783fa.zip |
mail-filter/rspamd: fix build w/ gcc 13
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/rspamd/files/rspamd-3.4-gcc-13.patch | 30 | ||||
-rw-r--r-- | mail-filter/rspamd/rspamd-3.4-r2.ebuild | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/mail-filter/rspamd/files/rspamd-3.4-gcc-13.patch b/mail-filter/rspamd/files/rspamd-3.4-gcc-13.patch new file mode 100644 index 000000000000..f660b353fec7 --- /dev/null +++ b/mail-filter/rspamd/files/rspamd-3.4-gcc-13.patch @@ -0,0 +1,30 @@ +https://github.com/rspamd/rspamd/commit/0a916c632e18e6686e1a2256d5ef2fe1a1cc239f + +From 0a916c632e18e6686e1a2256d5ef2fe1a1cc239f Mon Sep 17 00:00:00 2001 +From: Heiko Becker <heirecka@exherbo.org> +Date: Wed, 18 Jan 2023 23:54:24 +0100 +Subject: [PATCH] Fix build with gcc 13 by including <cstdint> + +Like other versions before, gcc 13 moved some includes around and as a +result <cstdint> is no longer transitively included. Explicitly include +it for uint8_t. +--- a/src/libserver/css/css_tokeniser.hxx ++++ b/src/libserver/css/css_tokeniser.hxx +@@ -24,6 +24,7 @@ + #include <variant> + #include <list> + #include <functional> ++#include <cstdint> + #include "mem_pool.h" + + namespace rspamd::css { +--- a/src/libserver/html/html_tag.hxx ++++ b/src/libserver/html/html_tag.hxx +@@ -23,6 +23,7 @@ + #include <variant> + #include <vector> + #include <optional> ++#include <cstdint> + + #include "html_tags.h" + diff --git a/mail-filter/rspamd/rspamd-3.4-r2.ebuild b/mail-filter/rspamd/rspamd-3.4-r2.ebuild index 67c7e30c3e00..0a63b92b87b8 100644 --- a/mail-filter/rspamd/rspamd-3.4-r2.ebuild +++ b/mail-filter/rspamd/rspamd-3.4-r2.ebuild @@ -73,6 +73,7 @@ PATCHES=( "${FILESDIR}/${PN}-2.5-unbundle-snowball.patch" "${FILESDIR}/${PN}-3.3-remove-test-case.patch" "${FILESDIR}/${PN}-3.4-hyperscan-page-alignment.patch" + "${FILESDIR}/${P}-gcc-13.patch" ) src_prepare() { |