Skip to content

Commit 10ea767

Browse files
authored
Merge pull request #2599 from rbenv/openssl-3-5
Use OpenSSL 3.5.x LTS version with next stable version
2 parents d693ea7 + e85dcb7 commit 10ea767

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

‎script/update-openssl‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
#!/usr/bin/env ruby
22

3-
raise "Usage: #{$0} NEW_VERSION SHA" unless ARGV.size == 2
4-
new_version, sha = ARGV
3+
require 'open-uri'
4+
require 'digest/sha2'
5+
require 'tempfile'
6+
7+
raise "Usage: #{$0} NEW_VERSION" unless ARGV.size == 1
8+
new_version = ARGV[0]
59

610
major_minor = new_version.split('.')[0..1].join('.')
711

12+
url = "https://github.com/openssl/openssl/releases/download/openssl-#{new_version}/openssl-#{new_version}.tar.gz"
13+
sha = nil
14+
15+
Tempfile.create(['openssl', '.tar.gz']) do |tmpfile|
16+
URI.open(url) do |remote_file|
17+
IO.copy_stream(remote_file, tmpfile)
18+
end
19+
tmpfile.rewind
20+
21+
sha = Digest::SHA256.file(tmpfile.path).hexdigest
22+
end
23+
824
Dir.glob('share/ruby-build/*') do |file|
925
contents = File.read(file)
1026

‎share/ruby-build/4.1-dev‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
install_package "openssl-3.0.18" "https://github.com/openssl/openssl/releases/download/openssl-3.0.18/openssl-3.0.18.tar.gz#d80c34f5cf902dccf1f1b5df5ebb86d0392e37049e5d73df1b3abae72e4ffe8b" openssl --if needs_openssl:1.0.2-3.x.x
1+
install_package "openssl-3.5.4" "https://github.com/openssl/openssl/releases/download/openssl-3.5.4/openssl-3.5.4.tar.gz#967311f84955316969bdb1d8d4b983718ef42338639c621ec4c34fddef355e99" openssl --if needs_openssl:1.0.2-3.x.x
22
install_git "ruby-master" "https://github.com/ruby/ruby.git" "master" autoconf enable_shared standard_install_with_bundled_gems

‎share/ruby-build/ruby-dev‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
install_package "openssl-3.0.18" "https://github.com/openssl/openssl/releases/download/openssl-3.0.18/openssl-3.0.18.tar.gz#d80c34f5cf902dccf1f1b5df5ebb86d0392e37049e5d73df1b3abae72e4ffe8b" openssl --if needs_openssl:1.0.2-3.x.x
1+
install_package "openssl-3.5.4" "https://github.com/openssl/openssl/releases/download/openssl-3.5.4/openssl-3.5.4.tar.gz#967311f84955316969bdb1d8d4b983718ef42338639c621ec4c34fddef355e99" openssl --if needs_openssl:1.0.2-3.x.x
22
install_git "ruby-master" "https://github.com/ruby/ruby.git" "master" autoconf enable_shared standard_install_with_bundled_gems

0 commit comments

Comments
 (0)