mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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}
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user