Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e9e3fdb

Browse filesBrowse files
authored
Fixups for OpenSSL 3 (#6)
1 parent 6702a09 commit e9e3fdb
Copy full SHA for e9e3fdb

File tree

Expand file treeCollapse file tree

4 files changed

+23
-12
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+23
-12
lines changed

‎.github/workflows/windows-build-tools.yml

Copy file name to clipboardExpand all lines: .github/workflows/windows-build-tools.yml
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Set up Ruby
3434
uses: ruby/setup-ruby@v1
3535
with:
36-
ruby-version: mingw
36+
ruby-version: ucrt
3737
timeout-minutes: 7
3838

3939
- name: Update msys2 tools 7z and Upload
@@ -52,10 +52,10 @@ jobs:
5252
fail-fast: false
5353
matrix:
5454
include:
55-
- { gcc: mingw64 , ruby: mingw }
55+
- { gcc: mingw64 , ruby: '3.0' }
5656
- { gcc: mingw64-3.0, ruby: mingw }
57-
- { gcc: ucrt64 , ruby: ucrt }
58-
- { gcc: ucrt64-3.0 , ruby: 3.2 }
57+
- { gcc: ucrt64 , ruby: 3.1 }
58+
- { gcc: ucrt64-3.0 , ruby: ucrt }
5959
steps:
6060
- name: Checkout
6161
uses: actions/checkout@v3

‎common.rb

Copy file name to clipboardExpand all lines: common.rb
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ module Common
3434
PACMAN = 'C:/msys64/usr/bin/pacman.exe'
3535
BASH = 'C:/msys64/usr/bin/bash.exe'
3636

37+
SSL_3_SAVE_FILES = %w[
38+
bin/libcrypto-3-x64.dll
39+
bin/libssl-3-x64.dll
40+
etc/ssl/openssl.cnf
41+
]
42+
3743
def gh_api_graphql(http, query)
3844
body = {}
3945
body["query"] = query

‎create_gcc_pkg.rb

Copy file name to clipboardExpand all lines: create_gcc_pkg.rb
+5-7Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ class << self
4444
end
4545

4646
MSYS2_PKG = "#{MSYS2_ROOT}/#{PKG_DIR}"
47-
48-
SSL_3_SAVE_FILES = %w[
49-
bin/libcrypto-3-x64.dll
50-
bin/libssl-3-x64.dll
51-
etc/ssl/openssl.cnf
52-
]
5347

5448
SSL_1_DLLS = %w[bin/libcrypto-1_1-x64.dll bin/libssl-1_1-x64.dll]
5549

@@ -134,11 +128,15 @@ def install_gcc
134128

135129
pkgs = (base_gcc + base_ruby).unshift('').join " #{PKG_PRE}"
136130

131+
SSL_3_SAVE_FILES.each do |fn|
132+
FileUtils.remove_file "#{MSYS2_PKG}/#{fn}" if File.exist? "#{MSYS2_PKG}/#{fn}"
133+
end
134+
137135
# May not be needed, but...
138136
# Note that OpenSSL may need to be ignored
139137
if PKG_NAME.end_with?('-3.0')
140138
pacman_syuu
141-
else
139+
else
142140
pacman_syuu
143141
end
144142

‎create_msys2_pkg.rb

Copy file name to clipboardExpand all lines: create_msys2_pkg.rb
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,22 @@ class << self
1414

1515
include Common
1616

17-
MSYS2_ROOT = 'C:/msys64'
1817
TEMP = ENV.fetch('RUNNER_TEMP') { ENV.fetch('RUNNER_WORKSPACE') { ENV['TEMP'] } }
1918
ORIG_MSYS2 = "#{TEMP}/msys64".gsub '\\', '/'
2019

2120
SYNC = 'var/lib/pacman/sync'
2221
LOCAL = 'var/lib/pacman/local'
2322
CACHE = 'var/cache/pacman/pkg'
2423

24+
MSYS2_PKG = RUBY_PLATFORM.include?('ucrt') ?
25+
"#{MSYS2_ROOT}/ucrt64" : "#{MSYS2_ROOT}/mingw64"
26+
2527
def update_msys2
28+
29+
SSL_3_SAVE_FILES.each do |fn|
30+
FileUtils.remove_file "#{MSYS2_PKG}/#{fn}" if File.exist? "#{MSYS2_PKG}/#{fn}"
31+
end
32+
2633
updated_keys = pacman_syuu
2734

2835
pkgs = 'autoconf-wrapper autogen automake-wrapper bison diffutils libtool m4 make patch re2c texinfo texinfo-tex compression'

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.