Red Hat Bugzilla – Bug 965222
uninitialized constant Gem::Builder - jruby is broken
Last modified: 2013-05-21 08:06:44 EDT
Description of problem:
jruby lacking in their own libraries Rubygem as
this is the result when try to build
JRuby-Rack (is a combined Java and Ruby library that adapts the
Java Servlet API to Rack. For JRuby only) in rawhide
** 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
uninitialized constant Gem::Builder
Tasks: TOP => gem
RPM build errors:
Version-Release number of selected component (if applicable):
re-add jruby own libraries Rubygem
The Gem::Builder was removed in RubyGems 2.0. Please make sure that your package is compatible with RubyGems 2.0. Thank you.
jruby-rack is compatible with jruby all version only
jruby-rack might be compatible with all jruby versions, but apparently, it is not compatible with RubyGems 2.0.
Since bundling is prohibited in Fedora, we are using single instance of RubyGems library, which is shared between Ruby (MRI) as well as JRuby, hence we are using newer RubyGems then shipped with JRuby. Otherwise we would need to bundle, which is obviously against Fedora packaging guidelines.
Moreover, as far as I understand, RubyGems 2.0 supports JRuby just fine, so there is no excuse for any gem to not be adjusted for RubyGems 2.0. Please contact your upstream and work together to solve compatibility with RubyGems 2.0.