From 49a9d22e3d315e2af89af32dda913ed568c8efaf Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Sun, 20 Jul 2025 23:33:40 +0100 Subject: [PATCH] net-misc/sunshine: Fix building with Boost 1.87 installed We want to build an internal Boost even if 1.87 is installed. Unfortunately, CMake doesn't handle this well. It finds Boost itself but fails to find all the components because they don't have static libraries. Even if Sunshine were to explicitly check for the presence of each component, it would then fail because the Boost::headers target cannot be redefined. I tried to fix this properly, but it seems impossible. I thought that CMAKE_DISABLE_FIND_PACKAGE would prevent Boost from working at all, but it somehow did the trick. Closes: https://bugs.gentoo.org/960465 Signed-off-by: James Le Cuirot --- net-misc/sunshine/sunshine-2025.628.4510-r1.ebuild | 1 + net-misc/sunshine/sunshine-9999.ebuild | 1 + 2 files changed, 2 insertions(+) diff --git a/net-misc/sunshine/sunshine-2025.628.4510-r1.ebuild b/net-misc/sunshine/sunshine-2025.628.4510-r1.ebuild index 4f5bfe31d5455..db073494842d1 100644 --- a/net-misc/sunshine/sunshine-2025.628.4510-r1.ebuild +++ b/net-misc/sunshine/sunshine-2025.628.4510-r1.ebuild @@ -362,6 +362,7 @@ src_configure() { -DBUILD_DOCS=no -DBUILD_TESTS=no -DCCACHE_FOUND=no + -DCMAKE_DISABLE_FIND_PACKAGE_Boost=yes -DFFMPEG_PLATFORM_LIBRARIES="$(usex svt-av1 SvtAv1Enc '');$(usex vaapi 'va;va-drm' '');$(usev x264);$(usev x265)" -DFFMPEG_PREPARED_BINARIES="${S}"/third-party/build-deps/dist -DSUNSHINE_ASSETS_DIR=share/${PN} diff --git a/net-misc/sunshine/sunshine-9999.ebuild b/net-misc/sunshine/sunshine-9999.ebuild index 4d7e9b8a81853..0050e6073e1ff 100644 --- a/net-misc/sunshine/sunshine-9999.ebuild +++ b/net-misc/sunshine/sunshine-9999.ebuild @@ -359,6 +359,7 @@ src_configure() { -DBUILD_DOCS=no -DBUILD_TESTS=no -DCCACHE_FOUND=no + -DCMAKE_DISABLE_FIND_PACKAGE_Boost=yes -DFFMPEG_PLATFORM_LIBRARIES="$(usex svt-av1 SvtAv1Enc '');$(usex vaapi 'va;va-drm' '');$(usev x264);$(usev x265)" -DFFMPEG_PREPARED_BINARIES="${S}"/third-party/build-deps/dist -DSUNSHINE_ASSETS_DIR=share/${PN}