Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89743 - Check for circular /usr/share/fonts/fonts symlink
Summary: Check for circular /usr/share/fonts/fonts symlink
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Highest major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 89745 89748 90751 90766 (view as bug list)
Depends on:
Blocks: 97572
  Show dependency tree
 
Reported: 2005-04-19 20:00 UTC by Donnie Berkholz (RETIRED)
Modified: 2006-02-12 12:58 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Donnie Berkholz (RETIRED) gentoo-dev 2005-04-19 20:00:04 UTC
Subject says it all.

Reported by netpuppy/maro on freenode.
Comment 1 Adam Jackson 2005-04-19 21:35:45 UTC
*** Bug 89745 has been marked as a duplicate of this bug. ***
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2005-04-19 22:47:58 UTC
In CVS
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2005-04-20 15:48:30 UTC
*** Bug 89748 has been marked as a duplicate of this bug. ***
Comment 4 Giacomo Perale 2005-04-20 15:56:26 UTC
I had the same problem with ebuild revision 1.5.
Comment 5 Giacomo Perale 2005-04-20 15:58:50 UTC
btw, there is an interesting patch for radeon driver that will go soon in head (at least I hope so!) and fixes many annoying font rendering glitches; you can find it here: https://bugs.freedesktop.org/show_bug.cgi?id=1424
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2005-04-20 16:38:27 UTC
The radeon patch is completely unrelated to this bug. If you want it considered, you'll have to file a new bug for it.

Any ideas why this wouldn't work, in pkg_preinst()?

    [ -d ${ROOT}usr/share/fonts/fonts ] \
        && rm -rf ${ROOT}usr/share/fonts/fonts

Note that the '-d' test should also return success for symlinks to directories.

I suppose there could be a problem if it deletes the dir just on the live filesystem and we reinstall it.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2005-04-28 15:07:16 UTC
*** Bug 90766 has been marked as a duplicate of this bug. ***
Comment 8 Seemant Kulleen (RETIRED) gentoo-dev 2005-05-10 05:06:03 UTC
*** Bug 90751 has been marked as a duplicate of this bug. ***
Comment 9 Andrew D. Keyser (aka Legoguy) 2005-05-11 17:41:11 UTC
Do you really need rm -rf just to remove a link? Removing a link works without the -r, and not using -r saves us the possibility of removing a _valid_ folder called /usr/share/fonts/fonts, just in case some interestingly configured system has one.
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2005-05-11 17:51:00 UTC
There are cases in which an invalid directory is created, rather than a symlink. One of these cases was my primary system.

I don't fully understand everything going on here, because I haven't spent much time digging. If someone would like to figure out how either a symlink or a directory ends up at this location, and how to deal with it, that would be greatly appreciated.
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2006-02-12 12:58:25 UTC
6.8.2 won't be receiving any more non-security changes, and this bug doesn't
apply to 7.0.