From c7bcf6c8353d1fe5fe804467ffdabb9fa2a57fc1 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Sun, 20 Jul 2025 15:40:04 +0100 Subject: [PATCH] net-misc/sunshine: Fix building with USE=cuda I'm not sure whether I've chosen the most optimal approach here. nvidia-drivers is needed at runtime (only) for libcuda.so.1. nvidia-cuda-toolkit is not required by FFmpeg, but it does seem required by Sunshine itself. You can then use nvcc from the toolkit or clang directly. I have chosen the latter, because the logic needed to set up nvcc is complex (potential addition to cuda.eclass?) and both Gentoo and Sunshine upstream force FFmpeg to build with clang anyway. Closes: https://bugs.gentoo.org/959432 Signed-off-by: James Le Cuirot --- net-misc/sunshine/sunshine-2025.628.4510-r1.ebuild | 7 ++++++- net-misc/sunshine/sunshine-9999.ebuild | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/net-misc/sunshine/sunshine-2025.628.4510-r1.ebuild b/net-misc/sunshine/sunshine-2025.628.4510-r1.ebuild index c3de4a83ff0e5..1d0915e4a4e6c 100644 --- a/net-misc/sunshine/sunshine-2025.628.4510-r1.ebuild +++ b/net-misc/sunshine/sunshine-2025.628.4510-r1.ebuild @@ -163,6 +163,7 @@ CDEPEND=" RDEPEND=" ${CDEPEND} media-libs/mesa[vaapi?] + cuda? ( x11-drivers/nvidia-drivers ) X? ( x11-libs/libxcb x11-libs/libXfixes @@ -176,6 +177,7 @@ DEPEND=" dev-cpp/nlohmann_json media-libs/amf-headers