python,python3: Fix ctypes.util.find_library() 9542/head
authorJeffery To <jeffery.to@gmail.com>
Sun, 21 Jul 2019 20:42:54 +0000 (04:42 +0800)
committerJeffery To <jeffery.to@gmail.com>
Mon, 22 Jul 2019 13:38:08 +0000 (21:38 +0800)
commit5cb4c348a7bff94b2611b56ea625bd8a4de08e45
tree46e2f2828f276fade2b791dfa4a0b73ed5d0ddaf
parentd16a931db41875a02a8d75aad9d83de9e9a8684e
python,python3: Fix ctypes.util.find_library()

Python's ctypes.util.find_library() function currently doesn't work for
musl libraries/systems[1].

This adds a patch to fix this function, based on a patch from Alpine
Linux[2].

Fixes #9448.

[1]: https://bugs.python.org/issue21622
[2]: https://git.alpinelinux.org/aports/tree/main/python2/musl-find_library.patch

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/python/Makefile
lang/python/python/patches/024-musl-find_library.patch [new file with mode: 0644]
lang/python/python3/Makefile
lang/python/python3/patches/024-musl-find_library.patch [new file with mode: 0644]