commit:     87ed97b2d47402cbf0cd457d975dd9a76bb5ee9e
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Tue May 26 03:15:23 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Tue May 26 03:17:46 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=87ed97b2

dev-libs/mtxclient: Fix GCC 10 compile error.

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>

 .../mtxclient/files/0.3.0_add_missing_header.patch | 22 ++++++++++++++++++++++
 dev-libs/mtxclient/mtxclient-0.3.0.ebuild          |  3 ++-
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/dev-libs/mtxclient/files/0.3.0_add_missing_header.patch 
b/dev-libs/mtxclient/files/0.3.0_add_missing_header.patch
new file mode 100644
index 0000000..fd8769d
--- /dev/null
+++ b/dev-libs/mtxclient/files/0.3.0_add_missing_header.patch
@@ -0,0 +1,22 @@
+From 3692a1dce868cfde29547757b6a8e91a05761b12 Mon Sep 17 00:00:00 2001
+From: Nicolas Werner <nicolas.wer...@hotmail.de>
+Date: Sat, 9 May 2020 00:33:29 +0200
+Subject: [PATCH] gcc 10 fixes
+
+---
+ include/mtx/identifiers.hpp | 2 ++
+ tests/messages.cpp          | 2 +-
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/include/mtx/identifiers.hpp b/include/mtx/identifiers.hpp
+index a18b26e9..077099c4 100644
+--- a/include/mtx/identifiers.hpp
++++ b/include/mtx/identifiers.hpp
+@@ -6,4 +6,6 @@
+ #include <nlohmann/json.hpp>
+ #endif
+
++#include <stdexcept>
++
+ namespace mtx {
+ namespace identifiers {

diff --git a/dev-libs/mtxclient/mtxclient-0.3.0.ebuild 
b/dev-libs/mtxclient/mtxclient-0.3.0.ebuild
index 8690faf..aa3beef 100644
--- a/dev-libs/mtxclient/mtxclient-0.3.0.ebuild
+++ b/dev-libs/mtxclient/mtxclient-0.3.0.ebuild
@@ -31,6 +31,7 @@ DEPEND="
 PATCHES=(
        "${FILESDIR}/0.3.0_remove_network_tests.patch"
        "${FILESDIR}/0.3.0_remove_failing_tests.patch"
+       "${FILESDIR}/0.3.0_add_missing_header.patch"
 )
 
 src_configure() {
@@ -40,7 +41,7 @@ src_configure() {
        )
 
        if use test; then
-               # Upstream uses a toolchain file to set these.
+               # Upstream uses a toolchain file to set these, fixed in >0.3.0.
                mycmakeargs+=(
                        -DCMAKE_CXX_STANDARD=17
                        -DCMAKE_CXX_STANDARD_REQUIRED=ON

Reply via email to