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@gentoo.org>
This commit is contained in:
James Le Cuirot
2025-07-20 23:33:40 +01:00
parent 825c616771
commit 49a9d22e3d
2 changed files with 2 additions and 0 deletions

View File

@@ -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}

View File

@@ -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}