Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 663834 - dev-util/nvidia-cuda-toolkit should not require x11-drivers/nvidia-drivers to be built with X use flag
Summary: dev-util/nvidia-cuda-toolkit should not require x11-drivers/nvidia-drivers to...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on: 663830
Blocks:
  Show dependency tree
 
Reported: 2018-08-17 01:13 UTC by Nathan Lewis
Modified: 2021-04-24 13:24 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch demonstrating change (nvidia-cuda-toolkit-9.2.88.ebuild.patch,455 bytes, patch)
2018-08-17 01:13 UTC, Nathan Lewis
Details | Diff
patch demonstrating change (nvidia-drivers-396.45.ebuild.patch,3.06 KB, patch)
2018-08-23 21:06 UTC, Nathan Lewis
Details | Diff
patch demonstrating change (nvidia-cuda-toolkit-9.2.88.ebuild,455 bytes, patch)
2018-08-23 21:28 UTC, Nathan Lewis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Lewis 2018-08-17 01:13:57 UTC
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.
Comment 1 Nathan Lewis 2018-08-23 21:06:56 UTC
Created attachment 544708 [details, diff]
patch demonstrating change
Comment 2 Nathan Lewis 2018-08-23 21:24:14 UTC
Confirmed that both CUDA and OpenCL works on with this patch.
Comment 3 Nathan Lewis 2018-08-23 21:28:00 UTC
Created attachment 544728 [details, diff]
patch demonstrating change

attached wrong patch
Comment 4 Marius Brehler 2018-08-24 07:47:33 UTC
(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?
Comment 5 Nathan Lewis 2018-08-26 02:44:16 UTC
> Have re-emerged nvidia-drivers without X?

Correct.  Having re-emerged nvidia-drivers without X with the associated nvidia-drivers patch.
Comment 6 Benda Xu gentoo-dev 2020-02-27 01:44:33 UTC
Thank you! Looks good to me.
Comment 7 Ionen Wolkens gentoo-dev 2021-03-21 18:04:35 UTC
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.
Comment 8 Larry the Git Cow gentoo-dev 2021-04-24 13:24:52 UTC
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(-)