Skip to content

Commit c67e7c7

Browse files
committed
Bump OpenSSL to v3.4.0
Also bump the cache key to force a recompilation of freetds against the new OpenSSL version.
1 parent aacd7ed commit c67e7c7

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
uses: actions/cache@v4
3636
with:
3737
path: ports
38-
key: cross-compiled-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
38+
key: cross-compiled-v3-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
3939
restore-keys: |
40-
cross-compiled-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
41-
cross-compiled-${{ matrix.platform }}-
40+
cross-compiled-v3-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
41+
cross-compiled-v3-${{ matrix.platform }}-
4242
4343
- name: Build gem
4444
shell: bash
@@ -351,10 +351,10 @@ jobs:
351351
uses: actions/cache@v4
352352
with:
353353
path: ports
354-
key: native-${{ hashFiles('**/.ports_versions') }}
354+
key: native-v3-${{ hashFiles('**/.ports_versions') }}
355355
restore-keys: |
356-
native-${{ hashFiles('* */.ports_versions') }}
357-
native-
356+
native-v3-${{ hashFiles('* */.ports_versions') }}
357+
native-v3-
358358
359359
- name: Build required libraries
360360
run: |
@@ -394,7 +394,7 @@ jobs:
394394
uses: actions/cache@v4
395395
with:
396396
path: ports
397-
key: native-${{ hashFiles('**/.ports_versions') }}
397+
key: native-v3-${{ hashFiles('**/.ports_versions') }}
398398
fail-on-cache-miss: true
399399

400400
- name: Build gem

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Drop support for SQL Server < 2017
55
* Drop support for FreeTDS < 1.0
66
* Raise error if FreeTDS is unable to sent command buffer to the server
7-
* Use freetds v1.4.23 and libiconv v1.17 for Windows builds
7+
* Use freetds v1.4.23, libiconv v1.17 and OpenSSL v3.4.0 for Windows builds
88

99
## 2.1.7
1010
* Add Ruby 3.3 to the cross compile list

ext/tiny_tds/extconsts.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
ICONV_VERSION = ENV['TINYTDS_ICONV_VERSION'] || "1.17"
33
ICONV_SOURCE_URI = "http://ftp.gnu.org/pub/gnu/libiconv/libiconv-#{ICONV_VERSION}.tar.gz"
44

5-
OPENSSL_VERSION = ENV['TINYTDS_OPENSSL_VERSION'] || '1.1.1s'
5+
OPENSSL_VERSION = ENV['TINYTDS_OPENSSL_VERSION'] || '3.4.0'
66
OPENSSL_SOURCE_URI = "https://www.openssl.org/source/openssl-#{OPENSSL_VERSION}.tar.gz"
77

88
FREETDS_VERSION = ENV['TINYTDS_FREETDS_VERSION'] || '1.4.23'

tasks/ports.rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ namespace :ports do
4848
if libraries_to_compile[:openssl]
4949
# freetds doesn't have an option that will provide an rpath
5050
# so we do it manually
51-
ENV['OPENSSL_CFLAGS'] = "-Wl,-rpath -Wl,#{libraries_to_compile[:openssl].path}/lib"
51+
ENV['OPENSSL_CFLAGS'] = "-Wl,-rpath -Wl,#{libraries_to_compile[:openssl].path}/lib64"
5252
# Add the pkgconfig file with MSYS2'ish path, to prefer our ports build
5353
# over MSYS2 system OpenSSL.
54-
ENV['PKG_CONFIG_PATH'] = "#{libraries_to_compile[:openssl].path.gsub(/^(\w):/i) { "/" + $1.downcase }}/lib/pkgconfig:#{ENV['PKG_CONFIG_PATH']}"
54+
ENV['PKG_CONFIG_PATH'] = "#{libraries_to_compile[:openssl].path.gsub(/^(\w):/i) { "/" + $1.downcase }}/lib64/pkgconfig:#{ENV['PKG_CONFIG_PATH']}"
5555
libraries_to_compile[:freetds].configure_options << "--with-openssl=#{libraries_to_compile[:openssl].path}"
5656
end
5757

0 commit comments

Comments
 (0)