summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-04-15 10:23:01 +0100
committerSam James <sam@gentoo.org>2023-04-15 10:32:29 +0100
commitd8019a4a12ab3f015ca2fe4f49ef6f8fd581a1a4 (patch)
tree5ea648f72b3af8d6a6b5964b52985abb86a6b851 /media-sound/snapcast
parentdev-util/edb-debugger: fix build w/ gcc 13 (diff)
downloadgentoo-d8019a4a12ab3f015ca2fe4f49ef6f8fd581a1a4.tar.gz
gentoo-d8019a4a12ab3f015ca2fe4f49ef6f8fd581a1a4.tar.bz2
gentoo-d8019a4a12ab3f015ca2fe4f49ef6f8fd581a1a4.zip
media-sound/snapcast: fix build w/ gcc 13
Closes: https://bugs.gentoo.org/894742 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-sound/snapcast')
-rw-r--r--media-sound/snapcast/files/snapcast-0.27.0-gcc13.patch26
-rw-r--r--media-sound/snapcast/snapcast-0.27.0.ebuild4
2 files changed, 30 insertions, 0 deletions
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 <sam@gentoo.org>
+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)