[RFC/PATCH] python: search parent lib directory for libnotmuch.so

2013-04-09 Thread Justus Winter
Quoting Jed Brown (2013-04-09 16:57:05) > Justus Winter <4winter at informatik.uni-hamburg.de> writes: > > > > May I ask why you cannot use LD_LIBRARY_PATH? I too install libnotmuch > > to a non-standard location as unprivileged user and to make this > > library available I add its path to

[RFC/PATCH] python: search parent lib directory for libnotmuch.so

2013-04-09 Thread Justus Winter
Hi Jed, Quoting Jed Brown (2013-04-09 04:47:26) > If libnotmuch.so is installed to a path that is not searched by > dlopen(3), we must import it using an absolute path because the Python > bindings do not have the luxury of RPATH linking. So strip off the > trailing directories from the install

[RFC/PATCH] python: search parent lib directory for libnotmuch.so

2013-04-09 Thread Jed Brown
Justus Winter <4winter at informatik.uni-hamburg.de> writes: > But why do we do that? I always thought that rpath causes more > problems and is to be avoided if possible [0]. But otoh, I didn't even > knew that the notmuch build system uses rpath. > > 0: e.g. http://wiki.debian.org/RpathIssue

[RFC/PATCH] python: search parent lib directory for libnotmuch.so

2013-04-09 Thread Jed Brown
Justus Winter <4winter at informatik.uni-hamburg.de> writes: > > May I ask why you cannot use LD_LIBRARY_PATH? I too install libnotmuch > to a non-standard location as unprivileged user and to make this > library available I add its path to LD_LIBRARY_PATH. See libdir_in_ldconfig testing in

Re: [RFC/PATCH] python: search parent lib directory for libnotmuch.so

2013-04-09 Thread Justus Winter
Hi Jed, Quoting Jed Brown (2013-04-09 04:47:26) If libnotmuch.so is installed to a path that is not searched by dlopen(3), we must import it using an absolute path because the Python bindings do not have the luxury of RPATH linking. So strip off the trailing directories from the install

Re: [RFC/PATCH] python: search parent lib directory for libnotmuch.so

2013-04-09 Thread Jed Brown
Justus Winter 4win...@informatik.uni-hamburg.de writes: May I ask why you cannot use LD_LIBRARY_PATH? I too install libnotmuch to a non-standard location as unprivileged user and to make this library available I add its path to LD_LIBRARY_PATH. See libdir_in_ldconfig testing in configure: we

Re: [RFC/PATCH] python: search parent lib directory for libnotmuch.so

2013-04-09 Thread Justus Winter
Quoting Jed Brown (2013-04-09 16:57:05) Justus Winter 4win...@informatik.uni-hamburg.de writes: May I ask why you cannot use LD_LIBRARY_PATH? I too install libnotmuch to a non-standard location as unprivileged user and to make this library available I add its path to LD_LIBRARY_PATH.

Re: [RFC/PATCH] python: search parent lib directory for libnotmuch.so

2013-04-09 Thread Jed Brown
Justus Winter 4win...@informatik.uni-hamburg.de writes: But why do we do that? I always thought that rpath causes more problems and is to be avoided if possible [0]. But otoh, I didn't even knew that the notmuch build system uses rpath. 0: e.g. http://wiki.debian.org/RpathIssue RPATH is bad

[RFC/PATCH] python: search parent lib directory for libnotmuch.so

2013-04-08 Thread Jed Brown
If libnotmuch.so is installed to a path that is not searched by dlopen(3), we must import it using an absolute path because the Python bindings do not have the luxury of RPATH linking. So strip off the trailing directories from the install location and try CDLL with an absolute path. --- This is

[RFC/PATCH] python: search parent lib directory for libnotmuch.so

2013-04-08 Thread Jed Brown
If libnotmuch.so is installed to a path that is not searched by dlopen(3), we must import it using an absolute path because the Python bindings do not have the luxury of RPATH linking. So strip off the trailing directories from the install location and try CDLL with an absolute path. --- This is