Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442170 - x11-drivers/nvidia-drivers: please install libnvidia-tls.so* into /usr/lib
Summary: x11-drivers/nvidia-drivers: please install libnvidia-tls.so* into /usr/lib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 442550
  Show dependency tree
 
Reported: 2012-11-07 09:37 UTC by Alexander Monakov
Modified: 2012-12-08 03:36 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 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