Subject: | [PATCH] Incorrect extension for Win32 |
Patch for Module::Install::PRIVATE::Filter::Crypto
You need to add '.exe' on Win32.
--
Alexandr Ciornii, http://chorny.net
Subject: | Crypto.pm.patch |
--- Crypto.pm.dist Fri Jul 6 23:27:20 2007
+++ Crypto.pm Fri Oct 5 16:34:26 2007
@@ -227,8 +227,10 @@
# prefix directory as specified in the latest OpenSSL's own INSTALL
# file if it exists.
my $bin_file;
- if ($bin_file = $self->can_run('openssl') or
- $bin_file = $self->can_run('ssleay'))
+ my $exe_ext='';
+ $exe_ext='.exe' if $self->is_win32();
+ if ($bin_file = $self->can_run('openssl'.$exe_ext) or
+ $bin_file = $self->can_run('ssleay'.$exe_ext))
{
if ($self->is_win32()) {
# Find out (if we can) which platform this binary was built for.
@@ -243,7 +245,7 @@
if ($bin_rc) {
$self->exit_with_error(133,
"Could not get OpenSSL/SSLeay version information " .
- "(%d):\n%s", $bin_rc, $bin_output
+ "(%d):\ncommand:%s\n%s", $bin_rc, $bin_cmd, $bin_output
);
}