Skip to contentSkip to conversation

Fix: specify SONAME in python-lttngust LoadLibrary

PATCH Mathieu Desnoyers 1 participant 1 message Nov 21, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mathieu Desnoyers

author Applied
#1 lore raw

merged into master, 2.9, 2.10, thanks!

Mathieu

Quoted 27 lines · ----- On Nov 21, 2017, at 11:11 AM, Michael Jeanson [email protected] wrote:

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".

---
python-lttngust/lttngust/loghandler.py | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
python-lttngust/lttngust/loghandler.py +0 -0
index e82cf5c..6f144ca 100644
@@ -22,7 +22,7 @@ import ctypes
 
 

class _Handler(logging.Handler):

python-lttngust/lttngust/loghandler.py +1 -2
-    _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)
--

2.7.4

Signature · 7 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev