[lttng-dev] [PATCH lttng-ust] Fix: specify SONAME in python-lttngust LoadLibrary

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Tue Nov 21 16:47:13 UTC 2017


merged into master, 2.9, 2.10, thanks!

Mathieu

----- On Nov 21, 2017, at 11:11 AM, Michael Jeanson mjeanson at efficios.com 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".
> 
> Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
> ---
> python-lttngust/lttngust/loghandler.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/python-lttngust/lttngust/loghandler.py
> b/python-lttngust/lttngust/loghandler.py
> index e82cf5c..6f144ca 100644
> --- a/python-lttngust/lttngust/loghandler.py
> +++ b/python-lttngust/lttngust/loghandler.py
> @@ -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)
> --
> 2.7.4

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com


More information about the lttng-dev mailing list