This is an automated email from the ASF dual-hosted git repository.
raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 67625df7d55 GH-55374: [CI][Packaging] Fix homebrew-cpp nightly by
syncing formulae to homebrew-core (#55375)
67625df7d55 is described below
commit 67625df7d555a508396b0a2637508a0e9a6a27a4
Author: tadeja <[email protected]>
AuthorDate: Tue Nov 3 12:50:08 2026 +0100
GH-55374: [CI][Packaging] Fix homebrew-cpp nightly by syncing formulae to
homebrew-core (#55375)
### Rationale for this change
Fix #55374, homebrew-cpp nightly job failing with 'apache-arrow contains
conflicting version recursive dependencies: openssl@ 4, openssl@ 3'
Formula last synced in #45460 Feb 2025 to this version of
https://github.com/Homebrew/homebrew-core/blob/1cbc034a0ac723b88cc097b20a8d055871acf58f/Formula/a/apache-arrow.rb
### What changes are included in this PR?
Sync both `dev/tasks/homebrew-formulae/apache-arrow.rb` and
`dev/tasks/homebrew-formulae/apache-arrow-glib.rb`
to current homebrew-core formulae
[apache-arrow.rb](https://github.com/Homebrew/homebrew-core/blob/21ae7db95e31f05d0bde4acd9d48ce3d23c72988/Formula/a/apache-arrow.rb)
and
[apache-arrow-glib.rb](https://github.com/Homebrew/homebrew-core/blob/4b1bf942c798d35b6307d4f1c5c805902bd4ea9e/Formula/a/apache-arrow-glib.rb)
### Are these changes tested?
Yes
### Are there any user-facing changes?
No
### Was AI used for this PR?
**PR code and description written by:**
- [X] Human
- [ ] AI
**Reviewed before submission by:**
- [X] Human
- [ ] AI
- [ ] Not reviewed
* GitHub Issue: #55374
Authored-by: Tadeja Kadunc <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
---
dev/tasks/homebrew-formulae/apache-arrow-glib.rb | 2 ++
dev/tasks/homebrew-formulae/apache-arrow.rb | 27 ++++++++++++------------
2 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/dev/tasks/homebrew-formulae/apache-arrow-glib.rb
b/dev/tasks/homebrew-formulae/apache-arrow-glib.rb
index a7b856ae737..8bc1ab8d0a9 100644
--- a/dev/tasks/homebrew-formulae/apache-arrow-glib.rb
+++ b/dev/tasks/homebrew-formulae/apache-arrow-glib.rb
@@ -45,6 +45,8 @@ class ApacheArrowGlib < Formula
depends_on "apache-arrow"
depends_on "glib"
+ deny_network_access!
+
def install
system "meson", "setup", "build", "c_glib", *std_meson_args
system "meson", "compile", "-C", "build", "--verbose"
diff --git a/dev/tasks/homebrew-formulae/apache-arrow.rb
b/dev/tasks/homebrew-formulae/apache-arrow.rb
index dc7d3f58641..81b2fa52ed1 100644
--- a/dev/tasks/homebrew-formulae/apache-arrow.rb
+++ b/dev/tasks/homebrew-formulae/apache-arrow.rb
@@ -46,9 +46,10 @@ class ApacheArrow < Formula
depends_on "grpc"
depends_on "llvm"
depends_on "lz4"
- depends_on "openssl@3"
+ depends_on "openssl@4"
depends_on "protobuf"
depends_on "re2"
+ depends_on "simdjson"
depends_on "snappy"
depends_on "thrift"
depends_on "uriparser"
@@ -57,18 +58,19 @@ class ApacheArrow < Formula
uses_from_macos "python" => :build
uses_from_macos "bzip2"
- uses_from_macos "zlib"
- # Issue ref: https://github.com/protocolbuffers/protobuf/issues/19447
+ on_linux do
+ depends_on "zlib-ng-compat"
+ end
+
fails_with :gcc do
version "12"
- cause "Protobuf 29+ generated code with visibility and deprecated
attributes needs GCC 13+"
+ cause "fails handling PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED"
end
def install
- ENV.llvm_clang if OS.linux?
+ ENV.runtime_cpu_detection
- # We set `ARROW_ORC=OFF` because it fails to build with Protobuf 27.0
args = %W[
-DCMAKE_INSTALL_RPATH=#{rpath}
-DLLVM_ROOT=#{formula_opt_prefix("llvm")}
@@ -97,15 +99,14 @@ class ApacheArrow < Formula
-DARROW_INSTALL_NAME_RPATH=OFF
-DPARQUET_BUILD_EXECUTABLES=ON
]
- args << "-DARROW_MIMALLOC=ON" unless Hardware::CPU.arm?
- # Reduce overlinking. Can remove on Linux if GCC 11 issue is fixed
- args << "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,#{OS.mac? ? "-dead_strip_dylibs"
: "--as-needed"}"
+ args << "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-dead_strip_dylibs" if OS.mac? #
Reduce overlinking
+
# ARROW_SIMD_LEVEL sets the minimum required SIMD. Since this defaults to
# SSE4.2 on x86_64, we need to reduce level to match oldest supported CPU.
# Ref:
https://arrow.apache.org/docs/cpp/env_vars.html#envvar-ARROW_USER_SIMD_LEVEL
- if build.bottle? && Hardware::CPU.intel? && (!OS.mac? ||
!MacOS.version.requires_sse42?)
- args << "-DARROW_SIMD_LEVEL=NONE"
- end
+ #
+ # NOTE: Do not remove this while Core 2 is oldest supported CPU
+ args << "-DARROW_SIMD_LEVEL=NONE" if Hardware::CPU.intel?
system "cmake", "-S", "cpp", "-B", "build", *args, *std_cmake_args
system "cmake", "--build", "build"
@@ -113,8 +114,6 @@ class ApacheArrow < Formula
end
test do
- ENV.method(DevelopmentTools.default_compiler).call if OS.linux?
-
(testpath/"test.cpp").write <<~CPP
#include "arrow/api.h"
int main(void) {