Am 16.02.2012 23:24, schrieb Jan Engelhardt:
On Thursday 2012-02-16 09:06, Oleksandr Shneyder wrote:
http://code.x2go.org/gitweb?p=nx-libs.git;a=commitdiff;h=07f9dfa05ab83e094e8...
Unfortunately, this patch breaking functionality of Xinerama. It rename libXinerama* to libNX_Xinerama*, which make impossible for X clients to find a modified version of Xinerama library under /usr/lib/nx/X11/Xinerama and they using a system libXinerama instead.
Simple making links /usr/lib/nx/X11/Xinerama/libNX_Xinerama* -> /usr/lib/nx/X11/Xinerama/libXinerama* don't work, because due to new build procedure libXinerama is linked against libNX_Xext and libNX_X11, not libXext and libX11.
I don't know about the Xinerama/ subdirectory, it does not get installed by nx-libs.
It is a X2Go patch. It enable support for more as one display (for example thinclients with multihead)
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 LD_LIBRARY_PATH=/usr/lib/nx/X11/Xinerama (*but not /usr/lib/nx/X11*) by start of desktop environment.
As solution, I can suggest:
leave libNX_Xinerama* under /usr/lib/nx/X11/ make symbolic links /usr/lib/nx/X11/libNX_Xinerama* -> /usr/lib/nx/X11/Xinerama/libXinerama*
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*
You cannot touch my xorg-x11 libs.
I don't want to touch your xorg-x11 libs, I just want to make links from them to /usr/lib/nx/X11/Xinerama/ : 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
libXinerama should use a system libX11 and libXext. But because of your patch now it linked against libNX_X11 and libNX_Xext. This is why we should create such symbolic links.
X2Go-Dev mailing list X2Go-Dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Oleksandr Shneyder Dipl. Informatik X2go Core Developer Team
email: oleksandr.shneyder@obviously-nice.de web: www.obviously-nice.de
--> X2go - everywhere@home