File: 0001-hardcode-library-name.patch

package info (click to toggle)
python-xmp-toolkit 2.0.1%2Bgit20140309.5437b0a-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,572 kB
  • ctags: 601
  • sloc: python: 2,889; makefile: 62; sh: 12
file content (24 lines) | stat: -rw-r--r-- 765 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From a724f0910b945f13998c988887dbbe78935f096f Mon Sep 17 00:00:00 2001
From: Jakub Wilk <jwilk@debian.org>
Date: Sun, 18 Oct 2015 00:34:45 +0200
Subject: hardcode-library-name

   Hardcode library name (instead of using ctypes.util.find_library).
   Forwarded: no
---
 libxmp/exempi.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libxmp/exempi.py b/libxmp/exempi.py
index 683e240..5252841 100644
--- 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'):