diff --git a/srcpkgs/python/patches/musl-find_library.patch b/srcpkgs/python/patches/musl-find_library.patch index f5f7f76402..9e5462c0c5 100644 --- a/srcpkgs/python/patches/musl-find_library.patch +++ b/srcpkgs/python/patches/musl-find_library.patch @@ -1,4 +1,4 @@ -See http://bugs.alpinelinux.org/issues/4512 +http://bugs.alpinelinux.org/issues/5038 --- Lib/ctypes/util.py +++ Lib/ctypes/util.py @@ -27,13 +27,13 @@ See http://bugs.alpinelinux.org/issues/4512 + for d in paths: + f = os.path.join(d, name) + if _is_elf(f): -+ return f ++ return os.path.basename(f) + + prefix = os.path.join(d, 'lib'+name) + for suffix in ['.so', '.so.*', '.*.so.*']: + for f in glob('{0}{1}'.format(prefix, suffix)): + if _is_elf(f): -+ return f ++ return os.path.basename(f) + def find_library(name): - return _findSoname_ldconfig(name) or _get_soname(_findLib_gcc(name)) diff --git a/srcpkgs/python/template b/srcpkgs/python/template index 11fbee2601..9bbf3409cc 100644 --- a/srcpkgs/python/template +++ b/srcpkgs/python/template @@ -4,7 +4,7 @@ # pkgname=python version=2.7.11 -revision=5 +revision=6 wrksrc="Python-${version}" hostmakedepends="pkg-config" makedepends="