I use Gentoo on my headless computing server where CUDA programs are running. Thus, I have no need in X server, just nvidia proprietary kernel module. But emerge'ing nvidia-drivers wants to install xorg-server and tens dependent packages, from which I want to get rid. So I suggest splitting X-related features to X use flag (which should be activated by default) and leaving only kernel module and crucial tools installed without this useflag. I tried fixing ebuild at local overlay, but I got stuck with it. Reproducible: Always Expected Results: Installing X server related features depending on X use flag.
You're more than welcome to implement it. There was another bug report for this same thing so maybe you can work with that guy.
Created attachment 312527 [details] ebuild with X use flag, dropped installation of nvidia-settings Ebuild with X flag responsible for installation of Xorg libraries nvidia-settings installation is completely dropped (no gtk or tools flags) in favor of media-video/nvidia-settings
Created attachment 312529 [details, diff] Diff between nvidia-drivers-295.49 and X-flag enabled ebuilds Just to demonstrate differences
Attached ebuild x11-drivers/nvidia-drivers-295.49, where nvidia-settings is completely dropped (no tools or gtk use flag), in favour of https://bugs.gentoo.org/show_bug.cgi?id=404335
Dropping nvidia-settings is a non-starter. Overall I'd prefer if people kept this in their own overlay since there's not going to be a way for me to test this and will result in yet another config that will need to be supported for 1 or 2 people.
Created attachment 313107 [details] x11-drivers/nvidia-drivers-295.53 with X flag, tools flag preserved
Created attachment 318278 [details] version bump
Created attachment 318280 [details] nvidia-drivers-304.22 with X use
This has been added in 304.22.
Fixed in 304.37.