commit:     87e3400916e51d3bcf26103ec35ad49d4cd867c3
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Thu Apr 29 11:01:13 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Apr 29 11:46:05 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87e34009

media-sound/snapcast: Fix compilation with gcc-11

Closes: https://bugs.gentoo.org/786303
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 media-sound/snapcast/files/snapcast-0.20.0-gcc-11.patch | 11 +++++++++++
 media-sound/snapcast/snapcast-0.20.0.ebuild             |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)

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
new file mode 100644
index 00000000000..7ae562aaef0
--- /dev/null
+++ b/media-sound/snapcast/files/snapcast-0.20.0-gcc-11.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/786303
+--- a/common/message/message.hpp
++++ b/common/message/message.hpp
+@@ -29,6 +29,7 @@
+ #include <sys/time.h>
+ #endif
+ #include <vector>
++#include <memory>
+ 
+ /*
+ template<typename CharT, typename TraitsT = std::char_traits<CharT> >

diff --git a/media-sound/snapcast/snapcast-0.20.0.ebuild 
b/media-sound/snapcast/snapcast-0.20.0.ebuild
index 6228cd7ec66..8a3f6d75f94 100644
--- a/media-sound/snapcast/snapcast-0.20.0.ebuild
+++ b/media-sound/snapcast/snapcast-0.20.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -41,6 +41,8 @@ DEPEND="${RDEPEND}
        >=dev-cpp/asio-1.12.1
        >=dev-cpp/popl-1.2.0"
 
+PATCHES=( "${FILESDIR}"/${P}-gcc-11.patch )
+
 src_configure() {
        local mycmakeargs=(
                -DBUILD_CLIENT=$(usex client)

Reply via email to