[Python-modules-commits] [pyudev] 04/08: Hardcode the libudev SONAME that the package depends on.

Felix Geyer fgeyer at moszumanska.debian.org
Tue Apr 26 19:26:18 UTC 2016


This is an automated email from the git hooks/post-receive script.

fgeyer pushed a commit to branch master
in repository pyudev.

commit 282c3b14abff89a6a90b812572baed088b6d47a8
Author: SVN-Git Migration <python-modules-team at lists.alioth.debian.org>
Date:   Thu Oct 8 13:29:41 2015 -0700

    Hardcode the libudev SONAME that the package depends on.
    
     This makes sure that we don't load an untested ABI.
    Bu-Debian: https://bugs.debian.org/722573
    
    Patch-Name: libudev_loading.diff
---
 src/pyudev/_ctypeslib/libudev.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/pyudev/_ctypeslib/libudev.py b/src/pyudev/_ctypeslib/libudev.py
index 7536c9e..e757307 100644
--- a/src/pyudev/_ctypeslib/libudev.py
+++ b/src/pyudev/_ctypeslib/libudev.py
@@ -279,10 +279,7 @@ def load_udev_library():
 
     Raise :exc:`~exceptions.ImportError`, if the udev library was not found.
     """
-    udev_library_name = find_library('udev')
-    if not udev_library_name:
-        raise ImportError('No library named udev')
-    libudev = CDLL(udev_library_name, use_errno=True)
+    libudev = CDLL('libudev.so.1', use_errno=True)
     # context function signature
     for namespace, members in SIGNATURES.items():
         for funcname in members:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pyudev.git



More information about the Python-modules-commits mailing list