Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 663830

Summary: x11-drivers/nvidia-drivers requires X use flag to install various libraries which don't depend on X
Product: Gentoo Linux Reporter: Nathan Lewis <git>
Component: Current packagesAssignee: Jeroen Roovers (RETIRED) <jer>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: chutzpah
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 663834    
Attachments: patch demonstrating change
patch demonstrating change

Description Nathan Lewis 2018-08-17 00:50:21 UTC
Created attachment 543746 [details, diff]
patch demonstrating change

Hello all,

I've been working on an application which uses CUDA in a headless server environment.  The cuda library, along with cuvid, nvenc, opencl, and nvidia-ml are installed via x11-drivers/nvidia-drivers, but require the X use flag to be set for them to be installed.  These libraries do not require X to be present on the system.

I've attached a patch which moves these out of the "if use X" statement of src_install-libs().  I also removed a redundant installation of cuvid and nvenc in src_install() (they are installed by src_install-libs() later on).  I also removed libnvidia-fbc from src_install() for the same reason, but also because it depends on X and was not guarded as such.

- Nathan
Comment 1 Marius Brehler 2018-08-17 07:52:25 UTC

*** This bug has been marked as a duplicate of bug 561706 ***
Comment 2 Nathan Lewis 2018-08-23 21:29:57 UTC
Created attachment 544730 [details, diff]
patch demonstrating change

forgot ptxjit and compiler.