All that is necessary is a separate gem that either does not include any C ext (allowing fallback to pure-ruby racc in stdlib) or a gem that only includes the Ruby impl (assuming it is more up-to-date than stdlib). So it is mostly just an additional gemspec and gem push for the -java platform.
- Charlie (mobile) On Jul 23, 2012 6:11 PM, "Rodrigo Rosenfeld Rosas" <rr.ro...@gmail.com> wrote: > How would that work? How do you conditionally enable native support only > on MRI? > > Also, what would be required for releasing the -java gem? Would this > require a separate branch or fork? > > Thanks in advance, > Rodrigo. > > Em 23-07-2012 19:31, Charles Oliver Nutter escreveu: > >> We will not be able to support the native parts of racc, that much I >> can guarantee. We probably need to get racc maintainers to spin a >> -java gem that basically just uses the pure-Ruby stuff until we can >> "commission" a port. >> >> If I remember correctly, the native part of racc is only for speed; >> the Ruby logic should function identically. >> >> - Charlie >> >> On Mon, Jul 23, 2012 at 3:33 PM, Rodrigo Rosenfeld Rosas >> <rr.ro...@gmail.com> wrote: >> >>> Em 23-07-2012 17:29, Rodrigo Rosenfeld Rosas escreveu: >>> >>> Em 23-07-2012 17:28, Rodrigo Rosenfeld Rosas escreveu: >>> >>> It seems Rails 4 router parser is depending on racc gem which does not >>> work >>> with JRuby: >>> >>> https://github.com/rails/**journey/commit/** >>> 6d462f2003297ad6d5dba940fed0f1**23549e36e2#commitcomment-**1618473<https://github.com/rails/journey/commit/6d462f2003297ad6d5dba940fed0f123549e36e2#commitcomment-1618473> >>> >>> Would you have any recommendation on how to support JRuby in Rails 4? >>> >>> >>> The error is: >>> >>> /opt/jdk1.7.0_03/bin/java: symbol lookup error: >>> /home/rodrigo/.rvm/gems/jruby-**1.6.7.2/gems/racc-1.4.8/lib/** >>> racc/cparse.so: >>> undefined symbol: rb_catch >>> >>> The gem gets compiled by JRuby but fails to load. I'll try with a newer >>> JRuby version later. >>> >>> >>> >>> > > ------------------------------**------------------------------**--------- > To unsubscribe from this list, please visit: > > > http://xircles.codehaus.org/**manage_email<http://xircles.codehaus.org/manage_email> > > >