From 6c98078a3d62961087c384386b7d65b86132b01e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 25 Jan 2015 11:25:46 +0100 Subject: [PATCH] python: update ldconfig(1) cache if sbin/ldconfig exists. ctypes/util.py::find_library() relies on `ldconfig -p` to load the appropiate shared libraries required by python modules, and it the cache is empty it won't be able to load them. Update the ldconfig(1) but don't update the links. This fixes the first part of #914. --- srcpkgs/python/INSTALL | 8 ++++++++ srcpkgs/python/template | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/python/INSTALL diff --git a/srcpkgs/python/INSTALL b/srcpkgs/python/INSTALL new file mode 100644 index 00000000000..52854f301e5 --- /dev/null +++ b/srcpkgs/python/INSTALL @@ -0,0 +1,8 @@ +case "${ACTION}" in +post) + # ctypes/util.py find_library() uses ldconfig -p! + if [ -x sbin/ldconfig ]; then + sbin/ldconfig -X || : + fi + ;; +esac diff --git a/srcpkgs/python/template b/srcpkgs/python/template index 76ff9c328e9..180cf575b10 100644 --- a/srcpkgs/python/template +++ b/srcpkgs/python/template @@ -4,7 +4,7 @@ # pkgname=python version=2.7.9 -revision=3 +revision=4 wrksrc="Python-${version}" hostmakedepends="pkg-config" makedepends="