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.
This commit is contained in:
parent
6275737170
commit
6c98078a3d
8
srcpkgs/python/INSTALL
Normal file
8
srcpkgs/python/INSTALL
Normal file
|
@ -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
|
|
@ -4,7 +4,7 @@
|
|||
#
|
||||
pkgname=python
|
||||
version=2.7.9
|
||||
revision=3
|
||||
revision=4
|
||||
wrksrc="Python-${version}"
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="
|
||||
|
|
Loading…
Reference in New Issue
Block a user