Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.5
-
Fix Version/s: JRuby 1.6.6, JRuby 1.6.7
-
Component/s: Ruby 1.9.2
-
Labels:None
-
Environment:ubuntu 10.4
-
Number of attachments :
Description
With JRuby 1.6.5 using mode --1.9 (rake I've found that, when building my gems, the execution of the rake task gem creates a bad file where the data.tar.gz component is corrupted.
The same problem is present in other gems like net-ssh:
$ cd net-ssh-2.2.1
$ rake gem
$ gem unpack pkg/net-ssh-2.2.1.gem
ERROR: While executing gem ... (Errno::EISDIR)
Is a directory - Is a directory
$ tar xf pkg/net-ssh-2.2.1.gem
tar: data.tar.gz: implausibly old time stamp 1970-01-01 01:00:00
tar: metadata.gz: implausibly old time stamp 1970-01-01 01:00:00
$ tar tvfz data.tar.gz
-rw-r--r-- wheel/wheel 8455 1970-01-01 01:00 CHANGELOG.rdoc
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
Using --1.8 mode or JRuby 1.6.4 (any mode) the gem file produced is correct.
I'm using rake 0.9.2.2 but I've tried with 0.8.7 and got the same error.
This seems the same as a problem I am having building gems in --1.9 mode.
The problem arises when I include a jar file within my gem.
Building in 1.9 mode is fine, but installation gives the same error as in the report above. (Within the gem file, data.tar.gz is corrupted, as reported above.) The gem builds and installs fine in 1.8 mode.
$ jruby --1.9 -S gem build svm_toolkit.gemspec
Successfully built RubyGem
Name: svm_toolkit
Version: 0.0.5
File: svm_toolkit-0.0.5-universal-java-1.6.gem
$ jruby --1.9 -S gem install svm_toolkit-0.0.5-universal-java-1.6.gem
ERROR: While executing gem ... (Errno::EISDIR)
Is a directory - Is a directory
(jruby 1.6.5, ubuntu 11.04, java 6)