commit: 4805de2def756ac5b440c9a53cd1211ea4c82a68 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Fri Oct 3 22:13:51 2025 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Fri Oct 3 22:15:41 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4805de2d
net-misc/sunshine: Don't target CUDA architectures that LLVM doesn't support yet Closes: https://bugs.gentoo.org/963570 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> net-misc/sunshine/files/sunshine-new-cuda.patch | 26 +++++++++++++++++++++++ net-misc/sunshine/sunshine-2025.924.154138.ebuild | 1 + net-misc/sunshine/sunshine-9999.ebuild | 1 + 3 files changed, 28 insertions(+) diff --git a/net-misc/sunshine/files/sunshine-new-cuda.patch b/net-misc/sunshine/files/sunshine-new-cuda.patch new file mode 100644 index 000000000000..ff47bb0bc852 --- /dev/null +++ b/net-misc/sunshine/files/sunshine-new-cuda.patch @@ -0,0 +1,26 @@ +From 220c88f1a4b93ca79427803dae237aca9abf1596 Mon Sep 17 00:00:00 2001 +From: James Le Cuirot <[email protected]> +Date: Fri, 3 Oct 2025 23:06:32 +0100 +Subject: [PATCH] Don't target CUDA architectures that LLVM doesn't support yet + +Upstream builds with NVCC, but we don't. +--- a/cmake/compile_definitions/linux.cmake ++++ b/cmake/compile_definitions/linux.cmake +@@ -37,12 +37,12 @@ if(${SUNSHINE_ENABLE_CUDA}) + endif() + + # https://docs.nvidia.com/cuda/archive/12.9.0/cuda-compiler-driver-nvcc/index.html +- if(CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 12.9) ++ if(FALSE) + list(APPEND CMAKE_CUDA_ARCHITECTURES 103 121) + endif() + + # https://docs.nvidia.com/cuda/archive/13.0.0/cuda-compiler-driver-nvcc/index.html +- if(CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0) ++ if(FALSE) + list(REMOVE_ITEM CMAKE_CUDA_ARCHITECTURES 101) + list(APPEND CMAKE_CUDA_ARCHITECTURES 110) + else() +-- +2.51.0 + diff --git a/net-misc/sunshine/sunshine-2025.924.154138.ebuild b/net-misc/sunshine/sunshine-2025.924.154138.ebuild index 27b23cb47fc5..d88f9a6ecc64 100644 --- a/net-misc/sunshine/sunshine-2025.924.154138.ebuild +++ b/net-misc/sunshine/sunshine-2025.924.154138.ebuild @@ -190,6 +190,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-2025.122.141614-nvcodec.patch + "${FILESDIR}"/${PN}-new-cuda.patch ) # Make this mess a bit simpler. diff --git a/net-misc/sunshine/sunshine-9999.ebuild b/net-misc/sunshine/sunshine-9999.ebuild index 27b23cb47fc5..d88f9a6ecc64 100644 --- a/net-misc/sunshine/sunshine-9999.ebuild +++ b/net-misc/sunshine/sunshine-9999.ebuild @@ -190,6 +190,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-2025.122.141614-nvcodec.patch + "${FILESDIR}"/${PN}-new-cuda.patch ) # Make this mess a bit simpler.
