Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135074 - KDE ebuilds install bogus symlinks into /usr/share/doc/HTML/<lang>/$KDEAPP
Summary: KDE ebuilds install bogus symlinks into /usr/share/doc/HTML/<lang>/$KDEAPP
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-31 14:06 UTC by Marcus Furlong
Modified: 2008-11-07 08:48 UTC (History)
3 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 Marcus Furlong 2006-05-31 14:06:51 UTC
When unmerging a KDE app that is separate from the normal kde packages (not split ebuilds, but things like kcheckgmail, koffice, amarok, etc) portage leaves the /usr/share/doc/HTML/en/$KDEAPP directory because it is not empty. It always contains a symlink to /usr/kde/3.5/share/doc/HTML/en/common, so it doesn't get deleted.

e.g.

emerge unmerge kcheckmail

...
...

--- !empty dir /usr/share/doc/HTML/en/kcheckgmail

# ls -l /usr/share/doc/HTML/en/kcheckgmail
total 0
lrwxrwxrwx 1 root root 37 2006-05-28 00:25 common -> /usr/kde/3.5/share/doc/HTML/en/common
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-31 14:20:41 UTC
The 'common' symlink is broken, i.e. points to nowhere. Looks like eclass bug to me.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-05-31 14:26:04 UTC
More exactly, the symlinks are broken for any LINGUA except 'en'.
Comment 3 Marcus Furlong 2006-06-01 16:30:37 UTC
(In reply to comment #2)
> More exactly, the symlinks are broken for any LINGUA except 'en'.
> 

Regardless of whether the symlinks are broken or not, shouldn't portage recognise them when they are installed, and delete them when unmerging?
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-06-01 16:53:33 UTC
(In reply to comment #3)
> Regardless of whether the symlinks are broken or not, shouldn't portage
> recognise them when they are installed, and delete them when unmerging?

They get unmerged just fine here. Which portage version are you talking about?
 

Comment 5 Marcus Furlong 2006-06-01 16:59:49 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Regardless of whether the symlinks are broken or not, shouldn't portage
> > recognise them when they are installed, and delete them when unmerging?
> 
> They get unmerged just fine here. Which portage version are you talking about?
> 

2.0.54-r2

Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-06-01 17:02:40 UTC
(In reply to comment #5)
> > They get unmerged just fine here. Which portage version are you talking about?

> 2.0.54-r2

Hmmm, try w/ latest 2.1 ebuild then. Works here.

Comment 7 Marcus Furlong 2006-06-01 20:38:20 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > > They get unmerged just fine here. Which portage version are you talking about?
> 
> > 2.0.54-r2
> 
> Hmmm, try w/ latest 2.1 ebuild then. Works here.
> 

2.1 works fine, so it's a 2.0 portage bug
Comment 8 Marcus Furlong 2006-06-06 21:50:45 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > > They get unmerged just fine here. Which portage version are you talking about?
> > 
> > > 2.0.54-r2
> > 
> > Hmmm, try w/ latest 2.1 ebuild then. Works here.
> > 
> 
> 2.1 works fine, so it's a 2.0 portage bug
> 

I guess since portage 2.1 is coming out RSN, I can close this bug.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-12-27 20:48:44 UTC
Well, no idea why this got resolved, since it's not resolved in any way. KDE stuff still installs broken 'common' symlink for every single LINGUA but en.
Comment 10 Jan Kundrát (RETIRED) gentoo-dev 2008-11-07 08:48:12 UTC
(In reply to comment #9)
> Well, no idea why this got resolved, since it's not resolved in any way. KDE
> stuff still installs broken 'common' symlink for every single LINGUA but en.

The target of this symlink is provided by the kde-i18n package when built with respective LINGUAS. While we could certainly hack the eclass to remove such symlinks in case the kde-i18n lacks the particular LINGUAS USE, I believe that such a behavior would be just confusing. After all, broken symlinks don't harm, as user apparently isn't using the localization (if she was, she'd have kde-i18n with proper LINGUAS in the first place).