Package: rspamd
Version: 2.5-2
Severity: serious
Tags: patch
Justification: ftbfs
User: [email protected]
Usertags: origin-ubuntu groovy ubuntu-patch

Dear maintainers,

In Ubuntu, we've found that rspamd fails to build from source with the
current toolchain due to a missing C++ include file.  The attached patch
fixes the build failure in unstable.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
[email protected]                                     [email protected]
diff -Nru rspamd-2.5/debian/patches/gcc10-ftbfs.patch 
rspamd-2.5/debian/patches/gcc10-ftbfs.patch
--- rspamd-2.5/debian/patches/gcc10-ftbfs.patch 1969-12-31 16:00:00.000000000 
-0800
+++ rspamd-2.5/debian/patches/gcc10-ftbfs.patch 2020-07-28 16:51:48.000000000 
-0700
@@ -0,0 +1,16 @@
+Description: fix ftbfs with gcc 10 due to missing C++ header include
+Author: Steve Langasek <[email protected]>
+Last-Update: 2020-07-28
+
+Index: rspamd-2.5/contrib/replxx/src/io.cxx
+===================================================================
+--- rspamd-2.5.orig/contrib/replxx/src/io.cxx
++++ rspamd-2.5/contrib/replxx/src/io.cxx
+@@ -3,6 +3,7 @@
+ #include <cstdlib>
+ #include <cstring>
+ #include <array>
++#include <stdexcept>
+ 
+ #ifdef _WIN32
+ 
diff -Nru rspamd-2.5/debian/patches/series rspamd-2.5/debian/patches/series
--- rspamd-2.5/debian/patches/series    2020-05-01 07:40:43.000000000 -0700
+++ rspamd-2.5/debian/patches/series    2020-07-28 16:49:55.000000000 -0700
@@ -3,3 +3,4 @@
 0004-drop-js-scripts-packaged-by-Debian.patch
 0006-do-not-install-fonts-packaged-by-Debian.patch
 0007-license-problem-convert-utf-code.patch
+gcc10-ftbfs.patch

Reply via email to