Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909181 - x11-drivers/nvidia-drivers vulkan icd does not require X
Summary: x11-drivers/nvidia-drivers vulkan icd does not require X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ionen Wolkens
URL: https://download.nvidia.com/XFree86/L...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-26 13:45 UTC by om3i
Modified: 2023-06-27 03:51 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description om3i 2023-06-26 13:45:06 UTC
Nvidia says that libEGL_nvidia.so can work as an icd without X.
https://download.nvidia.com/XFree86/Linux-x86_64/535.54.03/README/commonproblems.html

Reproducible: Always
Comment 1 Ionen Wolkens gentoo-dev 2023-06-27 01:12:53 UTC
Interesting, I wasn't aware of the alternative.

Relevant text for reference:
>Q: The Vulkan ICD has dependencies on X libraries
>By default, nvidia-installer creates a /etc/vulkan/icd.d/nvidia_icd.json that points to libGLX_nvidia.so.0. This DSO has dependencies on X libraries.
>It is possible to avoid those dependencies by hand editing that file to point to libEGL_nvidia.so.0 instead. However in that case, an application will only be able to create non-X swapchains if it wants to present frames.

sed'ing it with USE=-X would be trivial
Comment 2 Larry the Git Cow gentoo-dev 2023-06-27 03:51:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcea6dadf4e471de98323346f9855f7c0efedd72

commit fcea6dadf4e471de98323346f9855f7c0efedd72
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-06-27 01:42:28 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-06-27 03:48:59 +0000

    x11-drivers/nvidia-drivers: update and install vulkan icd for USE=-X
    
    Not really tested, but it should be harmless vs not having the file.
    
    Skipping revbump, letting it propagate on kernel upgrades / bumps
    (470 and 525 are bumped in next commits). Please rebuild if want this
    now for other versions.
    
    For 390.x the icd is a template, while the newer drivers had hardcoded
    libGLX, but docs mentions libEGL is usable for all versions (unlikely
    to be useful for 390.x given its partial wayland support is broken).
    
    Closes: https://bugs.gentoo.org/909181
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild       | 9 +++------
 x11-drivers/nvidia-drivers/nvidia-drivers-470.182.03-r2.ebuild | 9 ++++-----
 x11-drivers/nvidia-drivers/nvidia-drivers-525.116.04-r2.ebuild | 8 ++++----
 x11-drivers/nvidia-drivers/nvidia-drivers-525.47.27.ebuild     | 8 ++++----
 x11-drivers/nvidia-drivers/nvidia-drivers-535.54.03.ebuild     | 8 ++++----
 5 files changed, 19 insertions(+), 23 deletions(-)