-
Notifications
You must be signed in to change notification settings - Fork 4.2k
ARROW-12590: [C++][R] Update copies of Homebrew files to reflect recent updates #13769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 37 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
2ab028b
run homebrew-r-autobrew on both macos versions
jonkeane aa346f8
oops
jonkeane 8d5592c
first steps towards also testing autobrew with modern architectures
jonkeane b4e620a
oops brew -> autobrew
jonkeane 6795408
try https://github.com/Homebrew/homebrew-core/pull/80501
jonkeane f0719b5
some prints
jonkeane 42ffab2
arrow_r_dev for more verbose logs
jonkeane a49482a
cleanup
jonkeane 882b0b9
remove env runtime flag
jonkeane 41cb3b5
sort alphabetically
assignUser 1e57916
update homebrew formulae
assignUser 57f162b
fix typo
assignUser edc9ff6
don't fail-fast
assignUser 84af72c
fix dependecy action
assignUser 10f06e6
fix dir
assignUser 0c0a5dc
fix dep dir
assignUser b841e43
change cmake args
assignUser 642b50f
fix dependencies
assignUser 02b0e34
fix static formu
assignUser b36a0fe
fix sorting
assignUser 3e2c598
indent
assignUser 4f140c0
sort
assignUser ce088a4
Revert "fix python lint"
assignUser 43746a8
add new line
assignUser 7d908ab
Update r/tools/autobrew
assignUser 4405d5c
update License
assignUser 0c1d341
use mac-10.13
assignUser 86706c6
fix if
assignUser 13843b9
Revert "fix if"
assignUser 7ff504d
Revert "use mac-10.13"
assignUser 2debe5a
remove default off options
assignUser a5d6334
update autobrew url
assignUser cea68cc
Revert "Revert "fix python lint""
assignUser 0c7b7dd
add 10.13 runners
assignUser fbfd86d
fix if
assignUser 1bd4ee2
fix typo
assignUser 345c78c
explicitly add not_cran
assignUser 197f509
Fix a typo
kou 92904b1
another commit [skip-ci]
assignUser File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 98 additions & 0 deletions
98
dev/tasks/homebrew-formulae/autobrew/apache-arrow-static.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,98 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| # Cloned from https://github.com/autobrew/homebrew-core/blob/high-sierra/Formula/apache-arrow.rb | ||
| # Upstream any relevant changes (dependencies, build args ...) | ||
|
|
||
| class ApacheArrowStatic < Formula | ||
|
assignUser marked this conversation as resolved.
Outdated
|
||
| desc "Columnar in-memory analytics layer designed to accelerate big data" | ||
| homepage "https://arrow.apache.org/" | ||
| url "https://www.apache.org/dyn/closer.lua?path=arrow/arrow-8.0.0.9000/apache-arrow-8.0.0.9000.tar.gz" | ||
| # Uncomment and update to test on a release candidate | ||
| # mirror "https://dist.apache.org/repos/dist/dev/arrow/apache-arrow-8.0.0-rc1/apache-arrow-8.0.0.tar.gz" | ||
| sha256 "9948ddb6d4798b51552d0dca3252dd6e3a7d0f9702714fc6f5a1b59397ce1d28" | ||
| head "https://github.com/apache/arrow.git" | ||
|
|
||
| bottle do | ||
|
nealrichardson marked this conversation as resolved.
Outdated
|
||
| sha256 cellar: :any, arm64_big_sur: "ef89d21a110b89840cc6148add685d407e75bd633bc8f79625eb33d00e3694b4" | ||
| sha256 cellar: :any, big_sur: "6fcb9f55d44eb61d295a8020e039a0622bdc044b220cfffef855f3e3ab8057a1" | ||
| sha256 cellar: :any, catalina: "bf71b17766688077fb9b4e679f309742c16524015287dd3633758c679752c977" | ||
| end | ||
|
|
||
| depends_on "boost" => :build | ||
| depends_on "cmake" => :build | ||
| depends_on "aws-sdk-cpp-static" | ||
| depends_on "brotli" | ||
| depends_on "lz4" | ||
| depends_on "snappy" | ||
| depends_on "thrift" | ||
| depends_on "zstd" | ||
|
|
||
| conflicts_with "apache-arrow", because: "both install Arrow" | ||
|
|
||
| def install | ||
| ENV.cxx11 | ||
| # https://github.com/Homebrew/homebrew-core/issues/94724 | ||
| # https://issues.apache.org/jira/browse/ARROW-15664 | ||
| ENV["HOMEBREW_OPTIMIZATION_LEVEL"] = "O2" | ||
|
|
||
| args = %W[ | ||
| -DARROW_BUILD_SHARED=OFF | ||
| -DARROW_BUILD_UTILITIES=ON | ||
| -DARROW_COMPUTE=ON | ||
| -DARROW_CSV=ON | ||
| -DARROW_DATASET=ON | ||
| -DARROW_FILESYSTEM=ON | ||
| -DARROW_GCS=ON | ||
| -DARROW_JEMALLOC=ON | ||
| -DARROW_JSON=ON | ||
| -DARROW_MIMALLOC=ON | ||
| -DARROW_PARQUET=ON | ||
| -DARROW_S3=ON | ||
| -DARROW_VERBOSE_THIRDPARTY_BUILD=ON | ||
| -DARROW_WITH_BROTLI=ON | ||
| -DARROW_WITH_BZ2=ON | ||
| -DARROW_WITH_LZ4=ON | ||
| -DARROW_WITH_SNAPPY=ON | ||
| -DARROW_WITH_ZLIB=ON | ||
| -DARROW_WITH_ZSTD=ON | ||
| -DLZ4_HOME=#{Formula["lz4"].prefix} | ||
| -DPARQUET_BUILD_EXECUTABLES=ON | ||
| -DTHRIFT_HOME=#{Formula["thrift"].prefix} | ||
| ] | ||
|
|
||
| mkdir "build" | ||
| cd "build" do | ||
| system "cmake", "../cpp", *std_cmake_args, *args | ||
| system "make" | ||
| system "make", "install" | ||
| end | ||
| end | ||
|
|
||
| test do | ||
| (testpath/"test.cpp").write <<~EOS | ||
| #include "arrow/api.h" | ||
| int main(void) { | ||
| arrow::int64(); | ||
| return 0; | ||
| } | ||
| EOS | ||
| system ENV.cxx, "test.cpp", "-std=c++11", "-I#{include}", "-L#{lib}", \ | ||
| "-larrow", "-larrow_bundled_dependencies", "-o", "test" | ||
| system "./test" | ||
| end | ||
| end | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.