Repository navigation
[8.6] [MOD-19076] Build Redis against OpenSSL 3 on macOS CI - #11633
Conversation
Homebrew's unversioned `openssl` formula now installs OpenSSL 4 and unlinks openssl@3. Redis's Makefile builds against the unversioned `opt/openssl` prefix, and its tls.c calls APIs OpenSSL 4 deprecates, so every macOS job that compiles Redis with TLS fails under -Werror. Install openssl@3 explicitly and point the Redis TLS build at it. Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit cf6be81)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5d645c96b1
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| EXTRA=() | ||
| # Use the OpenSSL major version pinned by .install/macos.sh. | ||
| if [[ "$(uname -s)" == "Darwin" ]]; then | ||
| EXTRA+=("OPENSSL_PREFIX=$(brew --prefix openssl@3)") |
There was a problem hiding this comment.
Pass OpenSSL 3 to the RediSearch build
OPENSSL_PREFIX is scoped to this Redis make invocation, but the later make build TESTS=1 configures RediSearch itself through the macOS find_package(OpenSSL REQUIRED) branch in CMakeLists.txt. On clean macOS runners, openssl@3 is keg-only and its headers, libraries, and pkg-config files are not on CMake's default search paths; no OPENSSL_ROOT_DIR, CMAKE_PREFIX_PATH, or equivalent is exported for that later build. As a result, the macOS test jobs can fail to configure RediSearch (or resolve a different installed OpenSSL) after Redis builds successfully.
Useful? React with 👍 / 👎.
|



Backport of #11620 to
8.6.Original PR
cf6be8195d4b6bf0401d6240e9cffa86fda9c9a6Cherry-pick result
Conflict Log
.install/macos.sh.github/actions/build-redis/action.ymlRelease notes
🤖 Generated by the auto-backport workflow.