Created attachment 543748 [details, diff] patch demonstrating change depends on: https://bugs.gentoo.org/663830 the patch above removes the requirement of the X use flag to be set to install the cuda library from nvidia-drivers. With this patch, nvidia-cuda-toolkit doesn't need to require nvidia-drivers to be built with X support anymore. This patch makes the change to the dependencies. The overall goal here being to have an X-less nvidia cuda install for headless systems.
Created attachment 544708 [details, diff] patch demonstrating change
Confirmed that both CUDA and OpenCL works on with this patch.
Created attachment 544728 [details, diff] patch demonstrating change attached wrong patch
(In reply to Nathaniel Lewis from comment #2) > Confirmed that both CUDA and OpenCL works on with this patch. Have re-emerged nvidia-drivers without X?
> Have re-emerged nvidia-drivers without X? Correct. Having re-emerged nvidia-drivers without X with the associated nvidia-drivers patch.
Thank you! Looks good to me.
New ebuilds for nvidia-drivers, that is: >=nvidia-drivers-390.141-r1:0/390 >=nvidia-drivers-450.102.04-r1.ebuild:0/450 >=nvidia-drivers-460.67.ebuild now install as many libraries as possible with USE=-X (most of them have no deps). Not familiar with cuda packages, warn me if there's anything else that prevent this from being fixed from nvidia-drivers' end.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98b18cc7a8023a21fd5e9f2e4ded5fb143aa9ea4 commit 98b18cc7a8023a21fd5e9f2e4ded5fb143aa9ea4 Author: David Seifert <soap@gentoo.org> AuthorDate: 2021-04-24 13:24:36 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-04-24 13:24:36 +0000 dev-util/nvidia-cuda-toolkit: Remove "X" USEdep on x11-drivers/nvidia-drivers * With the refactored x11-drivers/nvidia-drivers ebuilds, all support libraries aren't needed anymore. Closes: https://bugs.gentoo.org/663834 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: David Seifert <soap@gentoo.org> dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.2.89-r3.ebuild | 2 +- dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-11.1.1-r2.ebuild | 2 +- dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-11.2.0-r3.ebuild | 2 +- dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-11.2.2.ebuild | 2 +- dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.61-r1.ebuild | 2 +- dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-9.2.88-r1.ebuild | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)