From: "headius (Charles Nutter)" Date: 2012-07-04T08:12:18+09:00 Subject: [ruby-core:46153] [ruby-trunk - Feature #6590] Dealing with bigdecimal, etc gems in JRuby Issue #6590 has been updated by headius (Charles Nutter). Facts: * JRuby's bigdecimal implementation is separate from MRI's * bigdecimal is shipped as a gem for MRI now, preinstalled by default but possible to upgrade and set as a gem dependency * Users who want the most current bigdecimal implementation on MRI may set bigdecimal as a dependency * Libraries may also set bigdecimal as a dependency * Without a gem that is installable on JRuby, those users and libraries will fail to install dependencies * BigDecimal is depended on by JRuby internals and cannot be separated from JRuby (i.e. JRuby can't run without BigDecimal library built in All we are really looking for is a way for "bigdecimal" and other preinstalled (on MRI) gem dependencies to work on JRuby. The easiest way would be to have -java platform stub gems for the native extensions in MRI. We do not currently see any value in attempting to maintain our native extensions alongside MRI's native extensions since they are completely different codebases. ---------------------------------------- Feature #6590: Dealing with bigdecimal, etc gems in JRuby https://bugs.ruby-lang.org/issues/6590#change-27770 Author: headius (Charles Nutter) Status: Open Priority: Normal Assignee: nahi (Hiroshi Nakamura) Category: Target version: Hello! http://jira.codehaus.org/browse/JRUBY-6704 We have a need to make the "bigdecimal" gem work for JRuby, so that distros (like Red Hat, mentioned in the above bug) and users can have the same gemspec for JRuby with updated bigdecimal gem references. I'm not sure the best way to proceed. The bigdecimal source and gemspec all come from MRI source, and are not versioned separately. That means we can't simply share a repository for the JRuby bits. We could maintain a forked version in our forked "jruby/ruby" repository, but that wouldn't be part of the bigdecimal release cycle then. So I'm looking to you for guidance. The BigDecimal lib is here in JRuby: https://github.com/jruby/jruby/tree/master/src/org/jruby/ext/bigdecimal It might be simplest if for now there's a dummy "bigdecimal" gem pushed for JRuby that does not contain anything, since we would have other complications if we tried to remove BigDecimal from JRuby proper (it is referenced elsewhere int eh code, etc). Thoughts? - Charlie -- http://bugs.ruby-lang.org/