1Hard code library loading
2
3Shortcut the search for the libraries in case the built in
4find_library is broken.
5
6As buildroot does not ship any of the external programs that the core
7procedure use to find libraries use the canonical name of the shared
8object and load it.
9
10In this case this affects loading libftdi and libusb.
11
12This should be reliable as we specify said libs as dependencies of
13this package.
14
15Signed-off-by: Christian Kellermann <christian.kellermann@solectrix.de>
16
17---
18diff -purN pylibftdi-0.21.0.orig/src/pylibftdi/driver.py pylibftdi-0.21.0/src/pylibftdi/driver.py
19--- pylibftdi-0.21.0.orig/src/pylibftdi/driver.py	2015-04-26 22:41:39.000000000 +0200
20+++ pylibftdi-0.21.0/src/pylibftdi/driver.py	2017-02-27 13:08:56.502958000 +0100
21@@ -148,9 +148,8 @@ class Driver:
22                     lib = getattr(cdll, lib_path)
23                     break
24         if lib is None:
25-            raise LibraryMissingError(
26-                f"{name} library not found (search: {str(search_list)})"
27-            )
28+            return cdll.LoadLibrary(name + '.so')
29+
30         return lib
31
32     @property
33