Fix: specify SONAME in python-lttngust LoadLibrary
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 21 Nov 2017 16:11:15 +0000 (11:11 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 21 Nov 2017 16:45:49 +0000 (11:45 -0500)
When loading the python agent library with ctypes in the python
bindings, specify the SONAME. This will make sure we load the proper
library in the event of a SONAME bump and the bindings will work without
having to install the "dev" package which in most distros contains the
non-versionned ".so".

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
python-lttngust/lttngust/loghandler.py

index e82cf5c5091bc5c53a68bf08b248d2f038a300a3..6f144cacd8c96b1b5341dd6150be7fb5987cfa07 100644 (file)
@@ -22,7 +22,7 @@ import ctypes
 
 
 class _Handler(logging.Handler):
-    _LIB_NAME = 'liblttng-ust-python-agent.so'
+    _LIB_NAME = 'liblttng-ust-python-agent.so.0'
 
     def __init__(self):
         super(self.__class__, self).__init__(level=logging.NOTSET)
This page took 0.025417 seconds and 4 git commands to generate.