commit:     d8019a4a12ab3f015ca2fe4f49ef6f8fd581a1a4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 15 09:23:01 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 15 09:32:29 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8019a4a

media-sound/snapcast: fix build w/ gcc 13

Closes: https://bugs.gentoo.org/894742
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../snapcast/files/snapcast-0.27.0-gcc13.patch     | 26 ++++++++++++++++++++++
 media-sound/snapcast/snapcast-0.27.0.ebuild        |  4 ++++
 2 files changed, 30 insertions(+)

diff --git a/media-sound/snapcast/files/snapcast-0.27.0-gcc13.patch 
b/media-sound/snapcast/files/snapcast-0.27.0-gcc13.patch
new file mode 100644
index 000000000000..5378874e6dd3
--- /dev/null
+++ b/media-sound/snapcast/files/snapcast-0.27.0-gcc13.patch
@@ -0,0 +1,26 @@
+https://github.com/badaix/snapcast/pull/1124
+
+From 73c75ccb8eb20aa1514e8c86deb859e70bc63290 Mon Sep 17 00:00:00 2001
+From: Sam James <[email protected]>
+Date: Sat, 15 Apr 2023 10:20:47 +0100
+Subject: [PATCH] Fix build with GCC 13
+
+GCC 13 (as usual for new compiler releases) shuffles around some internal 
includes so some
+are no longer transitively included.
+
+See https://gnu.org/software/gcc/gcc-13/porting_to.html.
+
+Bug: https://bugs.gentoo.org/894742
+--- a/common/sample_format.hpp
++++ b/common/sample_format.hpp
+@@ -19,6 +19,7 @@
+ #ifndef SAMPLE_FORMAT_H
+ #define SAMPLE_FORMAT_H
+ 
++#include <cstdint>
+ #include <string>
+ 
+ 
+-- 
+2.40.0
+

diff --git a/media-sound/snapcast/snapcast-0.27.0.ebuild 
b/media-sound/snapcast/snapcast-0.27.0.ebuild
index d004bb179589..80e1997b38e9 100644
--- a/media-sound/snapcast/snapcast-0.27.0.ebuild
+++ b/media-sound/snapcast/snapcast-0.27.0.ebuild
@@ -37,6 +37,10 @@ DEPEND="
        >=dev-cpp/popl-1.2.0
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.27.0-gcc13.patch
+)
+
 src_configure() {
        local mycmakeargs=(
                -DBUILD_CLIENT=$(usex client)

Reply via email to