Skip to content

Commit

Permalink
(PA-6131) Bump openssl version
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkarsale committed Apr 3, 2024
1 parent 68650ed commit bdcfab7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configs/components/openssl-3.0.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
component 'openssl' do |pkg, settings, platform|
pkg.version '3.0.12'
pkg.sha256sum 'f93c9e8edde5e9166119de31755fc87b4aa34863662f67ddfcba14d0b6b69b61'
pkg.version '3.0.13'
pkg.sha256sum '88525753f79d3bec27d2fa7c66aa0b92b3aa9498dafd93d7cfa4b3780cdae313'
pkg.url "https://openssl.org/source/openssl-#{pkg.get_version}.tar.gz"
pkg.mirror "#{settings[:buildsources_url]}/openssl-#{pkg.get_version}.tar.gz"

Expand All @@ -27,6 +27,8 @@
pkg.environment 'CYGWIN', settings[:cygwin]
pkg.environment 'MAKE', platform[:make]

pkg.apply_patch 'resources/patches/openssl/openssl-3.0.13-create-dir-win.patch'

target = platform.architecture == 'x64' ? 'mingw64' : 'mingw'
# elsif platform.is_cross_compiled_linux?
# pkg.environment 'PATH', "/opt/pl-build-tools/bin:$(PATH)"
Expand Down
14 changes: 14 additions & 0 deletions resources/patches/openssl/openssl-3.0.13-create-dir-win.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/Configure b/Configure
index 84cc409464..bdf4f3c460 100755
--- a/Configure
+++ b/Configure
@@ -3409,7 +3409,8 @@ sub absolutedir {
# We use realpath() on Unix, since no other will properly clean out
# a directory spec.
use Cwd qw/realpath/;
-
+
+ mkdir $dir unless -d $dir;
return realpath($dir);
}

0 comments on commit bdcfab7

Please sign in to comment.