python: patch from Alpine to find shlibs correctly with musl.
This commit is contained in:
parent
b4bfa349d9
commit
5f7498c240
2 changed files with 13 additions and 4 deletions
11
srcpkgs/python/patches/find_library.patch
Normal file
11
srcpkgs/python/patches/find_library.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- Lib/ctypes/util.py.orig
|
||||
+++ Lib/ctypes/util.py
|
||||
@@ -227,7 +227,7 @@
|
||||
abi_type = mach_map.get(machine, 'libc6')
|
||||
|
||||
# XXX assuming GLIBC's ldconfig (with option -p)
|
||||
- expr = r'\s+(lib%s\.[^\s]+)\s+\(%s' % (re.escape(name), abi_type)
|
||||
+ expr = r'\s+(lib%s\.[^\s]+)\s+\(' % (re.escape(name))
|
||||
f = os.popen('/sbin/ldconfig -p 2>/dev/null')
|
||||
try:
|
||||
data = f.read()
|
|
@ -4,7 +4,7 @@
|
|||
#
|
||||
pkgname=python
|
||||
version=2.7.10
|
||||
revision=2
|
||||
revision=3
|
||||
wrksrc="Python-${version}"
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="
|
||||
|
@ -42,9 +42,7 @@ do_configure() {
|
|||
./configure ${configure_args} ${_args} \
|
||||
--with-threads --enable-ipv6 --with-signal-module \
|
||||
--with-system-ffi --enable-unicode=ucs4 --with-system-expat \
|
||||
--with-wctype-functions --enable-shared \
|
||||
ac_cv_file__dev_ptc=no ac_cv_file__dev_ptmx=yes \
|
||||
ac_cv_have_long_long_format=yes
|
||||
--with-wctype-functions --enable-shared
|
||||
}
|
||||
|
||||
do_build() {
|
||||
|
|
Loading…
Reference in a new issue