Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277858 - eselect-ruby could remove broken symlinks from /usr/bin/
Summary: eselect-ruby could remove broken symlinks from /usr/bin/
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-14 19:57 UTC by Maciej Mrozowski
Modified: 2009-09-09 14:13 UTC (History)
1 user (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 Maciej Mrozowski gentoo-dev 2009-07-14 19:57:21 UTC
eselect-ruby switches between available ruby packages (using symlinks) - it would be nice if it cleaned after itself (leftovers of symlinks to ruby executables).
Comment 1 Daniel Robbins 2009-07-24 01:59:46 UTC
What version of eselect-ruby, and can you give specific examples of what you mean when you say that there are "leftovers of symlinks"?
Comment 2 Maciej Mrozowski gentoo-dev 2009-07-24 19:38:31 UTC
Current latest stable for most architectures:
app-admin/eselect-ruby-20081227

But that doesn't matter as any eselect-ruby ebuilds are mostly identical.

And I'm talking about files (looks like ${ROOT} with additional slash was appended, not sure whether that changes anything if there's no symlink removal code in pkg_postrm):

/usr/bin/erb -> (broken link to) //usr/bin/erb18
/usr/bin/irb -> (broken link to) //usr/bin/irb18
/usr/bin/rdoc -> (broken link to) //usr/bin/rdoc18
/usr/bin/ri -> (broken link to) //usr/bin/ri18
/usr/bin/ruby -> (broken link to) //usr/bin/ruby18
/usr/bin/testrb -> (broken link to) //usr/bin/testrb

Steps to reproduce:
1. emerge -va1 ruby
2. eselect ruby set 1
3. emerge -C ruby --depclean (or manually uninstall eselect-ruby)
Comment 3 Daniel Robbins 2009-07-24 19:42:30 UTC
gotcha. thanks for the info, I'll look into it.
Comment 4 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-07-24 19:44:08 UTC
(In reply to comment #3)
> gotcha. thanks for the info, I'll look into it.
> 

...and will attach a patch, if I come up with something.
Comment 5 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-07-31 20:10:28 UTC
Fixed in Git, scheduled for release and CVS inclusion at the next ruby revbump/patchlevel bump. Thanks!
Comment 6 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-09-09 14:13:12 UTC
Just added eselect-ruby-20090909 to CVS, it includes the fix.