mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 07:33:19 -04:00
dev-libs/mtxclient: Fix GCC 10 compile error.
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
22
dev-libs/mtxclient/files/0.3.0_add_missing_header.patch
Normal file
22
dev-libs/mtxclient/files/0.3.0_add_missing_header.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
From 3692a1dce868cfde29547757b6a8e91a05761b12 Mon Sep 17 00:00:00 2001
|
||||
From: Nicolas Werner <nicolas.werner@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 {
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user