[X2go-Dev] OT: exclude /usr/lib/x2go/libX11.so.6 from being linked by other apps

Milan Knížek knizek.confy at gmail.com
Sat Oct 15 20:39:24 CEST 2011


V Sat, 15 Oct 2011 20:32:38 +0300
Ivan Kabaivanov <chepati at yahoo.com> napsáno:

> Hi Milan,

Hello Ivan,
> 
> check if /usr/lib/x2go is listed in /etc/ld.so.conf (or whatever 
> file/directory your distribution is using).  If it is listed, remove
> it and re-run /sbin/ldconfig.  Then create a wrapper to start
> x2goagent with the correct LD_LIBRARY_PATH.

The man page of ldconfig reads that /usr/lib is a "trusted" directory
and as such is not specified extra in /etc/ld.so.conf.d
nor /etc/ld.so.conf. /usr/lib/x2go is neither listed in the ld.so conf
files.

So far, the only problem seems to be with darktable, whose cmake script
looks in any subdir of /usr/lib - the configuration log file
shows it found x2go/libx11.so.6. I am not sure if it is an error of
darktable cmake configuration or if this is an expected behaviour.

Just for the curiosity, I have checked all binaries in /usr/bin and none
is dynamically linked to /usr/lib/x2go/...

> Devs, perhaps it would be a good idea to change the x2goagent code
> and rename the above libs to ${lib}-x2go.so.* or some such?  Then
> they can safely be installed in /usr/lib without fear of interfering
> with other programs.

This could be a solution for me. As a workaround, I have simply
moved /usr/lib/x2go temporarily away and compiled darktable.

Thanks for the hints.

Regards,
Milan 

-- 
http://www.milan-knizek.net/
About linux and photography (Czech only)
O linuxu a fotografování



More information about the x2go-dev mailing list