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

Bug 442170

Summary: x11-drivers/nvidia-drivers: please install libnvidia-tls.so* into /usr/lib
Product: Gentoo Linux Reporter: Alexander Monakov <amonakov+bugs.gentoo>
Component: [OLD] LibraryAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: cardoe
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 442550    

Description Alexander Monakov 2012-11-07 09:37:48 UTC
This is an enhancement request to install libnvidia-tls.so* files into system library search path (/usr/lib{64,32,}), not into /usr/lib/opengl/nvidia/lib, like other driver files (e.g. libnvidia-glcore.so).

The aforementioned files do not conflict with other packages. At the moment, only libnvidia-tls.so and libGL.so are installed in /usr/lib/opengl/nvidia/lib. libGL.so obviously should stay there. As I understand, libnvidia-tls.so is installed separately due to historical reasons that do not matter today.

The current arrangement causes problems if the user runs their primary X server with open-source drivers (thus needing "eselect opengl xorg-x11"), and then starts a secondary X server that is configured to load nvidia drivers. The user then might want to run an application that loads nvidia libGL.so on the secondary X server (by setting the library to use via application-specific means, such as an environment variable), but that will fail because libnvidia-tls.so will not be found by dynamic linker lookup. In many cases, that can be worked around by pointing LD_LIBRARY_PATH to /usr/lib/opengl/nvidia/lib, but LD_LIBRARY_PATH is ignored for set-uid programs.

Examples of specific applications that will benefit from moving libnvidia-tls.so to default search path are VirtualGL (OpenGL offloading library), primus (a lightweight faster OpenGL offloading library for Bumblebee users) and possibly Chromuim (not the browser, but a complex OpenGL rendering "router" for parallel rendering). Using VirtalBox+VirtualGL is a specific real-life use case, where exporting LD_LIBRARY_PATH for libnvidia-tls.so does not work because LD_LIBRARY_PATH is ignored for set-uid programs.

Reproducible: Always
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2012-12-08 03:36:31 UTC
afaik, this is the case with 310.x