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