From 4674e30878f75aa600f510cdc24fa6993454d3fd Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Wed, 21 Dec 2022 11:41:29 +0000 Subject: [PATCH] snapcast: patch to support boost 1.81.0 --- .../snapcast/patches/snapcast-03_boost.patch | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 packages/addons/addon-depends/snapcast-depends/snapcast/patches/snapcast-03_boost.patch diff --git a/packages/addons/addon-depends/snapcast-depends/snapcast/patches/snapcast-03_boost.patch b/packages/addons/addon-depends/snapcast-depends/snapcast/patches/snapcast-03_boost.patch new file mode 100644 index 00000000000..2e751adf307 --- /dev/null +++ b/packages/addons/addon-depends/snapcast-depends/snapcast/patches/snapcast-03_boost.patch @@ -0,0 +1,48 @@ +commit 438b83b0b93f2914b1830347b4e24722618d9ba4 +Author: Rudi Heitbaum +Date: Wed Dec 21 11:31:29 2022 +0000 + + server/control_session_http: update for boost 1.81.0 + +diff --git a/server/control_session_http.cpp b/server/control_session_http.cpp +index 385b3197..6522f5a9 100644 +--- 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(path); ++ std::string result = static_cast(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(why); + res.prepare_payload(); + return res; + }; +@@ -182,7 +182,7 @@ void ControlSessionHttp::handle_request(http::request(target) + "' was not found."; + res.prepare_payload(); + return res; + }; +@@ -204,7 +204,7 @@ void ControlSessionHttp::handle_request(http::request(what) + "'"; + res.prepare_payload(); + return res; + };