LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-24-2010, 06:18 AM   #1
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,445
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Hanging symlink: /var/X11


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?
 
Old 06-24-2010, 12:30 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Broken symlink in Slackware 13.0 as well. Interesting catch. You might want to e-mail Pat about that and get it fixed for cosmetic purposes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/var/log/wtmp vs. /var/run/utmp masenko703 Linux - Newbie 4 10-05-2012 03:41 AM
pam does not like my owner, group and date for /var/ftp. especially /var manis2008 Linux - Software 1 02-08-2008 07:36 AM
Core 4 - X11-devel complains about X11-libs which are installed Ephracis Fedora 3 09-05-2005 09:32 AM
Moving /var/adm and /var/lib - why does it hurt? J_Szucs Linux - General 1 09-15-2004 06:46 PM
RedHat 8.0 Installation hanging while formatting /var file system slangley Linux - Distributions 2 02-07-2003 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration