Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132259 - alternatives.eclass doesn't clear symlink on unmerge
Summary: alternatives.eclass doesn't clear symlink on unmerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 173522 203562 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-04 07:50 UTC by Anders Rune Jensen (RETIRED)
Modified: 2007-12-28 14:17 UTC (History)
6 users (show)

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


Attachments
Patch for alternatives.eclass (alternatives.eclass.patch,437 bytes, patch)
2007-05-08 19:27 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Rune Jensen (RETIRED) gentoo-dev 2006-05-04 07:50:34 UTC
I used the alternatives.eclass on a slotted ebuild (sqlite) and found out that when I unmerged both slotted packages the symlink was not cleared. I would assume that it was deleted with the last package that needed it. Which package is owned the symlink afterwards?

Anyway my intuition tells me that it needs to be deleted. Any reason why it is not?
Comment 1 Kalin KOZHUHAROV 2007-02-11 17:10:37 UTC
Yup, confirming this for media-gfx/xloadimage-4.1-r4.ebuild ...

/usr/bin/xview is not owned by any package, but is created by xloadimage that inherits alternatives.eclass

A few other affected ebuilds (ebuilds using alternatives_makesym)

www-client/w3mmee
media-gfx/xli
media-gfx/xloadimage
dev-ruby/ruby-config

However, I don't use ppc-macos ...
Comment 2 Ulrich Müller gentoo-dev 2007-05-08 19:27:39 UTC
Created attachment 118618 [details, diff]
Patch for alternatives.eclass

It would be easy to fix this, see attached patch.

(app-editors/emacs{,-cvs} had used alternatives.eclass, too. We have switched to an eselect module now, but had to add some extra cleanup code to catch the case that there are stale old symlinks.)
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2007-05-14 17:33:52 UTC
*** Bug 173522 has been marked as a duplicate of this bug. ***
Comment 4 Ulrich Müller gentoo-dev 2007-05-15 15:22:33 UTC
Fixed in CVS.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-12-28 14:17:20 UTC
*** Bug 203562 has been marked as a duplicate of this bug. ***