/usr/share/python/runtime.d/libboost-mpi-python1.49-dev.rtupdate is in libboost-python1.49-dev 1.49.0-3.2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | #! /bin/sh
#
# Update link-library symlinks after a Python default runtime change
set -e
die() {
echo "$@" >&2
exit 1
}
update_linklibs() {
py=$1
suf=$2
cd /usr/lib
for base in libboost_python libboost_mpi_python; do
target=${base}-${py}.${suf}
link=${base}.${suf}
test -e $target && ln -s -f $target $link || rm -f $link
done
}
remove_linklibs() {
suf=$1
cd /usr/lib
for thread in "" -mt; do
rm -f libboost_python${thread}.${suf}
rm -f libboost_mpi_python${thread}.${suf}
done
}
rtupdate() {
case "$1" in
python*) py=py`echo ${1#python} | tr -d .` ;;
*) remove ; return ;;
esac
update_linklibs $py a
update_linklibs $py so
}
remove() {
remove_linklibs a
remove_linklibs so
}
action="$1"
shift
case "$action" in
pre-rtupdate) ;;
post-rtupdate) ;;
rtupdate) rtupdate $2 ;;
remove) remove ;;
*) die "$0 called with unknown argument '$action'" ;;
esac
|