Issue Type: Wish Wish
Affects Versions: JRuby 1.7.0
Assignee: Thomas E Enebo
Created: 02/Nov/12 7:28 AM
Description:

When trying to install gem from a file (for example "jgem install ./json-1.6.5.gem"), I get this error:

NotImplementedError: identical file detection unsupported or native support failed to load
identical? at org/jruby/RubyFileTest.java:202
download at /usr/share/rubygems/rubygems/remote_fetcher.rb:180
install at /usr/share/rubygems/rubygems/dependency_installer.rb:278
each at org/jruby/RubyArray.java:1612
each_with_index at org/jruby/RubyEnumerable.java:946
install at /usr/share/rubygems/rubygems/dependency_installer.rb:270
execute at /usr/share/rubygems/rubygems/commands/install_command.rb:121
each at org/jruby/RubyArray.java:1612
execute at /usr/share/rubygems/rubygems/commands/install_command.rb:115
invoke at /usr/share/rubygems/rubygems/command.rb:278
process_args at /usr/share/rubygems/rubygems/command_manager.rb:147
run at /usr/share/rubygems/rubygems/command_manager.rb:117
run at /usr/share/rubygems/rubygems/gem_runner.rb:65
(root) at /usr/bin/gem:30
load at org/jruby/RubyKernel.java:1045
(root) at /usr/bin/gem-jruby:1

This seems to be caused by unimplemented isIdentical function from jnr-posix: https://github.com/jnr/jnr-posix/blob/master/src/main/java/jnr/posix/JavaFileStat.java#L200. Would you consider adding this functionality? I don't have the Java knowledge, but it shouldn't be very hard, AFAIK.

Thanks for considering.

Environment: Fedora 18 x86_64
Project: JRuby
Priority: Major Major
Reporter: Bohuslav "Slavek" Kabrda
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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