Project

General

Profile

Actions

Bug #10948

closed

When cross-compiling Ruby 2.2.1 for Win32, securerandom.rb fails while trying to use Win32 native libraries

Added by aaron@serendipity.cx (Aaron Stone) over 9 years ago. Updated over 9 years ago.

Status:
Closed
Target version:
-
[ruby-core:68455]

Description

Between Ruby 2.1 and 2.2, lib/securerandom.rb was modified to assume that if /mswin|mingw/ =~ RUBY_PLATFORM then Win32 libraries are available. This is not true for a cross-compile environment, however. So the pre-Ruby-2.2 checks to use OpenSSL::Random need to be restored.

The problem is further described in https://github.com/tjschuck/rake-compiler-dev-box/pull/20

A pull request is available at https://github.com/ruby/ruby/pull/848 based on the change suggested by @unak and verified by @sodabrew.


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #10995: 2.2.1 fails at make install with mingw-w64 on archlinuxClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0