-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Closed
Copy link
Description
Current gems with Java extensions adds compiled .jar in /lib, but on Fedora we implement our own operating_system.rb to tell RubyGems that the path for Java extensions should be in /usr/share/gems/jruby/.
Gem.default_ext_dir_for returns correct paths, but the paths are never added since RubyGems only checks for gemspec.extensions in
rubygems/lib/rubygems/basic_specification.rb
Line 241 in 540d1d9
| return raw_require_paths if @extensions.nil? || @extensions.empty? |
extconf.rb file, since JARs are included in .gem files. There are gems like thread_safe that provide only Java extension and therefore lack any gemspec.extensions entry in gemspec file and RubyGems treat such gems as a gems without extension.
IMHO RubyGems should have a way of detecting if Java extension is present and should try to add it to require paths.
Metadata
Metadata
Assignees
Labels
No labels