1 |
commit: 87e3400916e51d3bcf26103ec35ad49d4cd867c3 |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Thu Apr 29 11:01:13 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 29 11:46:05 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87e34009 |
7 |
|
8 |
media-sound/snapcast: Fix compilation with gcc-11 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/786303 |
11 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
|
14 |
media-sound/snapcast/files/snapcast-0.20.0-gcc-11.patch | 11 +++++++++++ |
15 |
media-sound/snapcast/snapcast-0.20.0.ebuild | 4 +++- |
16 |
2 files changed, 14 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/media-sound/snapcast/files/snapcast-0.20.0-gcc-11.patch b/media-sound/snapcast/files/snapcast-0.20.0-gcc-11.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..7ae562aaef0 |
21 |
--- /dev/null |
22 |
+++ b/media-sound/snapcast/files/snapcast-0.20.0-gcc-11.patch |
23 |
@@ -0,0 +1,11 @@ |
24 |
+https://bugs.gentoo.org/786303 |
25 |
+--- a/common/message/message.hpp |
26 |
++++ b/common/message/message.hpp |
27 |
+@@ -29,6 +29,7 @@ |
28 |
+ #include <sys/time.h> |
29 |
+ #endif |
30 |
+ #include <vector> |
31 |
++#include <memory> |
32 |
+ |
33 |
+ /* |
34 |
+ template<typename CharT, typename TraitsT = std::char_traits<CharT> > |
35 |
|
36 |
diff --git a/media-sound/snapcast/snapcast-0.20.0.ebuild b/media-sound/snapcast/snapcast-0.20.0.ebuild |
37 |
index 6228cd7ec66..8a3f6d75f94 100644 |
38 |
--- a/media-sound/snapcast/snapcast-0.20.0.ebuild |
39 |
+++ b/media-sound/snapcast/snapcast-0.20.0.ebuild |
40 |
@@ -1,4 +1,4 @@ |
41 |
-# Copyright 1999-2020 Gentoo Authors |
42 |
+# Copyright 1999-2021 Gentoo Authors |
43 |
# Distributed under the terms of the GNU General Public License v2 |
44 |
|
45 |
EAPI=7 |
46 |
@@ -41,6 +41,8 @@ DEPEND="${RDEPEND} |
47 |
>=dev-cpp/asio-1.12.1 |
48 |
>=dev-cpp/popl-1.2.0" |
49 |
|
50 |
+PATCHES=( "${FILESDIR}"/${P}-gcc-11.patch ) |
51 |
+ |
52 |
src_configure() { |
53 |
local mycmakeargs=( |
54 |
-DBUILD_CLIENT=$(usex client) |