Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342719 - installing rubygems after ruby does not create gem symlink
Summary: installing rubygems after ruby does not create gem symlink
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-26 08:03 UTC by Fabian Groffen
Modified: 2010-10-26 10:16 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 Fabian Groffen gentoo-dev 2010-10-26 08:03:29 UTC
Installing rubygems after ruby doesn't cause eselect ruby set X to be called, and hence the usr/bin/gem symlink isn't automatically generated after the ebuild has installed.

One has to run eselect ruby set X manually to get this symlink (and hence gem can be found by configure and the like).

I suggest adding a pkg_post_inst function which calls eselect ruby in the right way to make sure the gem symlink exists after installing rubygems.
Comment 1 Alex Legler (RETIRED) archtester gentoo-dev Security 2010-10-26 09:52:00 UTC
What version of rubygems are you using?
I have added such a feature in 1.3.6-r1.
Comment 2 Fabian Groffen gentoo-dev 2010-10-26 10:16:54 UTC
Weird, I installed it on a virgin system and got this problem.  I now did the same on another system and there it works.  Indeed calls eselect ruby.

I don't have the logs any more, so I can't check what went wrong.  I'll assume some earth beam or whatever for now.  Sorry for the hassle.