File: 0001-avoid-find_library.patch

package info (click to toggle)
python-lib1305 0~20250415.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 116 kB
  • sloc: python: 184; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: =?utf-8?b?SmFuIE1vasW+w63FoQ==?= <jan.mojzis@gmail.com>
Date: Tue, 15 Apr 2025 10:57:06 +0200
Subject: avoid find_library
Forwarded: not-needed

---
 src/lib1305/_lib.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/lib1305/_lib.py b/src/lib1305/_lib.py
index 9aff6f6..aec15ee 100644
--- a/src/lib1305/_lib.py
+++ b/src/lib1305/_lib.py
@@ -4,12 +4,8 @@ Import shared library.
 
 
 from ctypes import CDLL as _CDLL
-from ctypes.util import find_library as _find_library
 
-_libname = _find_library('1305')
-if _libname is None:
-    raise FileNotFoundError("unable to locate library '1305'")
-_lib = _CDLL(_libname)
+_lib = _CDLL('lib1305.so.1')
 
 
 def _check_input(x, xlen, name):