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"
|
export PATH="$PATH:/usr/local/bin"
|
||||||
|
|
||||||
|
update_ldcache() {
|
||||||
|
if [ -x sbin/ldconfig ]; then
|
||||||
|
echo "Updating ldconfig(8) cache..."
|
||||||
|
sbin/ldconfig -X || :
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
compile()
|
compile()
|
||||||
{
|
{
|
||||||
for f in ${pycompile_dirs}; do
|
for f in ${pycompile_dirs}; do
|
||||||
@ -57,6 +64,7 @@ compile()
|
|||||||
usr/lib/python${pycompile_version}/site-packages/${f}
|
usr/lib/python${pycompile_version}/site-packages/${f}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
update_ldcache
|
||||||
}
|
}
|
||||||
|
|
||||||
remove()
|
remove()
|
||||||
@ -77,6 +85,7 @@ remove()
|
|||||||
rm -f usr/lib/python${pycompile_version}/site-packages/${f%.py}.py[co]
|
rm -f usr/lib/python${pycompile_version}/site-packages/${f%.py}.py[co]
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
update_ldcache
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$ACTION" in
|
case "$ACTION" in
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Template file for 'xbps-triggers'
|
# Template file for 'xbps-triggers'
|
||||||
pkgname=xbps-triggers
|
pkgname=xbps-triggers
|
||||||
version=0.89
|
version=0.90
|
||||||
revision=1
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user