On Tue, Jan 23, 2001 at 09:21:34PM -0500, rjwohlfar@bigfoot.com wrote:
On 22 Jan, Richard Smith wrote:
The answer is that I have a /tmp partition (shared with another distribution), and my /var is actually a link to /tmp/VAR.SuSE. So the REAL path to /etc/texmf.cnf needs an extra ../ to get back to / and thence to /etc. "find" showed up many other broken links, broken for the same reason. ... 3. (Extra) How many installations are in the same boat?
I've had the same problem with /opt. On my system, /opt is a symlink to /usr/opt. Relative symlinks under /opt (like those in GNOME) break with every upgrade. Took me two weeks to solve it the first time. Now I just remember to fix them after upgrading...
Personally, I wish packagers would use absolute paths with symlinks. Or at least with the links that go back to /.
What 'find' command did you use to get broken links?
Here's a couple of little PERL scripts I wrote to do exactly that... ------------------------- find_bad_links ------------------------ #!/usr/local/bin/perl use File::Find; find(\&wanted, "."); sub wanted { -l and not -e and print "Bad link $File::Find::name\n"; } ------------------------- rm_bad_links ------------------------ #!/usr/local/bin/perl use File::Find; find(\&wanted, "."); sub wanted { -l and not -e and ( unlink or print "Error - cannot delete $File::Find::name\n") and print "Deleted $File::Find::name\n" } --------------------------------------------------------------- -- David Smith Tel: +44 (0)1454 462380 (direct) STMicroelectronics Fax: +44 (0)1454 617910 1000 Aztec West TINA (ST only): (065) 2380 Almondsbury Home: 01454 616963 BRISTOL Mobile: 07932 642724 BS32 4SQ Work Email: Dave.Smith@st.com Home Email: David.Smith@ds-electronics.co.uk