xbps-triggers: pycompile: update ldconfig(8) cache if sbin/ldconfig exists.
ldconfig(8) cache must be updated to make python's find_library() really find the required shared libraries; hence the cache must be up to date. Close #914
This commit is contained in:
parent
6c98078a3d
commit
1a292fc754
|
@ -36,6 +36,13 @@ UPDATE="$5"
|
|||
|
||||
export PATH="$PATH:/usr/local/bin"
|
||||
|
||||
update_ldcache() {
|
||||
if [ -x sbin/ldconfig ]; then
|
||||
echo "Updating ldconfig(8) cache..."
|
||||
sbin/ldconfig -X || :
|
||||
fi
|
||||
}
|
||||
|
||||
compile()
|
||||
{
|
||||
for f in ${pycompile_dirs}; do
|
||||
|
@ -57,6 +64,7 @@ compile()
|
|||
usr/lib/python${pycompile_version}/site-packages/${f}
|
||||
fi
|
||||
done
|
||||
update_ldcache
|
||||
}
|
||||
|
||||
remove()
|
||||
|
@ -77,6 +85,7 @@ remove()
|
|||
rm -f usr/lib/python${pycompile_version}/site-packages/${f%.py}.py[co]
|
||||
fi
|
||||
done
|
||||
update_ldcache
|
||||
}
|
||||
|
||||
case "$ACTION" in
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'xbps-triggers'
|
||||
pkgname=xbps-triggers
|
||||
version=0.89
|
||||
version=0.90
|
||||
revision=1
|
||||
noarch=yes
|
||||
bootstrap=yes
|
||||
|
|
Loading…
Reference in New Issue