From 4795f9dabf82f4656745242339e8ed085589027b Mon Sep 17 00:00:00 2001 From: Amit Karsale Date: Wed, 3 Apr 2024 17:47:39 +0530 Subject: [PATCH] (PA-6131) Bump openssl version --- configs/components/openssl-3.0.rb | 5 +++-- .../openssl/openssl-3.0.13-create-dir-win.patch | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 resources/patches/openssl/openssl-3.0.13-create-dir-win.patch diff --git a/configs/components/openssl-3.0.rb b/configs/components/openssl-3.0.rb index 88a6cd414..48549de65 100644 --- a/configs/components/openssl-3.0.rb +++ b/configs/components/openssl-3.0.rb @@ -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" @@ -176,6 +176,7 @@ # See https://github.com/openssl/openssl/issues/513 # See https://github.com/mingw-w64/mingw-w64/commit/8da1aae7a7ff5bf996878dc8fe30a0e01e210e5a pkg.add_source("file://resources/patches/windows/FORCEINLINE-i686-w64-mingw32-winnt.h") + pkg.apply_patch 'resources/patches/openssl/openssl-3.0.13-create-dir-win.patch' build_commands << "#{platform.patch} --dir #{settings[:gcc_root]}/#{settings[:platform_triple]} --strip=2 --fuzz=0 --ignore-whitespace --no-backup-if-mismatch < ../FORCEINLINE-i686-w64-mingw32-winnt.h" end diff --git a/resources/patches/openssl/openssl-3.0.13-create-dir-win.patch b/resources/patches/openssl/openssl-3.0.13-create-dir-win.patch new file mode 100644 index 000000000..1192f4d6f --- /dev/null +++ b/resources/patches/openssl/openssl-3.0.13-create-dir-win.patch @@ -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); + } + \ No newline at end of file