LinuxQuestions.org
Help answer threads with 0 replies.
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 07-07-2007, 11:11 PM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Recursive sym link in aaa_base-12.0?


Hi All,

I noticed a recursive sym link created in the new a/aaa_base-12.0 package. In the doinstall.sh script there is the command:

( cd /usr/bin ; ln -sf . X11 )

This creates a recursive link. I can't say if the recursive effect hinders performance in any way, but perhaps some of you experienced hackers can recommend a cure, if any.

Thanks.
 
Old 07-08-2007, 01:47 AM   #2
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
It's just a compat symlink incase anything is hardwired to look in /usr/bin/X11 (It'll see everything in /usr/bin). Ofcourse that makes absolutely no sense seeing as how X11 is installed with --prefix=/usr and /usr/bin is in the $PATH.

Seems like a completely redundant and pointless thing to do IMO... I've actually noticed ALOT of wierd pointless symlinks on Slack 12. Not overly happy with it but oh well. Just delete it if it bothers you. It won't cause any performance loss in the slightest (with it there or not) if thats your concern.
 
Old 07-08-2007, 02:23 AM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Pat has taken the very cautious route with the amount of directory changes that we have in Slackware 12 over 11. There are a number of symlinks there "just in case" to prevent any issues with backwards compatibility. Most are probably completely useless, but Pat always likes to take the safest course (which is really one of the reasons we are all here in the first place).
 
Old 07-08-2007, 12:27 PM   #4
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Yea. I'm guessing it's there incase the user compiles an X11 prog that possibly defaults to putting it's binaries in /usr/bin/X11 and said user doesn't give a --prefix or --bindir arguement. Or you could grep recursively in /var/log/packages for /usr/bin/X11. If it's not found on a full slackware install then that's why it's there. If it is found, then it's just a minor hack to get everything in the right place.
 
Old 07-08-2007, 04:10 PM   #5
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
I'm not questioning that Pat inserted the link for backward compatibility --- that the link was created for that reason seems obvious to me. I'm only commenting that the link is recursive. Recursive means the link refers to itself. Because the link is recursive, the subdirectory structure of the link never ends. Open the link in a file manager and see.

Doesn't seem harmful in any way, but the concept of a recursive sym link seems odd to me. I deleted the link and merely posted the note here to inform/help fellow Slackers.
 
Old 07-08-2007, 04:19 PM   #6
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Well... How would you propose to make a symlink in /usr/bin that points to /usr/bin? Ofcourse it's going to be recursive..
 
Old 07-08-2007, 07:21 PM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
It isn't recursive, as jong explained, the function of the link is to make /usr/bin/X11 link right back to /usr/bin, since the new XOrg no longer uses the X11 directories and is instead scattered around /usr like other programs generally are.

The idea is that if you have an older application that is not aware of this new directory scheme, it can still place binaries in /usr/bin/X11 (or under /usr/X11R6) and they will automatically be redirected to the correct directories transparently. Well, that is the idea anyway.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Desktop link in recursive loop rocket777 Ubuntu 4 04-26-2007 11:36 PM
What is happening in this code - Recursive link list indian Programming 9 07-24-2006 04:46 AM
Sym link disaepears after shut down/restart usr_wifi Linux - Software 0 02-13-2005 02:43 PM
Cannot get sym link from java to firefox to work Kelean Slackware 3 01-23-2005 05:06 PM
trouble with java using forefox 1.0 broken sym-link Kelean Slackware 5 12-05-2004 07:39 PM

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

All times are GMT -5. The time now is 02:03 AM.

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