From 5f7498c240e350199645aa93012699cfdd3f24e8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 31 May 2015 17:13:04 +0200 Subject: [PATCH] python: patch from Alpine to find shlibs correctly with musl. --- srcpkgs/python/patches/find_library.patch | 11 +++++++++++ srcpkgs/python/template | 6 ++---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/python/patches/find_library.patch diff --git a/srcpkgs/python/patches/find_library.patch b/srcpkgs/python/patches/find_library.patch new file mode 100644 index 00000000000..17f6516c5ca --- /dev/null +++ b/srcpkgs/python/patches/find_library.patch @@ -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() diff --git a/srcpkgs/python/template b/srcpkgs/python/template index 7318cd50890..d10e8bb8849 100644 --- a/srcpkgs/python/template +++ b/srcpkgs/python/template @@ -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() {