Skip to content

Commit

Permalink
apacheGH-25633: [CI][Java][macOS] Ensure using bundled RE2
Browse files Browse the repository at this point in the history
If we have Homebrew's RE2, we may mix re2.h from Homebrew's RE2 and
bundled RE2. If we mix re2.h and libre2.a, we may generate wrong
re2::RE2::Options. It may crashes our program.
  • Loading branch information
kou committed Jan 17, 2023
1 parent bff9e5e commit 547a127
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dev/tasks/java-jars/github.yml
Expand Up @@ -86,13 +86,20 @@ jobs:
# If llvm is installed, Apache Arrow C++ uses llvm rather than
# llvm@14 because llvm is newer than llvm@14.
brew uninstall llvm || :
brew bundle --file=arrow/cpp/Brewfile
# We want to link aws-sdk-cpp statically but Homebrew's
# aws-sdk-cpp provides only shared library. If we have
# Homebrew's aws-sdk-cpp, our build mix Homebrew's
# aws-sdk-cpp and bundled aws-sdk-cpp. We uninstall Homebrew's
# aws-sdk-cpp to ensure using only bundled aws-sdk-cpp.
brew uninstall aws-sdk-cpp
# We want to use bundled RE2 for static linking. If
# Homebrew's RE2 is installed, its header file may be used.
# We uninstall Homebrew's RE2 to ensure using bundled RE2.
brew uninstall grpc || : # gRPC depends on RE2
brew uninstall re2 || :
brew bundle --file=arrow/java/Brewfile
- name: Build C++ libraries
env:
Expand Down

0 comments on commit 547a127

Please sign in to comment.