File: hardcode-library-name.diff

package info (click to toggle)
python-xmp-toolkit 2.0.1~git20140309.5437b0a-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,444 kB
  • ctags: 476
  • sloc: python: 2,890; makefile: 66; sh: 2
file content (17 lines) | stat: -rw-r--r-- 557 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Hardcode library name (instead of using ctypes.util.find_library).
Author: Jakub Wilk <jwilk@debian.org>
Forwarded: no
Reviewed-by: Daniel Stender <debian@danielstender.com>
Last-Update: 2014-07-14

--- a/libxmp/exempi.py
+++ b/libxmp/exempi.py
@@ -49,7 +49,7 @@ def _load_exempi():
     """
     Loads exempi library.
     """
-    path = ctypes.util.find_library('exempi')
+    path = 'libexempi.so.3'
     if path is None:
         if platform.system().startswith('Darwin'):
             if os.path.exists('/opt/local/lib/libexempi.dylib'):