public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-sound/snapcast/files/, media-sound/snapcast/
@ 2021-04-29 11:46 Michał Górny
  0 siblings, 0 replies; 7+ messages in thread
From: Michał Górny @ 2021-04-29 11:46 UTC (permalink / raw
  To: gentoo-commits

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)


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-sound/snapcast/files/, media-sound/snapcast/
@ 2022-12-29 23:25 Sam James
  0 siblings, 0 replies; 7+ messages in thread
From: Sam James @ 2022-12-29 23:25 UTC (permalink / raw
  To: gentoo-commits

commit:     08c2a7b554707f11b129914ff64c78256a782ffd
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 29 23:23:18 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 29 23:23:18 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08c2a7b5

media-sound/snapcast: fix build w/ boost-1.81

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

 .../files/snapcast-0.26.0-boost-1.81.patch         | 51 +++++++++++++++
 media-sound/snapcast/snapcast-0.26.0-r2.ebuild     | 73 ++++++++++++++++++++++
 2 files changed, 124 insertions(+)

diff --git a/media-sound/snapcast/files/snapcast-0.26.0-boost-1.81.patch b/media-sound/snapcast/files/snapcast-0.26.0-boost-1.81.patch
new file mode 100644
index 000000000000..d9d691060b42
--- /dev/null
+++ b/media-sound/snapcast/files/snapcast-0.26.0-boost-1.81.patch
@@ -0,0 +1,51 @@
+https://bugs.gentoo.org/886585
+https://github.com/badaix/snapcast/commit/853c3f622ff2262b56681ee04dd20b4266c72493
+https://github.com/badaix/snapcast/issues/1082
+
+From 853c3f622ff2262b56681ee04dd20b4266c72493 Mon Sep 17 00:00:00 2001
+From: Rudi Heitbaum <rudi@heitbaum.com>
+Date: Wed, 21 Dec 2022 11:31:29 +0000
+Subject: [PATCH] server/control_session_http: update for boost 1.81.0
+
+Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
+--- a/server/control_session_http.cpp
++++ b/server/control_session_http.cpp
+@@ -127,8 +127,8 @@ boost::beast::string_view mime_type(boost::beast::string_view path)
+ std::string path_cat(boost::beast::string_view base, boost::beast::string_view path)
+ {
+     if (base.empty())
+-        return path.to_string();
+-    std::string result = base.to_string();
++        return static_cast<std::string>(path);
++    std::string result = static_cast<std::string>(base);
+     char constexpr path_separator = '/';
+     if (result.back() == path_separator)
+         result.resize(result.size() - 1);
+@@ -171,7 +171,7 @@ void ControlSessionHttp::handle_request(http::request<Body, http::basic_fields<A
+         res.set(http::field::server, HTTP_SERVER_NAME);
+         res.set(http::field::content_type, "text/html");
+         res.keep_alive(req.keep_alive());
+-        res.body() = why.to_string();
++        res.body() = static_cast<std::string>(why);
+         res.prepare_payload();
+         return res;
+     };
+@@ -182,7 +182,7 @@ void ControlSessionHttp::handle_request(http::request<Body, http::basic_fields<A
+         res.set(http::field::server, HTTP_SERVER_NAME);
+         res.set(http::field::content_type, "text/html");
+         res.keep_alive(req.keep_alive());
+-        res.body() = "The resource '" + target.to_string() + "' was not found.";
++        res.body() = "The resource '" + static_cast<std::string>(target) + "' was not found.";
+         res.prepare_payload();
+         return res;
+     };
+@@ -204,7 +204,7 @@ void ControlSessionHttp::handle_request(http::request<Body, http::basic_fields<A
+         res.set(http::field::server, HTTP_SERVER_NAME);
+         res.set(http::field::content_type, "text/html");
+         res.keep_alive(req.keep_alive());
+-        res.body() = "An error occurred: '" + what.to_string() + "'";
++        res.body() = "An error occurred: '" + static_cast<std::string>(what) + "'";
+         res.prepare_payload();
+         return res;
+     };
+

diff --git a/media-sound/snapcast/snapcast-0.26.0-r2.ebuild b/media-sound/snapcast/snapcast-0.26.0-r2.ebuild
new file mode 100644
index 000000000000..cd5cede0e1b4
--- /dev/null
+++ b/media-sound/snapcast/snapcast-0.26.0-r2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Synchronous multi-room audio player"
+HOMEPAGE="https://github.com/badaix/snapcast"
+SRC_URI="https://github.com/badaix/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~riscv ~x86"
+IUSE="+client +expat +flac +opus +server tremor +vorbis +zeroconf"
+REQUIRED_USE="|| ( server client )"
+
+RDEPEND="
+	dev-libs/boost:=
+	media-libs/alsa-lib
+	client? ( acct-user/snapclient )
+	expat? ( dev-libs/expat )
+	flac? ( media-libs/flac:= )
+	opus? ( media-libs/opus )
+	server? (
+		acct-group/snapserver
+		acct-user/snapserver
+	)
+	tremor? ( media-libs/tremor )
+	vorbis? ( media-libs/libvorbis )
+	zeroconf? ( net-dns/avahi[dbus] )
+"
+DEPEND="
+	${RDEPEND}
+	>=dev-cpp/aixlog-1.2.1
+	>=dev-cpp/asio-1.12.1
+	>=dev-cpp/popl-1.2.0
+"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-boost-1.81.patch
+)
+
+src_configure() {
+	local mycmakeargs=(
+		-DBUILD_CLIENT=$(usex client)
+		-DBUILD_WITH_EXPAT=$(usex expat)
+		-DBUILD_WITH_FLAC=$(usex flac)
+		-DBUILD_WITH_OPUS=$(usex opus)
+		-DBUILD_SERVER=$(usex server)
+		-DBUILD_STATIC_LIBS=no
+		-DBUILD_TESTS=no
+		-DBUILD_WITH_TREMOR=$(usex tremor)
+		-DBUILD_WITH_VORBIS=$(usex vorbis)
+		-DBUILD_WITH_AVAHI=$(usex zeroconf)
+		-DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
+	)
+
+	cmake_src_configure
+}
+
+src_install() {
+	cmake_src_install
+
+	for bin in server client ; do
+		if use ${bin} ; then
+			doman "${bin}/snap${bin}.1"
+
+			newconfd "${FILESDIR}/snap${bin}.confd" "snap${bin}"
+			newinitd "${FILESDIR}/snap${bin}.initd" "snap${bin}"
+		fi
+	done
+}


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-sound/snapcast/files/, media-sound/snapcast/
@ 2023-04-03  7:33 Jakov Smolić
  0 siblings, 0 replies; 7+ messages in thread
From: Jakov Smolić @ 2023-04-03  7:33 UTC (permalink / raw
  To: gentoo-commits

commit:     646dce408a86412bc43f60aab1f1c6bed2253a04
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  3 07:30:40 2023 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Mon Apr  3 07:30:40 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=646dce40

media-sound/snapcast: drop 0.26.0-r2

Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 media-sound/snapcast/Manifest                      |  1 -
 .../files/snapcast-0.26.0-boost-1.81.patch         | 51 ---------------
 media-sound/snapcast/snapcast-0.26.0-r2.ebuild     | 73 ----------------------
 3 files changed, 125 deletions(-)

diff --git a/media-sound/snapcast/Manifest b/media-sound/snapcast/Manifest
index 4a3bb3e7997b..d45a494a4445 100644
--- a/media-sound/snapcast/Manifest
+++ b/media-sound/snapcast/Manifest
@@ -1,2 +1 @@
-DIST snapcast-0.26.0.tar.gz 1537036 BLAKE2B f6ef4393f3601c749140a9505f57515582147aacf25072d9114491aafb108c202c3631142171858d2b8f914be8105bbd9c66054c6d36d0b4a443e5b9a642cf51 SHA512 fc7885e42a11794e33314544083251ffbb91a0cf160c6d4b854c56f57ffe9f38f75c7594478c9edabfe9076959938cd8de891dd456e66202692de664a75cde71
 DIST snapcast-0.27.0.tar.gz 1566337 BLAKE2B 77183cd2496beaf6808f8c1ff030cdb1e483c86ebafd57d0c75daa2dfe31030f0dd9704db40e2c0780b85c2b346e121ccd16c1cb75dea1f80e9834d3ae100fb8 SHA512 fd86f5b0d38bf308eb9cc1f3024676471176355a8cc91ee8c8d2dfe1aa0cde99fc7636133071b50304fe66ea42dee996e0088e013be7fa703f21c5bc2a35cfdd

diff --git a/media-sound/snapcast/files/snapcast-0.26.0-boost-1.81.patch b/media-sound/snapcast/files/snapcast-0.26.0-boost-1.81.patch
deleted file mode 100644
index d9d691060b42..000000000000
--- a/media-sound/snapcast/files/snapcast-0.26.0-boost-1.81.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-https://bugs.gentoo.org/886585
-https://github.com/badaix/snapcast/commit/853c3f622ff2262b56681ee04dd20b4266c72493
-https://github.com/badaix/snapcast/issues/1082
-
-From 853c3f622ff2262b56681ee04dd20b4266c72493 Mon Sep 17 00:00:00 2001
-From: Rudi Heitbaum <rudi@heitbaum.com>
-Date: Wed, 21 Dec 2022 11:31:29 +0000
-Subject: [PATCH] server/control_session_http: update for boost 1.81.0
-
-Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
---- a/server/control_session_http.cpp
-+++ b/server/control_session_http.cpp
-@@ -127,8 +127,8 @@ boost::beast::string_view mime_type(boost::beast::string_view path)
- std::string path_cat(boost::beast::string_view base, boost::beast::string_view path)
- {
-     if (base.empty())
--        return path.to_string();
--    std::string result = base.to_string();
-+        return static_cast<std::string>(path);
-+    std::string result = static_cast<std::string>(base);
-     char constexpr path_separator = '/';
-     if (result.back() == path_separator)
-         result.resize(result.size() - 1);
-@@ -171,7 +171,7 @@ void ControlSessionHttp::handle_request(http::request<Body, http::basic_fields<A
-         res.set(http::field::server, HTTP_SERVER_NAME);
-         res.set(http::field::content_type, "text/html");
-         res.keep_alive(req.keep_alive());
--        res.body() = why.to_string();
-+        res.body() = static_cast<std::string>(why);
-         res.prepare_payload();
-         return res;
-     };
-@@ -182,7 +182,7 @@ void ControlSessionHttp::handle_request(http::request<Body, http::basic_fields<A
-         res.set(http::field::server, HTTP_SERVER_NAME);
-         res.set(http::field::content_type, "text/html");
-         res.keep_alive(req.keep_alive());
--        res.body() = "The resource '" + target.to_string() + "' was not found.";
-+        res.body() = "The resource '" + static_cast<std::string>(target) + "' was not found.";
-         res.prepare_payload();
-         return res;
-     };
-@@ -204,7 +204,7 @@ void ControlSessionHttp::handle_request(http::request<Body, http::basic_fields<A
-         res.set(http::field::server, HTTP_SERVER_NAME);
-         res.set(http::field::content_type, "text/html");
-         res.keep_alive(req.keep_alive());
--        res.body() = "An error occurred: '" + what.to_string() + "'";
-+        res.body() = "An error occurred: '" + static_cast<std::string>(what) + "'";
-         res.prepare_payload();
-         return res;
-     };
-

diff --git a/media-sound/snapcast/snapcast-0.26.0-r2.ebuild b/media-sound/snapcast/snapcast-0.26.0-r2.ebuild
deleted file mode 100644
index ff1b0b44e885..000000000000
--- a/media-sound/snapcast/snapcast-0.26.0-r2.ebuild
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-DESCRIPTION="Synchronous multi-room audio player"
-HOMEPAGE="https://github.com/badaix/snapcast"
-SRC_URI="https://github.com/badaix/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="amd64 ~arm ppc ppc64 ~riscv x86"
-IUSE="+client +expat +flac +opus +server tremor +vorbis +zeroconf"
-REQUIRED_USE="|| ( server client )"
-
-RDEPEND="
-	dev-libs/boost:=
-	media-libs/alsa-lib
-	client? ( acct-user/snapclient )
-	expat? ( dev-libs/expat )
-	flac? ( media-libs/flac:= )
-	opus? ( media-libs/opus )
-	server? (
-		acct-group/snapserver
-		acct-user/snapserver
-	)
-	tremor? ( media-libs/tremor )
-	vorbis? ( media-libs/libvorbis )
-	zeroconf? ( net-dns/avahi[dbus] )
-"
-DEPEND="
-	${RDEPEND}
-	>=dev-cpp/aixlog-1.2.1
-	>=dev-cpp/asio-1.12.1
-	>=dev-cpp/popl-1.2.0
-"
-
-PATCHES=(
-	"${FILESDIR}"/${P}-boost-1.81.patch
-)
-
-src_configure() {
-	local mycmakeargs=(
-		-DBUILD_CLIENT=$(usex client)
-		-DBUILD_WITH_EXPAT=$(usex expat)
-		-DBUILD_WITH_FLAC=$(usex flac)
-		-DBUILD_WITH_OPUS=$(usex opus)
-		-DBUILD_SERVER=$(usex server)
-		-DBUILD_STATIC_LIBS=no
-		-DBUILD_TESTS=no
-		-DBUILD_WITH_TREMOR=$(usex tremor)
-		-DBUILD_WITH_VORBIS=$(usex vorbis)
-		-DBUILD_WITH_AVAHI=$(usex zeroconf)
-		-DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
-	)
-
-	cmake_src_configure
-}
-
-src_install() {
-	cmake_src_install
-
-	for bin in server client ; do
-		if use ${bin} ; then
-			doman "${bin}/snap${bin}.1"
-
-			newconfd "${FILESDIR}/snap${bin}.confd" "snap${bin}"
-			newinitd "${FILESDIR}/snap${bin}.initd" "snap${bin}"
-		fi
-	done
-}


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-sound/snapcast/files/, media-sound/snapcast/
@ 2024-12-26  7:09 Sam James
  0 siblings, 0 replies; 7+ messages in thread
From: Sam James @ 2024-12-26  7:09 UTC (permalink / raw
  To: gentoo-commits

commit:     34c40880d91fb64e933819d028872048ba353ba8
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 26 07:07:34 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 26 07:08:57 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34c40880

media-sound/snapcast: add 0.29.0

* Include post-tag patches for Boost 1.87 compat
* Add USE=jack

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

 media-sound/snapcast/Manifest                      |  1 +
 ...snapcast-0.29.0-boost-1.87.0-make_address.patch | 96 ++++++++++++++++++++++
 .../files/snapcast-0.29.0-boost-1.87.0.patch       | 51 ++++++++++++
 .../files/snapcast-0.29.0-resampler-include.patch  | 25 ++++++
 media-sound/snapcast/snapcast-0.29.0.ebuild        | 77 +++++++++++++++++
 5 files changed, 250 insertions(+)

diff --git a/media-sound/snapcast/Manifest b/media-sound/snapcast/Manifest
index d45a494a4445..743fc6bffc9f 100644
--- a/media-sound/snapcast/Manifest
+++ b/media-sound/snapcast/Manifest
@@ -1 +1,2 @@
 DIST snapcast-0.27.0.tar.gz 1566337 BLAKE2B 77183cd2496beaf6808f8c1ff030cdb1e483c86ebafd57d0c75daa2dfe31030f0dd9704db40e2c0780b85c2b346e121ccd16c1cb75dea1f80e9834d3ae100fb8 SHA512 fd86f5b0d38bf308eb9cc1f3024676471176355a8cc91ee8c8d2dfe1aa0cde99fc7636133071b50304fe66ea42dee996e0088e013be7fa703f21c5bc2a35cfdd
+DIST snapcast-0.29.0.tar.gz 1202943 BLAKE2B 0fb3c4b54dfd5fb16f7a17134a03288390c6d1b06c2c93bd7b495f0ff2f650d6caffab8b369703f38ca5764038470c3066794955259d419ea7ac4eff41e177d5 SHA512 4c88c20514e81f0ec861716a81047cb441669c0c23821acd959938cf00d85c37eec28a689a3c192f78fcb21accdbd6ef4520ef3f9995ff48ff07cb33e00b6904

diff --git a/media-sound/snapcast/files/snapcast-0.29.0-boost-1.87.0-make_address.patch b/media-sound/snapcast/files/snapcast-0.29.0-boost-1.87.0-make_address.patch
new file mode 100644
index 000000000000..03190a4e20e3
--- /dev/null
+++ b/media-sound/snapcast/files/snapcast-0.29.0-boost-1.87.0-make_address.patch
@@ -0,0 +1,96 @@
+https://github.com/badaix/snapcast/commit/b2fd2bf9ef835104a813c40c190d71e3644125d7
+
+From b2fd2bf9ef835104a813c40c190d71e3644125d7 Mon Sep 17 00:00:00 2001
+From: Rudi Heitbaum <rudi@heitbaum.com>
+Date: Thu, 19 Dec 2024 02:23:11 +1100
+Subject: [PATCH] use make_address from boost as from_string is deprecated
+ (#1308)
+
+Since boost 1.87.0 boost::asio::ip::address::from_string is no longer available
+
+ref: https://github.com/boostorg/asio/commit/c0d1cfce7767599c4cf00df36f8017a1073339ae
+
+fixes:
+    ../server/control_server.cpp: In member function 'void ControlServer::start()':
+    ../server/control_server.cpp:164:111: error: 'from_string' is not a member of 'boost::asio::ip::address'
+      164 |                                                                       tcp::endpoint(boost::asio::ip::address::from_string(address), tcp_settings_.port)));
+          |                                                                                                               ^~~~~~~~~~~
+    ../server/control_server.cpp:180:112: error: 'from_string' is not a member of 'boost::asio::ip::address'
+      180 |                                                                        tcp::endpoint(boost::asio::ip::address::from_string(address), http_settings_.port)));
+          |                                                                                                                ^~~~~~~~~~~
+    ../server/streamreader/tcp_stream.cpp: In constructor 'streamreader::TcpStream::TcpStream(streamreader::PcmStream::Listener*, boost::asio::io_context&, const ServerSettings&, const streamreader::StreamUri&)':
+    ../server/streamreader/tcp_stream.cpp:67:97: error: 'from_string' is not a member of 'boost::asio::ip::address'
+       67 |         acceptor_ = make_unique<tcp::acceptor>(strand_, tcp::endpoint(boost::asio::ip::address::from_string(host_), port_));
+          |                                                                                                 ^~~~~~~~~~~
+    ../server/streamreader/tcp_stream.cpp: In member function 'virtual void streamreader::TcpStream::connect()':
+    ../server/streamreader/tcp_stream.cpp:96:75: error: 'from_string' is not a member of 'boost::asio::ip::address'
+       96 |         boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::address::from_string(host_), port_);
+          |                                                                           ^~~~~~~~~~~
+    ../server/stream_server.cpp: In member function 'void StreamServer::start()':
+    ../server/stream_server.cpp:234:103: error: 'from_string' is not a member of 'boost::asio::ip::address'
+      234 |                                                               tcp::endpoint(boost::asio::ip::address::from_string(address), settings_.stream.port)));
+          |
+---
+ server/control_server.cpp          | 4 ++--
+ server/stream_server.cpp           | 2 +-
+ server/streamreader/tcp_stream.cpp | 4 ++--
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/server/control_server.cpp b/server/control_server.cpp
+index 03b2db76..7945855b 100644
+--- a/server/control_server.cpp
++++ b/server/control_server.cpp
+@@ -161,7 +161,7 @@ void ControlServer::start()
+             {
+                 LOG(INFO, LOG_TAG) << "Creating TCP acceptor for address: " << address << ", port: " << tcp_settings_.port << "\n";
+                 acceptor_tcp_.emplace_back(make_unique<tcp::acceptor>(boost::asio::make_strand(io_context_.get_executor()),
+-                                                                      tcp::endpoint(boost::asio::ip::address::from_string(address), tcp_settings_.port)));
++                                                                      tcp::endpoint(boost::asio::ip::make_address(address), tcp_settings_.port)));
+             }
+             catch (const boost::system::system_error& e)
+             {
+@@ -177,7 +177,7 @@ void ControlServer::start()
+             {
+                 LOG(INFO, LOG_TAG) << "Creating HTTP acceptor for address: " << address << ", port: " << http_settings_.port << "\n";
+                 acceptor_http_.emplace_back(make_unique<tcp::acceptor>(boost::asio::make_strand(io_context_.get_executor()),
+-                                                                       tcp::endpoint(boost::asio::ip::address::from_string(address), http_settings_.port)));
++                                                                       tcp::endpoint(boost::asio::ip::make_address(address), http_settings_.port)));
+             }
+             catch (const boost::system::system_error& e)
+             {
+diff --git a/server/stream_server.cpp b/server/stream_server.cpp
+index 718e744f..ad2fec2c 100644
+--- a/server/stream_server.cpp
++++ b/server/stream_server.cpp
+@@ -231,7 +231,7 @@ void StreamServer::start()
+         {
+             LOG(INFO, LOG_TAG) << "Creating stream acceptor for address: " << address << ", port: " << settings_.stream.port << "\n";
+             acceptor_.emplace_back(make_unique<tcp::acceptor>(boost::asio::make_strand(io_context_.get_executor()),
+-                                                              tcp::endpoint(boost::asio::ip::address::from_string(address), settings_.stream.port)));
++                                                              tcp::endpoint(boost::asio::ip::make_address(address), settings_.stream.port)));
+         }
+         catch (const boost::system::system_error& e)
+         {
+diff --git a/server/streamreader/tcp_stream.cpp b/server/streamreader/tcp_stream.cpp
+index 1ec68d6b..ed3fd75e 100644
+--- a/server/streamreader/tcp_stream.cpp
++++ b/server/streamreader/tcp_stream.cpp
+@@ -64,7 +64,7 @@ TcpStream::TcpStream(PcmStream::Listener* pcmListener, boost::asio::io_context&
+ 
+     LOG(INFO, LOG_TAG) << "TcpStream host: " << host_ << ", port: " << port_ << ", is server: " << is_server_ << "\n";
+     if (is_server_)
+-        acceptor_ = make_unique<tcp::acceptor>(strand_, tcp::endpoint(boost::asio::ip::address::from_string(host_), port_));
++        acceptor_ = make_unique<tcp::acceptor>(strand_, tcp::endpoint(boost::asio::ip::make_address(host_), port_));
+ }
+ 
+ 
+@@ -93,7 +93,7 @@ void TcpStream::connect()
+     else
+     {
+         stream_ = make_unique<tcp::socket>(strand_);
+-        boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::address::from_string(host_), port_);
++        boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::make_address(host_), port_);
+         stream_->async_connect(endpoint,
+                                [this](const boost::system::error_code& ec)
+                                {
+

diff --git a/media-sound/snapcast/files/snapcast-0.29.0-boost-1.87.0.patch b/media-sound/snapcast/files/snapcast-0.29.0-boost-1.87.0.patch
new file mode 100644
index 000000000000..d1be4b4072db
--- /dev/null
+++ b/media-sound/snapcast/files/snapcast-0.29.0-boost-1.87.0.patch
@@ -0,0 +1,51 @@
+https://github.com/badaix/snapcast/commit/6190041e863968d76b6d16140bba90be6dff848f
+
+From 6190041e863968d76b6d16140bba90be6dff848f Mon Sep 17 00:00:00 2001
+From: badaix <johannes.pohl@badaix.de>
+Date: Thu, 19 Dec 2024 21:36:08 +0100
+Subject: [PATCH] Fix compilation with boost v1.87.0
+
+---
+ client/client_connection.cpp | 5 ++---
+ server/stream_session_ws.cpp | 2 +-
+ 2 files changed, 3 insertions(+), 4 deletions(-)
+
+diff --git a/client/client_connection.cpp b/client/client_connection.cpp
+index 53825864..6f34a018 100644
+--- a/client/client_connection.cpp
++++ b/client/client_connection.cpp
+@@ -124,10 +124,9 @@ std::string ClientConnection::getMacAddress()
+ 
+ void ClientConnection::connect(const ResultHandler& handler)
+ {
+-    tcp::resolver::query query(server_.host, cpt::to_string(server_.port), boost::asio::ip::resolver_query_base::numeric_service);
+     boost::system::error_code ec;
+     LOG(INFO, LOG_TAG) << "Resolving host IP for: " << server_.host << "\n";
+-    auto iterator = resolver_.resolve(query, ec);
++    auto iterator = resolver_.resolve(server_.host, cpt::to_string(server_.port), boost::asio::ip::resolver_query_base::numeric_service, ec);
+     if (ec)
+     {
+         LOG(ERROR, LOG_TAG) << "Failed to resolve host '" << server_.host << "', error: " << ec.message() << "\n";
+@@ -141,7 +140,7 @@ void ClientConnection::connect(const ResultHandler& handler)
+     for (const auto& iter : iterator)
+     {
+         LOG(INFO, LOG_TAG) << "Connecting to " << iter.endpoint() << "\n";
+-        socket_.connect(*iterator, ec);
++        socket_.connect(iter, ec);
+         if (!ec || (ec == boost::system::errc::interrupted))
+         {
+             // We were successful or interrupted, e.g. by sig int
+diff --git a/server/stream_session_ws.cpp b/server/stream_session_ws.cpp
+index 5f666618..117603f6 100644
+--- a/server/stream_session_ws.cpp
++++ b/server/stream_session_ws.cpp
+@@ -114,7 +114,7 @@ void StreamSessionWebsocket::on_read_ws(beast::error_code ec, std::size_t bytes_
+         return;
+     }
+ 
+-    auto* data = boost::asio::buffer_cast<char*>(buffer_.data());
++    auto* data = static_cast<char*>(buffer_.data().data());
+     baseMessage_.deserialize(data);
+     LOG(DEBUG, LOG_TAG) << "getNextMessage: " << baseMessage_.type << ", size: " << baseMessage_.size << ", id: " << baseMessage_.id
+                         << ", refers: " << baseMessage_.refersTo << "\n";
+

diff --git a/media-sound/snapcast/files/snapcast-0.29.0-resampler-include.patch b/media-sound/snapcast/files/snapcast-0.29.0-resampler-include.patch
new file mode 100644
index 000000000000..296a5d61db86
--- /dev/null
+++ b/media-sound/snapcast/files/snapcast-0.29.0-resampler-include.patch
@@ -0,0 +1,25 @@
+https://github.com/badaix/snapcast/commit/f6ce4f3fbb3c797f5d92578d7bc8df547ad4cd64
+
+From f6ce4f3fbb3c797f5d92578d7bc8df547ad4cd64 Mon Sep 17 00:00:00 2001
+From: Johannes Pohl <johannes.pohl@badaix.de>
+Date: Wed, 11 Dec 2024 15:50:11 +0100
+Subject: [PATCH] Add missing include in resampler.cpp
+
+This fixes issue #1295
+---
+ common/resampler.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/common/resampler.cpp b/common/resampler.cpp
+index 1d5d698a..9548c957 100644
+--- a/common/resampler.cpp
++++ b/common/resampler.cpp
+@@ -21,6 +21,7 @@
+ 
+ // local headers
+ #include "common/aixlog.hpp"
++#include "common/snap_exception.hpp"
+ 
+ // standard headers
+ #include <cmath>
+

diff --git a/media-sound/snapcast/snapcast-0.29.0.ebuild b/media-sound/snapcast/snapcast-0.29.0.ebuild
new file mode 100644
index 000000000000..cb0c73fe0d29
--- /dev/null
+++ b/media-sound/snapcast/snapcast-0.29.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Synchronous multi-room audio player"
+HOMEPAGE="https://github.com/badaix/snapcast"
+SRC_URI="https://github.com/badaix/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~riscv ~x86"
+IUSE="+client +expat +flac jack +opus +server tremor +vorbis +zeroconf"
+REQUIRED_USE="|| ( server client )"
+
+RDEPEND="
+	dev-libs/boost:=
+	media-libs/alsa-lib
+	client? ( acct-user/snapclient )
+	expat? ( dev-libs/expat )
+	flac? ( media-libs/flac:= )
+	jack? ( virtual/jack )
+	opus? ( media-libs/opus )
+	server? (
+		acct-group/snapserver
+		acct-user/snapserver
+	)
+	tremor? ( media-libs/tremor )
+	vorbis? ( media-libs/libvorbis )
+	zeroconf? ( net-dns/avahi[dbus] )
+"
+DEPEND="
+	${RDEPEND}
+	>=dev-cpp/aixlog-1.2.1
+	>=dev-cpp/asio-1.12.1
+	>=dev-cpp/popl-1.2.0
+"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-resampler-include.patch
+	"${FILESDIR}"/${P}-boost-1.87.0-make_address.patch
+	"${FILESDIR}"/${P}-boost-1.87.0.patch
+)
+
+src_configure() {
+	local mycmakeargs=(
+		-DBUILD_CLIENT=$(usex client)
+		-DBUILD_WITH_EXPAT=$(usex expat)
+		-DBUILD_WITH_FLAC=$(usex flac)
+		-DBUILD_WITH_JACK=$(usex jack)
+		-DBUILD_WITH_OPUS=$(usex opus)
+		-DBUILD_SERVER=$(usex server)
+		-DBUILD_STATIC_LIBS=no
+		-DBUILD_TESTS=no
+		-DBUILD_WITH_TREMOR=$(usex tremor)
+		-DBUILD_WITH_VORBIS=$(usex vorbis)
+		-DBUILD_WITH_AVAHI=$(usex zeroconf)
+		-DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
+	)
+
+	cmake_src_configure
+}
+
+src_install() {
+	cmake_src_install
+
+	for bin in server client ; do
+		if use ${bin} ; then
+			doman "${bin}/snap${bin}.1"
+
+			newconfd "${FILESDIR}/snap${bin}.confd" "snap${bin}"
+			newinitd "${FILESDIR}/snap${bin}.initd" "snap${bin}"
+		fi
+	done
+}


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-sound/snapcast/files/, media-sound/snapcast/
@ 2025-05-15 12:22 Petr Vaněk
  0 siblings, 0 replies; 7+ messages in thread
From: Petr Vaněk @ 2025-05-15 12:22 UTC (permalink / raw
  To: gentoo-commits

commit:     6de0f0237f51c211641938d83bc98abe8e974728
Author:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Thu May 15 12:18:46 2025 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Thu May 15 12:21:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6de0f023

media-sound/snapcast: drop 0.27.0

Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>

 media-sound/snapcast/Manifest                      |  1 -
 .../snapcast/files/snapcast-0.27.0-gcc13.patch     | 26 --------
 media-sound/snapcast/snapcast-0.27.0.ebuild        | 73 ----------------------
 3 files changed, 100 deletions(-)

diff --git a/media-sound/snapcast/Manifest b/media-sound/snapcast/Manifest
index a29f654f440f..4178334264a9 100644
--- a/media-sound/snapcast/Manifest
+++ b/media-sound/snapcast/Manifest
@@ -1,3 +1,2 @@
-DIST snapcast-0.27.0.tar.gz 1566337 BLAKE2B 77183cd2496beaf6808f8c1ff030cdb1e483c86ebafd57d0c75daa2dfe31030f0dd9704db40e2c0780b85c2b346e121ccd16c1cb75dea1f80e9834d3ae100fb8 SHA512 fd86f5b0d38bf308eb9cc1f3024676471176355a8cc91ee8c8d2dfe1aa0cde99fc7636133071b50304fe66ea42dee996e0088e013be7fa703f21c5bc2a35cfdd
 DIST snapcast-0.29.0.tar.gz 1202943 BLAKE2B 0fb3c4b54dfd5fb16f7a17134a03288390c6d1b06c2c93bd7b495f0ff2f650d6caffab8b369703f38ca5764038470c3066794955259d419ea7ac4eff41e177d5 SHA512 4c88c20514e81f0ec861716a81047cb441669c0c23821acd959938cf00d85c37eec28a689a3c192f78fcb21accdbd6ef4520ef3f9995ff48ff07cb33e00b6904
 DIST snapcast-0.31.0.tar.gz 1128037 BLAKE2B 82444e9fc75e82b5f57e3e115a8bfbde2a5839bc68e25db47df0f25675cf73a836f2e8b09afb077410bd3c36917abb17ce302c18b67b440567c55b673301e7f5 SHA512 9c3eef7a18aaf6479a96810aeb58d11cc87654021d8d07b29f9b623c70bd7fd9aa08f5dee430c11de72abafa1a1b5abe500b93eef4b17b7c56df55c2f2a29867

diff --git a/media-sound/snapcast/files/snapcast-0.27.0-gcc13.patch b/media-sound/snapcast/files/snapcast-0.27.0-gcc13.patch
deleted file mode 100644
index 5378874e6dd3..000000000000
--- a/media-sound/snapcast/files/snapcast-0.27.0-gcc13.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-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
deleted file mode 100644
index 80e1997b38e9..000000000000
--- a/media-sound/snapcast/snapcast-0.27.0.ebuild
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-DESCRIPTION="Synchronous multi-room audio player"
-HOMEPAGE="https://github.com/badaix/snapcast"
-SRC_URI="https://github.com/badaix/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="amd64 ~arm ppc ppc64 ~riscv x86"
-IUSE="+client +expat +flac +opus +server tremor +vorbis +zeroconf"
-REQUIRED_USE="|| ( server client )"
-
-RDEPEND="
-	dev-libs/boost:=
-	media-libs/alsa-lib
-	client? ( acct-user/snapclient )
-	expat? ( dev-libs/expat )
-	flac? ( media-libs/flac:= )
-	opus? ( media-libs/opus )
-	server? (
-		acct-group/snapserver
-		acct-user/snapserver
-	)
-	tremor? ( media-libs/tremor )
-	vorbis? ( media-libs/libvorbis )
-	zeroconf? ( net-dns/avahi[dbus] )
-"
-DEPEND="
-	${RDEPEND}
-	>=dev-cpp/aixlog-1.2.1
-	>=dev-cpp/asio-1.12.1
-	>=dev-cpp/popl-1.2.0
-"
-
-PATCHES=(
-	"${FILESDIR}"/${PN}-0.27.0-gcc13.patch
-)
-
-src_configure() {
-	local mycmakeargs=(
-		-DBUILD_CLIENT=$(usex client)
-		-DBUILD_WITH_EXPAT=$(usex expat)
-		-DBUILD_WITH_FLAC=$(usex flac)
-		-DBUILD_WITH_OPUS=$(usex opus)
-		-DBUILD_SERVER=$(usex server)
-		-DBUILD_STATIC_LIBS=no
-		-DBUILD_TESTS=no
-		-DBUILD_WITH_TREMOR=$(usex tremor)
-		-DBUILD_WITH_VORBIS=$(usex vorbis)
-		-DBUILD_WITH_AVAHI=$(usex zeroconf)
-		-DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
-	)
-
-	cmake_src_configure
-}
-
-src_install() {
-	cmake_src_install
-
-	for bin in server client ; do
-		if use ${bin} ; then
-			doman "${bin}/snap${bin}.1"
-
-			newconfd "${FILESDIR}/snap${bin}.confd" "snap${bin}"
-			newinitd "${FILESDIR}/snap${bin}.initd" "snap${bin}"
-		fi
-	done
-}


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-sound/snapcast/files/, media-sound/snapcast/
@ 2025-06-08  6:35 Sam James
  0 siblings, 0 replies; 7+ messages in thread
From: Sam James @ 2025-06-08  6:35 UTC (permalink / raw
  To: gentoo-commits

commit:     de802852dbe96512aee08052e50f5e907b5674cc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  8 06:34:58 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun  8 06:35:11 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de802852

media-sound/snapcast: fix build w/ older boost

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

 .../files/snapcast-0.31.0-boost-1.88-fixup.patch   | 257 +++++++++++++++++++++
 .../files/snapcast-0.31.0-boost-1.88.patch         |   9 +-
 media-sound/snapcast/snapcast-0.31.0.ebuild        |   1 +
 3 files changed, 262 insertions(+), 5 deletions(-)

diff --git a/media-sound/snapcast/files/snapcast-0.31.0-boost-1.88-fixup.patch b/media-sound/snapcast/files/snapcast-0.31.0-boost-1.88-fixup.patch
new file mode 100644
index 000000000000..36045c0e902a
--- /dev/null
+++ b/media-sound/snapcast/files/snapcast-0.31.0-boost-1.88-fixup.patch
@@ -0,0 +1,257 @@
+https://github.com/badaix/snapcast/commit/0de502f565c6f26ab9ea4e18aa005ab3ebc6a01a
+https://github.com/badaix/snapcast/commit/7c27acb3c7db28d8e74795ccb163b38efdf2625c
+https://github.com/badaix/snapcast/commit/e617654e17aa09c28aad07822777b696298f92d0
+
+From 0de502f565c6f26ab9ea4e18aa005ab3ebc6a01a Mon Sep 17 00:00:00 2001
+From: badaix <johannes.pohl@badaix.de>
+Date: Fri, 6 Jun 2025 14:01:26 +0200
+Subject: [PATCH] Define BOOST_PROCESS_VERSION=1 globally
+
+---
+ CMakeLists.txt                         | 3 ++-
+ client/player/player.cpp               | 1 -
+ server/streamreader/stream_control.hpp | 4 ++--
+ 3 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b35291f7..e6dccd2f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -332,7 +332,8 @@ else()
+   add_compile_definitions(HAS_TREMOR)
+ endif()
+ 
+-add_compile_definitions(BOOST_ERROR_CODE_HEADER_ONLY BOOST_ASIO_NO_TS_EXECUTORS)
++add_compile_definitions(BOOST_ERROR_CODE_HEADER_ONLY BOOST_ASIO_NO_TS_EXECUTORS
++                        BOOST_PROCESS_VERSION=1)
+ 
+ if(WIN32)
+   include(FindPackageHandleStandardArgs)
+diff --git a/client/player/player.cpp b/client/player/player.cpp
+index 047a9ab1..968cb723 100644
+--- a/client/player/player.cpp
++++ b/client/player/player.cpp
+@@ -27,7 +27,6 @@
+ 
+ // 3rd party headers
+ #ifdef SUPPORTS_VOLUME_SCRIPT
+-#define BOOST_PROCESS_VERSION 1
+ #include <boost/process/v1/args.hpp>
+ #include <boost/process/v1/child.hpp>
+ #include <boost/process/v1/detail/on_exit.hpp>
+diff --git a/server/streamreader/stream_control.hpp b/server/streamreader/stream_control.hpp
+index 5007f208..5cbc9217 100644
+--- a/server/streamreader/stream_control.hpp
++++ b/server/streamreader/stream_control.hpp
+@@ -23,8 +23,8 @@
+ #include "server_settings.hpp"
+ 
+ // 3rd party headers
+-#define BOOST_PROCESS_VERSION 1
+-#include <boost/asio.hpp>
++#include <boost/asio/any_io_executor.hpp>
++#include <boost/process/v1/child.hpp>
+ #include <boost/process/v1/io.hpp>
+ #include <boost/process/v1/start_dir.hpp>
+ #include <boost/process/v1/system.hpp>
+
+From 7c27acb3c7db28d8e74795ccb163b38efdf2625c Mon Sep 17 00:00:00 2001
+From: badaix <johannes.pohl@badaix.de>
+Date: Fri, 6 Jun 2025 14:05:39 +0200
+Subject: [PATCH] Add missing includes
+
+---
+ server/snapserver.cpp                  | 1 +
+ server/stream_session_tcp.cpp          | 2 ++
+ server/streamreader/airplay_stream.hpp | 3 +--
+ server/streamreader/file_stream.hpp    | 5 ++++-
+ server/streamreader/pcm_stream.hpp     | 1 +
+ server/streamreader/pipe_stream.hpp    | 6 +++++-
+ server/streamreader/process_stream.hpp | 5 +++++
+ 7 files changed, 19 insertions(+), 4 deletions(-)
+
+diff --git a/server/snapserver.cpp b/server/snapserver.cpp
+index 3e51fb2d..454f3b5d 100644
+--- a/server/snapserver.cpp
++++ b/server/snapserver.cpp
+@@ -38,6 +38,7 @@
+ 
+ // 3rd party headers
+ #include <boost/asio/ip/host_name.hpp>
++#include <boost/asio/signal_set.hpp>
+ 
+ // standard headers
+ #include <chrono>
+diff --git a/server/stream_session_tcp.cpp b/server/stream_session_tcp.cpp
+index 0cc05f6a..e9bebfd5 100644
+--- a/server/stream_session_tcp.cpp
++++ b/server/stream_session_tcp.cpp
+@@ -23,6 +23,8 @@
+ #include "common/aixlog.hpp"
+ 
+ // 3rd party headers
++#include <boost/asio/read.hpp>
++#include <boost/asio/write.hpp>
+ 
+ // standard headers
+ #include <iostream>
+diff --git a/server/streamreader/airplay_stream.hpp b/server/streamreader/airplay_stream.hpp
+index 05ec2d4b..44c89752 100644
+--- a/server/streamreader/airplay_stream.hpp
++++ b/server/streamreader/airplay_stream.hpp
+@@ -23,6 +23,7 @@
+ #include "process_stream.hpp"
+ 
+ // 3rd party headers
++#include <boost/asio/streambuf.hpp>
+ // Expat is used in metadata parsing from Shairport-sync.
+ // Without HAS_EXPAT defined no parsing will occur.
+ #ifdef HAS_EXPAT
+@@ -42,8 +43,6 @@ struct TageEntry
+     int length{0};        ///< length
+ };
+ 
+-/// Starts shairport-sync and reads PCM data from stdout
+-
+ /**
+  * Starts shairport-sync, reads PCM data from stdout, and passes the data to an encoder.
+  * Implements EncoderListener to get the encoded data.
+diff --git a/server/streamreader/file_stream.hpp b/server/streamreader/file_stream.hpp
+index 243fceb8..5d1641fd 100644
+--- a/server/streamreader/file_stream.hpp
++++ b/server/streamreader/file_stream.hpp
+@@ -1,6 +1,6 @@
+ /***
+     This file is part of snapcast
+-    Copyright (C) 2014-2024  Johannes Pohl
++    Copyright (C) 2014-2025  Johannes Pohl
+ 
+     This program is free software: you can redistribute it and/or modify
+     it under the terms of the GNU General Public License as published by
+@@ -22,6 +22,9 @@
+ // local headers
+ #include "asio_stream.hpp"
+ 
++// 3rd party headers
++#include <boost/asio/posix/stream_descriptor.hpp>
++
+ namespace streamreader
+ {
+ 
+diff --git a/server/streamreader/pcm_stream.hpp b/server/streamreader/pcm_stream.hpp
+index 6392fea6..7af99bab 100644
+--- a/server/streamreader/pcm_stream.hpp
++++ b/server/streamreader/pcm_stream.hpp
+@@ -35,6 +35,7 @@
+ #include <boost/asio/io_context.hpp>
+ #include <boost/asio/read_until.hpp>
+ #include <boost/asio/steady_timer.hpp>
++#include <boost/asio/strand.hpp>
+ 
+ // standard headers
+ #include <atomic>
+diff --git a/server/streamreader/pipe_stream.hpp b/server/streamreader/pipe_stream.hpp
+index 75339ce2..0f7d41f5 100644
+--- a/server/streamreader/pipe_stream.hpp
++++ b/server/streamreader/pipe_stream.hpp
+@@ -1,6 +1,6 @@
+ /***
+     This file is part of snapcast
+-    Copyright (C) 2014-2024  Johannes Pohl
++    Copyright (C) 2014-2025  Johannes Pohl
+ 
+     This program is free software: you can redistribute it and/or modify
+     it under the terms of the GNU General Public License as published by
+@@ -22,6 +22,10 @@
+ // local headers
+ #include "asio_stream.hpp"
+ 
++// 3rd party headers
++#include <boost/asio/posix/stream_descriptor.hpp>
++
++
+ namespace streamreader
+ {
+ 
+diff --git a/server/streamreader/process_stream.hpp b/server/streamreader/process_stream.hpp
+index 2a19fecb..5c495655 100644
+--- a/server/streamreader/process_stream.hpp
++++ b/server/streamreader/process_stream.hpp
+@@ -23,6 +23,11 @@
+ #include "asio_stream.hpp"
+ #include "watchdog.hpp"
+ 
++// 3rd party headers
++#include <boost/asio/posix/stream_descriptor.hpp>
++#include <boost/process/v1/child.hpp>
++#include <boost/process/v1/pipe.hpp>
++
+ // standard headers
+ #include <memory>
+ #include <string>
+
+From e617654e17aa09c28aad07822777b696298f92d0 Mon Sep 17 00:00:00 2001
+From: badaix <johannes.pohl@badaix.de>
+Date: Fri, 6 Jun 2025 21:52:26 +0200
+Subject: [PATCH] Include process v1 headers for Boost version >= v1.88.0
+
+---
+ client/client_connection.cpp           | 1 -
+ client/player/player.cpp               | 4 ++++
+ server/streamreader/process_stream.hpp | 3 ---
+ server/streamreader/stream_control.hpp | 4 ++++
+ 4 files changed, 8 insertions(+), 4 deletions(-)
+
+diff --git a/client/player/player.cpp b/client/player/player.cpp
+index 968cb723..76ca3818 100644
+--- a/client/player/player.cpp
++++ b/client/player/player.cpp
+@@ -27,10 +27,14 @@
+ 
+ // 3rd party headers
+ #ifdef SUPPORTS_VOLUME_SCRIPT
++#if BOOST_VERSION >= 108800
+ #include <boost/process/v1/args.hpp>
+ #include <boost/process/v1/child.hpp>
+ #include <boost/process/v1/detail/on_exit.hpp>
+ #include <boost/process/v1/exe.hpp>
++#else
++#include <boost/process.hpp>
++#endif
+ #endif
+ 
+ // standard headers
+diff --git a/server/streamreader/process_stream.hpp b/server/streamreader/process_stream.hpp
+index 5c495655..0774b9e9 100644
+--- a/server/streamreader/process_stream.hpp
++++ b/server/streamreader/process_stream.hpp
+@@ -24,9 +24,6 @@
+ #include "watchdog.hpp"
+ 
+ // 3rd party headers
+-#include <boost/asio/posix/stream_descriptor.hpp>
+-#include <boost/process/v1/child.hpp>
+-#include <boost/process/v1/pipe.hpp>
+ 
+ // standard headers
+ #include <memory>
+diff --git a/server/streamreader/stream_control.hpp b/server/streamreader/stream_control.hpp
+index 5cbc9217..6a448d52 100644
+--- a/server/streamreader/stream_control.hpp
++++ b/server/streamreader/stream_control.hpp
+@@ -24,10 +24,14 @@
+ 
+ // 3rd party headers
+ #include <boost/asio/any_io_executor.hpp>
++#if BOOST_VERSION >= 108800
+ #include <boost/process/v1/child.hpp>
+ #include <boost/process/v1/io.hpp>
+ #include <boost/process/v1/start_dir.hpp>
+ #include <boost/process/v1/system.hpp>
++#else
++#include <boost/process.hpp>
++#endif
+ 
+ // standard headers
+ #include <filesystem>
+

diff --git a/media-sound/snapcast/files/snapcast-0.31.0-boost-1.88.patch b/media-sound/snapcast/files/snapcast-0.31.0-boost-1.88.patch
index a8ec1dba89b3..7c05f3430745 100644
--- a/media-sound/snapcast/files/snapcast-0.31.0-boost-1.88.patch
+++ b/media-sound/snapcast/files/snapcast-0.31.0-boost-1.88.patch
@@ -1,7 +1,7 @@
 https://bugs.gentoo.org/955544
-https://github.com/tobster/snapcast/commit/fe0af5ec5eb47c7a6efd75cc2f252eb81c1f6129
+https://github.com/badaix/snapcast/commit/798e5cb142b90f19542a8bce897a4fe6460e5a10
 
-From fe0af5ec5eb47c7a6efd75cc2f252eb81c1f6129 Mon Sep 17 00:00:00 2001
+From 798e5cb142b90f19542a8bce897a4fe6460e5a10 Mon Sep 17 00:00:00 2001
 From: Tobias Hochwallner <tobster@gmx.at>
 Date: Wed, 7 May 2025 22:42:07 +0200
 Subject: [PATCH] Build failure with boost 1.88.0 #1367 fix compilation errors
@@ -13,7 +13,7 @@ Subject: [PATCH] Build failure with boost 1.88.0 #1367 fix compilation errors
  2 files changed, 10 insertions(+), 4 deletions(-)
 
 diff --git a/client/player/player.cpp b/client/player/player.cpp
-index 933a356b..8e2bbdc3 100644
+index c4b590c7..047a9ab1 100644
 --- a/client/player/player.cpp
 +++ b/client/player/player.cpp
 @@ -27,7 +27,11 @@
@@ -30,7 +30,7 @@ index 933a356b..8e2bbdc3 100644
  
  // standard headers
 diff --git a/server/streamreader/stream_control.hpp b/server/streamreader/stream_control.hpp
-index 32578fee..1b7894a5 100644
+index 358d9708..5007f208 100644
 --- a/server/streamreader/stream_control.hpp
 +++ b/server/streamreader/stream_control.hpp
 @@ -18,14 +18,16 @@
@@ -53,4 +53,3 @@ index 32578fee..1b7894a5 100644
  
  // standard headers
  #include <filesystem>
-

diff --git a/media-sound/snapcast/snapcast-0.31.0.ebuild b/media-sound/snapcast/snapcast-0.31.0.ebuild
index 33fa82a6e306..80d898206534 100644
--- a/media-sound/snapcast/snapcast-0.31.0.ebuild
+++ b/media-sound/snapcast/snapcast-0.31.0.ebuild
@@ -44,6 +44,7 @@ DEPEND="
 PATCHES=(
 	"${FILESDIR}"/${PN}-0.31.0-boost-1.88.patch
 	"${FILESDIR}"/${PN}-0.31.0-drop-lint.patch
+	"${FILESDIR}"/${PN}-0.31.0-boost-1.88-fixup.patch
 )
 
 src_configure() {


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-sound/snapcast/files/, media-sound/snapcast/
@ 2025-07-05 17:53 Andreas Sturmlechner
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Sturmlechner @ 2025-07-05 17:53 UTC (permalink / raw
  To: gentoo-commits

commit:     55337fbf44a9865329e026a0d33a2f8225e3fcd6
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  5 12:34:09 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jul  5 17:51:50 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55337fbf

media-sound/snapcast: drop 0.29.0

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-sound/snapcast/Manifest                      |  1 -
 ...snapcast-0.29.0-boost-1.87.0-make_address.patch | 96 ----------------------
 .../files/snapcast-0.29.0-boost-1.87.0.patch       | 51 ------------
 .../files/snapcast-0.29.0-resampler-include.patch  | 25 ------
 media-sound/snapcast/snapcast-0.29.0.ebuild        | 77 -----------------
 5 files changed, 250 deletions(-)

diff --git a/media-sound/snapcast/Manifest b/media-sound/snapcast/Manifest
index 4178334264a9..fe5f1872dd63 100644
--- a/media-sound/snapcast/Manifest
+++ b/media-sound/snapcast/Manifest
@@ -1,2 +1 @@
-DIST snapcast-0.29.0.tar.gz 1202943 BLAKE2B 0fb3c4b54dfd5fb16f7a17134a03288390c6d1b06c2c93bd7b495f0ff2f650d6caffab8b369703f38ca5764038470c3066794955259d419ea7ac4eff41e177d5 SHA512 4c88c20514e81f0ec861716a81047cb441669c0c23821acd959938cf00d85c37eec28a689a3c192f78fcb21accdbd6ef4520ef3f9995ff48ff07cb33e00b6904
 DIST snapcast-0.31.0.tar.gz 1128037 BLAKE2B 82444e9fc75e82b5f57e3e115a8bfbde2a5839bc68e25db47df0f25675cf73a836f2e8b09afb077410bd3c36917abb17ce302c18b67b440567c55b673301e7f5 SHA512 9c3eef7a18aaf6479a96810aeb58d11cc87654021d8d07b29f9b623c70bd7fd9aa08f5dee430c11de72abafa1a1b5abe500b93eef4b17b7c56df55c2f2a29867

diff --git a/media-sound/snapcast/files/snapcast-0.29.0-boost-1.87.0-make_address.patch b/media-sound/snapcast/files/snapcast-0.29.0-boost-1.87.0-make_address.patch
deleted file mode 100644
index 03190a4e20e3..000000000000
--- a/media-sound/snapcast/files/snapcast-0.29.0-boost-1.87.0-make_address.patch
+++ /dev/null
@@ -1,96 +0,0 @@
-https://github.com/badaix/snapcast/commit/b2fd2bf9ef835104a813c40c190d71e3644125d7
-
-From b2fd2bf9ef835104a813c40c190d71e3644125d7 Mon Sep 17 00:00:00 2001
-From: Rudi Heitbaum <rudi@heitbaum.com>
-Date: Thu, 19 Dec 2024 02:23:11 +1100
-Subject: [PATCH] use make_address from boost as from_string is deprecated
- (#1308)
-
-Since boost 1.87.0 boost::asio::ip::address::from_string is no longer available
-
-ref: https://github.com/boostorg/asio/commit/c0d1cfce7767599c4cf00df36f8017a1073339ae
-
-fixes:
-    ../server/control_server.cpp: In member function 'void ControlServer::start()':
-    ../server/control_server.cpp:164:111: error: 'from_string' is not a member of 'boost::asio::ip::address'
-      164 |                                                                       tcp::endpoint(boost::asio::ip::address::from_string(address), tcp_settings_.port)));
-          |                                                                                                               ^~~~~~~~~~~
-    ../server/control_server.cpp:180:112: error: 'from_string' is not a member of 'boost::asio::ip::address'
-      180 |                                                                        tcp::endpoint(boost::asio::ip::address::from_string(address), http_settings_.port)));
-          |                                                                                                                ^~~~~~~~~~~
-    ../server/streamreader/tcp_stream.cpp: In constructor 'streamreader::TcpStream::TcpStream(streamreader::PcmStream::Listener*, boost::asio::io_context&, const ServerSettings&, const streamreader::StreamUri&)':
-    ../server/streamreader/tcp_stream.cpp:67:97: error: 'from_string' is not a member of 'boost::asio::ip::address'
-       67 |         acceptor_ = make_unique<tcp::acceptor>(strand_, tcp::endpoint(boost::asio::ip::address::from_string(host_), port_));
-          |                                                                                                 ^~~~~~~~~~~
-    ../server/streamreader/tcp_stream.cpp: In member function 'virtual void streamreader::TcpStream::connect()':
-    ../server/streamreader/tcp_stream.cpp:96:75: error: 'from_string' is not a member of 'boost::asio::ip::address'
-       96 |         boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::address::from_string(host_), port_);
-          |                                                                           ^~~~~~~~~~~
-    ../server/stream_server.cpp: In member function 'void StreamServer::start()':
-    ../server/stream_server.cpp:234:103: error: 'from_string' is not a member of 'boost::asio::ip::address'
-      234 |                                                               tcp::endpoint(boost::asio::ip::address::from_string(address), settings_.stream.port)));
-          |
----
- server/control_server.cpp          | 4 ++--
- server/stream_server.cpp           | 2 +-
- server/streamreader/tcp_stream.cpp | 4 ++--
- 3 files changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/server/control_server.cpp b/server/control_server.cpp
-index 03b2db76..7945855b 100644
---- a/server/control_server.cpp
-+++ b/server/control_server.cpp
-@@ -161,7 +161,7 @@ void ControlServer::start()
-             {
-                 LOG(INFO, LOG_TAG) << "Creating TCP acceptor for address: " << address << ", port: " << tcp_settings_.port << "\n";
-                 acceptor_tcp_.emplace_back(make_unique<tcp::acceptor>(boost::asio::make_strand(io_context_.get_executor()),
--                                                                      tcp::endpoint(boost::asio::ip::address::from_string(address), tcp_settings_.port)));
-+                                                                      tcp::endpoint(boost::asio::ip::make_address(address), tcp_settings_.port)));
-             }
-             catch (const boost::system::system_error& e)
-             {
-@@ -177,7 +177,7 @@ void ControlServer::start()
-             {
-                 LOG(INFO, LOG_TAG) << "Creating HTTP acceptor for address: " << address << ", port: " << http_settings_.port << "\n";
-                 acceptor_http_.emplace_back(make_unique<tcp::acceptor>(boost::asio::make_strand(io_context_.get_executor()),
--                                                                       tcp::endpoint(boost::asio::ip::address::from_string(address), http_settings_.port)));
-+                                                                       tcp::endpoint(boost::asio::ip::make_address(address), http_settings_.port)));
-             }
-             catch (const boost::system::system_error& e)
-             {
-diff --git a/server/stream_server.cpp b/server/stream_server.cpp
-index 718e744f..ad2fec2c 100644
---- a/server/stream_server.cpp
-+++ b/server/stream_server.cpp
-@@ -231,7 +231,7 @@ void StreamServer::start()
-         {
-             LOG(INFO, LOG_TAG) << "Creating stream acceptor for address: " << address << ", port: " << settings_.stream.port << "\n";
-             acceptor_.emplace_back(make_unique<tcp::acceptor>(boost::asio::make_strand(io_context_.get_executor()),
--                                                              tcp::endpoint(boost::asio::ip::address::from_string(address), settings_.stream.port)));
-+                                                              tcp::endpoint(boost::asio::ip::make_address(address), settings_.stream.port)));
-         }
-         catch (const boost::system::system_error& e)
-         {
-diff --git a/server/streamreader/tcp_stream.cpp b/server/streamreader/tcp_stream.cpp
-index 1ec68d6b..ed3fd75e 100644
---- a/server/streamreader/tcp_stream.cpp
-+++ b/server/streamreader/tcp_stream.cpp
-@@ -64,7 +64,7 @@ TcpStream::TcpStream(PcmStream::Listener* pcmListener, boost::asio::io_context&
- 
-     LOG(INFO, LOG_TAG) << "TcpStream host: " << host_ << ", port: " << port_ << ", is server: " << is_server_ << "\n";
-     if (is_server_)
--        acceptor_ = make_unique<tcp::acceptor>(strand_, tcp::endpoint(boost::asio::ip::address::from_string(host_), port_));
-+        acceptor_ = make_unique<tcp::acceptor>(strand_, tcp::endpoint(boost::asio::ip::make_address(host_), port_));
- }
- 
- 
-@@ -93,7 +93,7 @@ void TcpStream::connect()
-     else
-     {
-         stream_ = make_unique<tcp::socket>(strand_);
--        boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::address::from_string(host_), port_);
-+        boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::make_address(host_), port_);
-         stream_->async_connect(endpoint,
-                                [this](const boost::system::error_code& ec)
-                                {
-

diff --git a/media-sound/snapcast/files/snapcast-0.29.0-boost-1.87.0.patch b/media-sound/snapcast/files/snapcast-0.29.0-boost-1.87.0.patch
deleted file mode 100644
index d1be4b4072db..000000000000
--- a/media-sound/snapcast/files/snapcast-0.29.0-boost-1.87.0.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-https://github.com/badaix/snapcast/commit/6190041e863968d76b6d16140bba90be6dff848f
-
-From 6190041e863968d76b6d16140bba90be6dff848f Mon Sep 17 00:00:00 2001
-From: badaix <johannes.pohl@badaix.de>
-Date: Thu, 19 Dec 2024 21:36:08 +0100
-Subject: [PATCH] Fix compilation with boost v1.87.0
-
----
- client/client_connection.cpp | 5 ++---
- server/stream_session_ws.cpp | 2 +-
- 2 files changed, 3 insertions(+), 4 deletions(-)
-
-diff --git a/client/client_connection.cpp b/client/client_connection.cpp
-index 53825864..6f34a018 100644
---- a/client/client_connection.cpp
-+++ b/client/client_connection.cpp
-@@ -124,10 +124,9 @@ std::string ClientConnection::getMacAddress()
- 
- void ClientConnection::connect(const ResultHandler& handler)
- {
--    tcp::resolver::query query(server_.host, cpt::to_string(server_.port), boost::asio::ip::resolver_query_base::numeric_service);
-     boost::system::error_code ec;
-     LOG(INFO, LOG_TAG) << "Resolving host IP for: " << server_.host << "\n";
--    auto iterator = resolver_.resolve(query, ec);
-+    auto iterator = resolver_.resolve(server_.host, cpt::to_string(server_.port), boost::asio::ip::resolver_query_base::numeric_service, ec);
-     if (ec)
-     {
-         LOG(ERROR, LOG_TAG) << "Failed to resolve host '" << server_.host << "', error: " << ec.message() << "\n";
-@@ -141,7 +140,7 @@ void ClientConnection::connect(const ResultHandler& handler)
-     for (const auto& iter : iterator)
-     {
-         LOG(INFO, LOG_TAG) << "Connecting to " << iter.endpoint() << "\n";
--        socket_.connect(*iterator, ec);
-+        socket_.connect(iter, ec);
-         if (!ec || (ec == boost::system::errc::interrupted))
-         {
-             // We were successful or interrupted, e.g. by sig int
-diff --git a/server/stream_session_ws.cpp b/server/stream_session_ws.cpp
-index 5f666618..117603f6 100644
---- a/server/stream_session_ws.cpp
-+++ b/server/stream_session_ws.cpp
-@@ -114,7 +114,7 @@ void StreamSessionWebsocket::on_read_ws(beast::error_code ec, std::size_t bytes_
-         return;
-     }
- 
--    auto* data = boost::asio::buffer_cast<char*>(buffer_.data());
-+    auto* data = static_cast<char*>(buffer_.data().data());
-     baseMessage_.deserialize(data);
-     LOG(DEBUG, LOG_TAG) << "getNextMessage: " << baseMessage_.type << ", size: " << baseMessage_.size << ", id: " << baseMessage_.id
-                         << ", refers: " << baseMessage_.refersTo << "\n";
-

diff --git a/media-sound/snapcast/files/snapcast-0.29.0-resampler-include.patch b/media-sound/snapcast/files/snapcast-0.29.0-resampler-include.patch
deleted file mode 100644
index 296a5d61db86..000000000000
--- a/media-sound/snapcast/files/snapcast-0.29.0-resampler-include.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-https://github.com/badaix/snapcast/commit/f6ce4f3fbb3c797f5d92578d7bc8df547ad4cd64
-
-From f6ce4f3fbb3c797f5d92578d7bc8df547ad4cd64 Mon Sep 17 00:00:00 2001
-From: Johannes Pohl <johannes.pohl@badaix.de>
-Date: Wed, 11 Dec 2024 15:50:11 +0100
-Subject: [PATCH] Add missing include in resampler.cpp
-
-This fixes issue #1295
----
- common/resampler.cpp | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/common/resampler.cpp b/common/resampler.cpp
-index 1d5d698a..9548c957 100644
---- a/common/resampler.cpp
-+++ b/common/resampler.cpp
-@@ -21,6 +21,7 @@
- 
- // local headers
- #include "common/aixlog.hpp"
-+#include "common/snap_exception.hpp"
- 
- // standard headers
- #include <cmath>
-

diff --git a/media-sound/snapcast/snapcast-0.29.0.ebuild b/media-sound/snapcast/snapcast-0.29.0.ebuild
deleted file mode 100644
index 2d49c6da805b..000000000000
--- a/media-sound/snapcast/snapcast-0.29.0.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-DESCRIPTION="Synchronous multi-room audio player"
-HOMEPAGE="https://github.com/badaix/snapcast"
-SRC_URI="https://github.com/badaix/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="amd64 ~arm ppc ppc64 ~riscv x86"
-IUSE="+client +expat +flac jack +opus +server tremor +vorbis +zeroconf"
-REQUIRED_USE="|| ( server client )"
-
-RDEPEND="
-	dev-libs/boost:=
-	media-libs/alsa-lib
-	client? ( acct-user/snapclient )
-	expat? ( dev-libs/expat )
-	flac? ( media-libs/flac:= )
-	jack? ( virtual/jack )
-	opus? ( media-libs/opus )
-	server? (
-		acct-group/snapserver
-		acct-user/snapserver
-	)
-	tremor? ( media-libs/tremor )
-	vorbis? ( media-libs/libvorbis )
-	zeroconf? ( net-dns/avahi[dbus] )
-"
-DEPEND="
-	${RDEPEND}
-	>=dev-cpp/aixlog-1.2.1
-	>=dev-cpp/asio-1.12.1
-	>=dev-cpp/popl-1.2.0
-"
-
-PATCHES=(
-	"${FILESDIR}"/${P}-resampler-include.patch
-	"${FILESDIR}"/${P}-boost-1.87.0-make_address.patch
-	"${FILESDIR}"/${P}-boost-1.87.0.patch
-)
-
-src_configure() {
-	local mycmakeargs=(
-		-DBUILD_CLIENT=$(usex client)
-		-DBUILD_WITH_EXPAT=$(usex expat)
-		-DBUILD_WITH_FLAC=$(usex flac)
-		-DBUILD_WITH_JACK=$(usex jack)
-		-DBUILD_WITH_OPUS=$(usex opus)
-		-DBUILD_SERVER=$(usex server)
-		-DBUILD_STATIC_LIBS=no
-		-DBUILD_TESTS=no
-		-DBUILD_WITH_TREMOR=$(usex tremor)
-		-DBUILD_WITH_VORBIS=$(usex vorbis)
-		-DBUILD_WITH_AVAHI=$(usex zeroconf)
-		-DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
-	)
-
-	cmake_src_configure
-}
-
-src_install() {
-	cmake_src_install
-
-	for bin in server client ; do
-		if use ${bin} ; then
-			doman "${bin}/snap${bin}.1"
-
-			newconfd "${FILESDIR}/snap${bin}.confd" "snap${bin}"
-			newinitd "${FILESDIR}/snap${bin}.initd" "snap${bin}"
-		fi
-	done
-}


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-07-05 17:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-05 17:53 [gentoo-commits] repo/gentoo:master commit in: media-sound/snapcast/files/, media-sound/snapcast/ Andreas Sturmlechner
  -- strict thread matches above, loose matches on Subject: below --
2025-06-08  6:35 Sam James
2025-05-15 12:22 Petr Vaněk
2024-12-26  7:09 Sam James
2023-04-03  7:33 Jakov Smolić
2022-12-29 23:25 Sam James
2021-04-29 11:46 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox