Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334177 - rubinius: new package, a fast Ruby VM
Summary: rubinius: new package, a fast Ruby VM
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Gentoo Ruby Team
URL: http://rubini.us/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 01:25 UTC by Judson
Modified: 2011-10-21 19:32 UTC (History)
2 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 Judson 2010-08-24 01:25:23 UTC
No ebuild exists for Rubinius in either the main repo or in sunrise repo.

Reproducible: Always

Steps to Reproduce:
Look in /usr/portage or /usr/local/portage/sunrise for "rubinius" - nothing found



I'm specifically adding this bug because I'm trying to follow the steps listed in 

http://overlays.gentoo.org/proj/sunrise/wiki/HowToCommit

I already have an ebuild written for Rubinius that I'd like some advice on how to improve the style on.  Likewise, I'd love to see Rubinius get first-class VM treatment in Gentoo - ruby-eselect etc.
Comment 1 Dane Smith (RETIRED) gentoo-dev 2010-08-24 01:27:47 UTC
Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Thanks,
On behalf of the Gentoo Sunrise Team,

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Comment 2 Judson 2011-02-22 22:11:12 UTC
This soon be in the sunrise overlay. You will be able find it at:
http://overlays.gentoo.org/proj/sunrise/browser/reviewed/dev-lang/rubinius
Comment 3 Hans de Graaff gentoo-dev Security 2011-02-25 19:54:39 UTC
I've played a bit more with the ebuild and found some more things that need fixing.

The build system tries to install things via sudo. It shouldn't do that.

There are several bundled libraries. At least libffi, libtommath and udis86 are already part of Gentoo and should be used instead of the bundled versions. 

Longer term we should also unbundle libgdtoa and onig.

It also looks like the internal copy of llvm is being compiled regardless of the ebuild settings. In these cases my preference is always to remove the bundled code in src_prepare to make it clear we really don't want that. :-) 

The specs with bin/mspec seem to fail right away :-(
Comment 4 Judson 2011-02-25 20:26:53 UTC
I can look into unbundling the other libraries - is it reasonable to do that in src_prepare?  I suspect upstream will be resistant to modifying their build process "for gentoo"

Re: mspec - boy, do I know.  I'm working with upstream to reproduce the issues so they can be corrected.
Comment 5 Hans de Graaff gentoo-dev Security 2011-02-27 07:45:09 UTC
(In reply to comment #4)
> I can look into unbundling the other libraries - is it reasonable to do that in
> src_prepare?  I suspect upstream will be resistant to modifying their build
> process "for gentoo"

Normally an upstream provides a configuration option to select between the OS version and the bundled one, that would be nice here. Potential problems here are that upstream bundles older versions or perhaps even patched versions. While it's important to fix this in the long run I don't think this should be the main focus now, unless upstream is already willing to help support it.

> Re: mspec - boy, do I know.  I'm working with upstream to reproduce the issues
> so they can be corrected.

Ok, sounds good.
Comment 6 Hans de Graaff gentoo-dev Security 2011-04-13 15:55:33 UTC
Judson, any progress on this? Anything we can help with?
Comment 7 Judson 2011-04-13 19:10:16 UTC
Upstream was able to fix the mspec build fails based on a Gentoo VM.  I confirmed at the time that their HEAD build worked for me, and they've since released a new sub-version.  I need to bump the ebuild and see if it builds, at which point I'd appreciate your renewed criticism.  When I get to that: how would you like me to show you the ebuild?
Comment 8 Hans de Graaff gentoo-dev Security 2011-04-14 05:33:49 UTC
This bug would be fine, but it might be easier to set you up with access to our ruby-overlay, or you could provide it in your own overlay.
Comment 9 Judson 2011-04-14 21:12:08 UTC
Feel free to contact me directly about working with the ruby overlay
Comment 10 Christian Parpart (RETIRED) gentoo-dev 2011-05-07 23:44:13 UTC
What's the specific reason in not putting this into the main repository instead?
We have other ruby VMs as well, so why not rubinius?
Comment 11 Hans de Graaff gentoo-dev Security 2011-05-08 05:58:03 UTC
(In reply to comment #10)
> What's the specific reason in not putting this into the main repository
> instead?

Adding a new ruby implementation is a bit involved, all the pieces have to fit including supporting code like rubygems, etc. Furthermore, when I last got an update the rubinius ebuild was still work-in-progress. So the idea is to prepare and test everything in the overlay and move to the main repository when ready.
Comment 12 Christian Parpart (RETIRED) gentoo-dev 2011-05-10 15:00:13 UTC
(In reply to comment #11)
> Adding a new ruby implementation is a bit involved, all the pieces have to fit
> including supporting code like rubygems, etc. Furthermore, when I last got an
> update the rubinius ebuild was still work-in-progress. So the idea is to
> prepare and test everything in the overlay and move to the main repository when
> ready.

Nice, but isn't there a reason we have hard masked and ~unstable masked packages for?

Nevertheless, I might help testing rbx, especially since I've to walk with ruby quite alot recently :)
Comment 13 Hans de Graaff gentoo-dev Security 2011-10-21 07:16:53 UTC
dev-lang/rubinius-1.2.4.20110705 is now in the tree, you can use it by adding "rbx" to your RUBY_TARGETS.

@Judson: thanks for all the initial work on this!