commit: 49a9d22e3d315e2af89af32dda913ed568c8efaf Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Sun Jul 20 22:33:40 2025 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Sun Jul 20 22:37:32 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49a9d22e
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 <chewi <AT> gentoo.org> 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 4f5bfe31d545..db073494842d 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 4d7e9b8a8185..0050e6073e1f 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}
