Rake/Gem::PackageTask fails with the rubygems 1.4 upgrade, when using java 
platform
-----------------------------------------------------------------------------------

                 Key: JRUBY-5367
                 URL: http://jira.codehaus.org/browse/JRUBY-5367
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6RC1
         Environment: % jruby -v
jruby 1.6.0.RC1 (ruby 1.8.7 patchlevel 330) (2011-01-10 769f847) (OpenJDK 
Server VM 1.6.0_20) [linux-i386-java]

% jgem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 1.4.2
  - RUBY VERSION: 1.8.7 (2011-01-10 patchlevel 330) [java]
  - INSTALLATION DIRECTORY: /opt/jruby/gems
  - RUBY EXECUTABLE: /opt/bin/jruby
  - EXECUTABLE DIRECTORY: /opt/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-java-1.6
  - GEM PATHS:
     - /opt/jruby/gems
     - /home/david/.gem/jruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "install" => "--no-ri --user-install --bindir /home/david/bin"
     - "update" => "--no-ri --user-install --bindir /home/david/bin"
     - "rdoc" => "--line-numbers"
  - REMOTE SOURCES:
     - http://rubygems.org/

            Reporter: David Kellum
            Assignee: Thomas E Enebo


Looks like Nick Sieger originally identified this problem in Rubygems 
[#28226|http://rubyforge.org/tracker/index.php?func=detail&aid=28226&group_id=126&atid=577].

With upgrade to Rubygems 1.4, this becomes a consistent problem in JRuby 
1.6.0.RC1 (not present in 1.5.6) An alternative fix/workaround (with different 
results to Nick's patch in above) is the following:

{noformat}
require 'rubygems/package_task'
class Gem::PackageTask
  def package_name
    gem_spec.full_name
  end
end
{noformat}

Looks like this either should be fixed in upstream Rubygems or fix applied in 
the custom rubygems included in JRuby 1.6.0 before a final release is made.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to