From: Szabolcs Hubai Date: Mon, 23 Jun 2025 17:45:00 +0000 (+0200) Subject: snapcast: fix compilation with boost 1.88.0 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=3aef4a36a32b51e73292f7edb5de1d637e86c6d9;p=feed%2Fpackages.git snapcast: fix compilation with boost 1.88.0 Boost upgrade hit Snapcast hard again: the process needs to be updated! This patch is a patchset from badaix/snapcast@develop. It is based on the following upstream commits: badaix/snapcast@901b79a213b1 ("Build failure with boost 1.88.0 #1367") badaix/snapcast@ffb086b4b331 ("Define BOOST_PROCESS_VERSION=1 globally") badaix/snapcast@c37a76a4aba9 ("Add missing includes") badaix/snapcast@571f6a8f6953 ("Include process v1 headers for Boost version >= v1.88.0") Refs: 3585ddfc446c ("boost: Updates package to version 1.88.0") Signed-off-by: Szabolcs Hubai --- diff --git a/sound/snapcast/patches/004-v0.31.101-fix-compilation-with-boost-1.88.patch b/sound/snapcast/patches/004-v0.31.101-fix-compilation-with-boost-1.88.patch new file mode 100644 index 0000000000..b94c8ad292 --- /dev/null +++ b/sound/snapcast/patches/004-v0.31.101-fix-compilation-with-boost-1.88.patch @@ -0,0 +1,60 @@ +From 901b79a213b139c35ff689c05aff01d29610a8d4 Mon Sep 17 00:00:00 2001 +From: Tobias Hochwallner +Date: Wed, 7 May 2025 22:42:07 +0200 +Subject: Build failure with boost 1.88.0 #1367 + 1. [tobster] fix compilation errors by including the deprecated boost process v1 APIs + 2. [badaix] Define BOOST_PROCESS_VERSION=1 globally + +--- + client/player/player.cpp | 6 +++++- + server/streamreader/stream_control.hpp | 8 +++++--- + 2 files changed, 10 insertions(+), 4 deletions(-) + +--- a/client/player/player.cpp ++++ b/client/player/player.cpp +@@ -34,10 +34,17 @@ + #pragma GCC diagnostic ignored "-Wmissing-braces" + #pragma GCC diagnostic ignored "-Wnarrowing" + #pragma GCC diagnostic ignored "-Wc++11-narrowing" ++#if BOOST_VERSION >= 108800 ++#include ++#include ++#include ++#include ++#else + #include + #include + #include + #include ++#endif + #pragma GCC diagnostic pop + #endif + +--- a/server/streamreader/stream_control.hpp ++++ b/server/streamreader/stream_control.hpp +@@ -32,7 +32,13 @@ + #pragma GCC diagnostic ignored "-Wnarrowing" + #pragma GCC diagnostic ignored "-Wc++11-narrowing" + #pragma GCC diagnostic ignored "-Wdeprecated-declarations" ++#if BOOST_VERSION >= 108800 ++#include ++#include ++#include ++#else + #include ++#endif + #pragma GCC diagnostic pop + #include + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -318,7 +318,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)