Skip to content

Commit afa4078

Browse files
committed
Merge branch 'maint-2.1' into maint-2.2
* maint-2.1: Ruby/OpenSSL 2.1.4 Make GitHub Actions happy on 2.1/2.2 branches ignore pkgconfig when any openssl option is specified
2 parents 459a0e2 + 5316241 commit afa4078

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
matrix:
4040
os: [ windows-latest ]
4141
ruby: [ mswin, mingw, "3.0", "2.7", "2.6", "2.5", "2.4", "2.3" ]
42+
exclude:
43+
- { os: "windows-latest", ruby: "mswin" } # OpenSSL 3.0
4244
steps:
4345
- name: repo checkout
4446
uses: actions/checkout@v2

History.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,16 @@ Notable changes
9292
[[GitHub #297]](https://github.com/ruby/openssl/pull/297)
9393

9494

95+
Version 2.1.4
96+
=============
97+
98+
Bug fixes
99+
---------
100+
101+
* Do not use pkg-config if --with-openssl-dir option is specified.
102+
[[GitHub #486]](https://github.com/ruby/openssl/pull/486)
103+
104+
95105
Version 2.1.3
96106
=============
97107

ext/openssl/extconf.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
require "mkmf"
1515

16-
dir_config("openssl")
16+
dir_config_given = dir_config("openssl").any?
1717
dir_config("kerberos")
1818

1919
Logging::message "=== OpenSSL for Ruby configurator ===\n"
@@ -90,7 +90,7 @@ def find_openssl_library
9090
end
9191

9292
Logging::message "=== Checking for required stuff... ===\n"
93-
pkg_config_found = pkg_config("openssl") && have_header("openssl/ssl.h")
93+
pkg_config_found = !dir_config_given && pkg_config("openssl") && have_header("openssl/ssl.h")
9494

9595
if !pkg_config_found && !find_openssl_library
9696
Logging::message "=== Checking for required stuff failed. ===\n"

openssl.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
1818
spec.required_ruby_version = ">= 2.3.0"
1919

2020
spec.add_runtime_dependency "ipaddr"
21-
spec.add_development_dependency "rake"
21+
spec.add_development_dependency "rake", ">= 11.2.0"
2222
spec.add_development_dependency "rake-compiler"
2323
spec.add_development_dependency "test-unit", "~> 3.0"
2424
spec.add_development_dependency "rdoc"

0 commit comments

Comments
 (0)