I've noticed that this symlink was pointing to /var/X11R6, which doesn't exist on my system, which is running a newly installed copy of Slackware 13.1.
Upon investigation, it was made by the doinst.sh script from the aaa_base package.
The script looks for /usr/X11R6/lib/X11, and is supposed to create the /var/X11R6 symlink if the directory exists.
The problem is that the aaa_base package is installed first, no? On a clean system, there is no X11 directory for it to link to...
The offending part of the script:
Code:
# Did anything ever use this? I don't know, but if we're keeping all
# this other garbage then it probably won't hurt:
if [ -d usr/X11R6/lib/X11 ]; then
( cd var ; rm -rf X11R6 )
( cd var ; ln -sf ../usr/X11R6/lib/X11 X11R6 )
elif [ -d usr/X11R6/lib64/X11 ]; then
( cd var ; rm -rf X11R6 )
( cd var ; ln -sf ../usr/X11R6/lib64/X11 X11R6 )
fi
At the time this part of the script runs, /usr/X11R6/lib/X11 doesn't exist, so it doesn't create the link.
Code:
# As long as we're producing clutter:
( cd var ; rm -rf X11 )
( cd var ; ln -sf X11R6 X11 )
Then this is run without any sanity checks, hence the hanging symlink.
Anyone else have a hangin' X11 under /var?