python: patch from Alpine to find shlibs correctly with musl.

This commit is contained in:
Juan RP 2015-05-31 17:13:04 +02:00
parent b4bfa349d9
commit 5f7498c240
2 changed files with 13 additions and 4 deletions

View 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()

View File

@ -4,7 +4,7 @@
# #
pkgname=python pkgname=python
version=2.7.10 version=2.7.10
revision=2 revision=3
wrksrc="Python-${version}" wrksrc="Python-${version}"
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends=" makedepends="
@ -42,9 +42,7 @@ do_configure() {
./configure ${configure_args} ${_args} \ ./configure ${configure_args} ${_args} \
--with-threads --enable-ipv6 --with-signal-module \ --with-threads --enable-ipv6 --with-signal-module \
--with-system-ffi --enable-unicode=ucs4 --with-system-expat \ --with-system-ffi --enable-unicode=ucs4 --with-system-expat \
--with-wctype-functions --enable-shared \ --with-wctype-functions --enable-shared
ac_cv_file__dev_ptc=no ac_cv_file__dev_ptmx=yes \
ac_cv_have_long_long_format=yes
} }
do_build() { do_build() {