[Rubygems-developers] Problems with OpenSSL requirement in RubyGems 0.9.5 and JRuby

Eric Hodel drbrain at segment7.net
Mon Dec 10 19:45:31 EST 2007


On Dec 10, 2007, at 14:29 PM, Eric Hodel wrote:
> On Dec 3, 2007, at 21:37 PM, Charles Oliver Nutter wrote:
>> The problem, however, is that at some point between 0.9.1 and 0.9.5,
>> RubyGems started requiring that OpenSSL extension be present for  
>> *all*
>> gem installs:
>>
>> [...]
>>
>> However, I also found this in dependency_installer.rb:
>>
>>  DEFAULT_OPTIONS = {
>>    :env_shebang => false,
>>    :domain => :both, # HACK dup
>>    :force => false,
>>    :ignore_dependencies => false,
>>    :security_policy => Gem::Security::NoSecurity, # HACK AlmostNo?
>> Low?
>>    :wrappers => true
>>  }
>>
>> If I'm understanding right, this means that for dependency-sensitive
>> installs (which would be basically all of them) security_policy will
>> *never* be nil, and OpenSSL will be required all the time.
>
>
> I'll roll this change back.

Done.  Removing openssl.rb and friends seems to work for me.

require 'rubygems'
require 'rubygems/dependency_installer'

Gem::DependencyInstaller.new('rake', nil, :install_dir => '/tmp/ 
gems').install

p Gem.ssl_available? # => false
p $".grep(/openssl/i) # => ["rubygems/gem_openssl.rb"]


More information about the Rubygems-developers mailing list