[I hate this Reply-To header setting crap... and the absence of the same in the archives.]
On Saturday 2012-02-18 09:32, Jan Engelhardt wrote:
On Friday 2012-02-17 09:16, Oleksandr Shneyder wrote:
But symlinking of /usr/lib/nx/X11/libXext.so.6 to /usr/lib/nx/X11/libNX_Xext.so.6 should work (talking about LD_LIBRARY_PATH- using programs) as long as the SONAME stays NX_Xext for automatic dependency finding of rpm (and perhaps deb?).
It is wrong solution. Only (nx|x2go)agent should be linked against nx-libs. X-clients should be linked against system X libraries. Exception is libXinerama. Against this library should be linked both - agent and client. But in case of agent libXinerama should use libXext and libX11 from nx-libs and in case of clients it should use the same libraries from system. For this reasons we exporting LD_LIBRARY_PATH=/usr/lib/nx/X11 by start of agent and
Given that the agent naturally links against libNX_X*.so now, do we still need the LD_LIBRARY_PATH hack for the agent?
LD_LIBRARY_PATH=/usr/lib/nx/X11/Xinerama (*but not /usr/lib/nx/X11*) by start of desktop environment.
link system libraries libX11 and libXext into /usr/lib/nx/X11/Xinerama /usr/lib/libX11* -> /usr/lib/nx/X11/Xinerama/libNX_X11* /usr/lib/libXext* -> /usr/lib/nx/X11/Xinerama/libNX_Xext* [and] ln -s /usr/lib/libX11.so.6 /usr/lib/nx/X11/Xinerama/libNX_X11.so.6 ln -s /usr/lib/libXext.so.6 /usr/lib/nx/X11/Xinerama/libNX_Xext.so.6
I would have my reservations about the formal stability of mixing Xlib implementations within a single program.