Skip to content

Commit

Permalink
Bump OpenSSL to v3.4.0
Browse files Browse the repository at this point in the history
Also bump the cache key to force a recompilation of freetds against the new OpenSSL version.
  • Loading branch information
andyundso committed Nov 19, 2024
1 parent aacd7ed commit c67e7c7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
uses: actions/cache@v4
with:
path: ports
key: cross-compiled-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
key: cross-compiled-v3-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
restore-keys: |
cross-compiled-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
cross-compiled-${{ matrix.platform }}-
cross-compiled-v3-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
cross-compiled-v3-${{ matrix.platform }}-
- name: Build gem
shell: bash
Expand Down Expand Up @@ -351,10 +351,10 @@ jobs:
uses: actions/cache@v4
with:
path: ports
key: native-${{ hashFiles('**/.ports_versions') }}
key: native-v3-${{ hashFiles('**/.ports_versions') }}
restore-keys: |
native-${{ hashFiles('* */.ports_versions') }}
native-
native-v3-${{ hashFiles('* */.ports_versions') }}
native-v3-
- name: Build required libraries
run: |
Expand Down Expand Up @@ -394,7 +394,7 @@ jobs:
uses: actions/cache@v4
with:
path: ports
key: native-${{ hashFiles('**/.ports_versions') }}
key: native-v3-${{ hashFiles('**/.ports_versions') }}
fail-on-cache-miss: true

- name: Build gem
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Drop support for SQL Server < 2017
* Drop support for FreeTDS < 1.0
* Raise error if FreeTDS is unable to sent command buffer to the server
* Use freetds v1.4.23 and libiconv v1.17 for Windows builds
* Use freetds v1.4.23, libiconv v1.17 and OpenSSL v3.4.0 for Windows builds

## 2.1.7
* Add Ruby 3.3 to the cross compile list
Expand Down
2 changes: 1 addition & 1 deletion ext/tiny_tds/extconsts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ICONV_VERSION = ENV['TINYTDS_ICONV_VERSION'] || "1.17"
ICONV_SOURCE_URI = "http://ftp.gnu.org/pub/gnu/libiconv/libiconv-#{ICONV_VERSION}.tar.gz"

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

FREETDS_VERSION = ENV['TINYTDS_FREETDS_VERSION'] || '1.4.23'
Expand Down
4 changes: 2 additions & 2 deletions tasks/ports.rake
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ namespace :ports do
if libraries_to_compile[:openssl]
# freetds doesn't have an option that will provide an rpath
# so we do it manually
ENV['OPENSSL_CFLAGS'] = "-Wl,-rpath -Wl,#{libraries_to_compile[:openssl].path}/lib"
ENV['OPENSSL_CFLAGS'] = "-Wl,-rpath -Wl,#{libraries_to_compile[:openssl].path}/lib64"
# Add the pkgconfig file with MSYS2'ish path, to prefer our ports build
# over MSYS2 system OpenSSL.
ENV['PKG_CONFIG_PATH'] = "#{libraries_to_compile[:openssl].path.gsub(/^(\w):/i) { "/" + $1.downcase }}/lib/pkgconfig:#{ENV['PKG_CONFIG_PATH']}"
ENV['PKG_CONFIG_PATH'] = "#{libraries_to_compile[:openssl].path.gsub(/^(\w):/i) { "/" + $1.downcase }}/lib64/pkgconfig:#{ENV['PKG_CONFIG_PATH']}"
libraries_to_compile[:freetds].configure_options << "--with-openssl=#{libraries_to_compile[:openssl].path}"
end

Expand Down

0 comments on commit c67e7c7

Please sign in to comment.