python: patch from Alpine to find shlibs correctly with musl.
This commit is contained in:
parent
b4bfa349d9
commit
5f7498c240
|
@ -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
|
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() {
|
||||||
|
|
Loading…
Reference in New Issue