jruby / jruby-rack

Rack for JRuby and Java appservers
MIT License
397 stars 137 forks source link

jruby-rack is not compatible with RubyGems 2.0 #157

Closed puntogil closed 11 years ago

puntogil commented 11 years ago

hi i try to build for Fedora jruby-rack 1.0.10 https://bugzilla.redhat.com/show_bug.cgi?id=821146 (NOTE: we dont have jruby-rake-plugin or jruby-complete jars) build fails in F20 (aka rawhive) when try to build gem file

** Invoke gem (first_time)
** Invoke target/jruby-rack-1.0.10.jar 
** Invoke target/gem/lib/jruby-rack.rb (first_time)
** Execute target/gem/lib/jruby-rack.rb
mkdir -p target/gem/lib
** Invoke target/gem/lib/jruby/rack/version.rb (first_time)
** Invoke src/main/ruby/jruby/rack/version.rb (first_time, not_needed)
** Execute target/gem/lib/jruby/rack/version.rb
mkdir -p target/gem/lib/jruby/rack
cp src/main/ruby/jruby/rack/version.rb target/gem/lib/jruby/rack/version.rb
** Execute gem
cp History.txt LICENSE.txt README.md target/gem
cp target/jruby-rack-1.0.10.jar target/gem/lib
rm -f jruby-rack.gemspec
rake aborted!
uninitialized constant Gem::Builder
org/jruby/RubyModule.java:2677:in `const_missing'
/builddir/build/BUILD/jruby-rack-1.0.10/Rakefile:206:in `(root)'
org/jruby/RubyDir.java:465:in `chdir'
/builddir/build/BUILD/jruby-rack-1.0.10/Rakefile:191:in `(root)'
org/jruby/RubyProc.java:249:in `call'
/usr/share/gems/gems/rake-10.0.4/lib/rake/task.rb:244:in `execute'
org/jruby/RubyArray.java:1613:in `each'
/usr/share/gems/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/usr/share/gems/gems/rake-10.0.4/lib/rake/task.rb:184:in `invoke_with_call_chain'
/usr/share/jruby/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize'
/usr/share/gems/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/usr/share/gems/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/usr/share/gems/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/usr/share/gems/gems/rake-10.0.4/lib/rake/application.rb:101:in `top_level'
org/jruby/RubyArray.java:1613:in `each'
/usr/share/gems/gems/rake-10.0.4/lib/rake/application.rb:101:in `top_level'
/usr/share/gems/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/usr/share/gems/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/usr/share/gems/gems/rake-10.0.4/lib/rake/application.rb:73:in `run'
/usr/share/gems/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/usr/share/gems/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/usr/share/gems/gems/rake-10.0.4/bin/rake:33:in `(root)'
org/jruby/RubyKernel.java:1046:in `load'
/usr/share/jruby/bin/rake:23:in `(root)'
Tasks: TOP => gem

RPM build errors: Version-Release number of selected component (if applicable): 1.7.2 any ideas? thanks in advance regards see:

kares commented 11 years ago

thanks for the report - master should now work with https://github.com/jruby/jruby-rack/commit/71b8bafc994904404f680405e478e78aac814843 there's a rubygems2 on JRuby (note that current stable 1.7.4 does not use 2.0 out of the box yet)