From d8019a4a12ab3f015ca2fe4f49ef6f8fd581a1a4 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 15 Apr 2023 10:23:01 +0100 Subject: media-sound/snapcast: fix build w/ gcc 13 Closes: https://bugs.gentoo.org/894742 Signed-off-by: Sam James --- .../snapcast/files/snapcast-0.27.0-gcc13.patch | 26 ++++++++++++++++++++++ media-sound/snapcast/snapcast-0.27.0.ebuild | 4 ++++ 2 files changed, 30 insertions(+) create mode 100644 media-sound/snapcast/files/snapcast-0.27.0-gcc13.patch (limited to 'media-sound/snapcast') 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 +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 + #include + + +-- +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) -- cgit v1.2.3-65-gdbad