Hi all,
I'm running Slackware64 14.1 on several computers and I observed this issue on each one of them: I have a .tgz package for TeXmacs, created using src2pkg. Whenever I install or uninstall this package (using installpkg or removepkg), my system breaks down. The icons of XFCE menus disappear, for example. The programs start misbehaving or not running at all. Although I wasn't able to reproduce it, once I even got "command not found" error for "ddate", for example. The logs in /var/log do not give any information. I can only fix the situation by going down to runlevel 1 and then up again (or, a restart of course).
By the way, I remember this sort of behaviour occurring in previous versions of Slackware, though I don't remember which packages were involved (I never had to time to investigate it carefully).
Here is the doinst.sh script of the package, which I believe is created automatically by src2pkg:
Code:
#!/bin/sh
# Figure out our root directory
ROOTDIR=$(pwd)
unset CHROOT
if [ "${ROOTDIR}" != "/" ] ; then
ROOTDIR="${ROOTDIR}/"
CHROOT="chroot ${ROOTDIR} "
fi
# update the applications menu database
if [ -x usr/bin/update-desktop-database ] ; then
${CHROOT} usr/bin/update-desktop-database -q usr/share/applications 2> /dev/null
fi
# update the gtk-icon-cache
if [ -x usr/bin/gtk-update-icon-cache ] ; then
for dir in usr/share/icons/* ; do
if [ -d $dir ]; then
${CHROOT} usr/bin/gtk-update-icon-cache --quiet -f -t $dir 2> /dev/null
fi
done
fi
# update the mime database
if [ -x usr/bin/update-mime-database ] ; then
${CHROOT} usr/bin/update-mime-database -q usr/share/mime 2> /dev/null
fi
I think this is the part which is most likely to be the root of the problem but I cannot see how. Any ideas?
Note: On Slackware 14.1 I can no more compile TeXmacs successfully (due to Guile being upgraded to version 2.0), so I can not make any tests using a freshly compiled package.