change library path to avoid messing up lib search order
Task Info (Flyspray) | |
---|---|
Opened By | Oliver Mangold (omangold) |
Task ID | 67818 |
Type | Bug Report |
Project | Community Packages |
Category | Packages |
Version | None |
OS | All |
Opened | 2020-09-03 10:33:01 UTC |
Status | Assigned |
Assignee | Sven-Hendrik Haase (Svenstaro) |
Details
Description:
vglrun adds the vgl libdir to LD_LIBRARY_PATH. If this is /usr/lib, as is the case for the arch package, this will change the search order for libraries, moving /usr/lib before the dirs given in /etc/ld.so.conf.d. I think this is a (potential) source for various kinds of trouble. Actually I have reason to override some system libraries on my installation by adding extra entries in /etc/ld.so.conf.d.
An easy fix is to change the vgl libdir to something else, which contains only the vgl libs, e.g. /usr/lib/virtualgl. See patch below.
Additional info:
- package version(s): 2.6.4-1
Fix:
--- PKGBUILD.orig 2020-09-03 12:19:23.201260540 +0200
+++ PKGBUILD 2020-09-03 12:19:33.277890889 +0200
@@ -32,7 +32,7 @@
-DCMAKE_INSTALL_PREFIX=/usr
-DTJPEG_INCLUDE_DIR=/usr/include
-DTJPEG_LIBRARY=/usr/lib/libturbojpeg.so \
-
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-
-DCMAKE_INSTALL_LIBDIR=/usr/lib/virtualgl \ -DCMAKE_INSTALL_BINDIR=/usr/bin \ -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${pkgname} \ -DVGL_FAKEXCB=1