-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
arrow: fix recipe when arrow/*:parquet=True #24044
Merged
Merged
Changes from 15 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
dc958d2
Fix recipe when arrow/*:parquet=True
robomics a8f9fde
Add patch description and type annotations
robomics 7fd393b
Set parquet=True
robomics 15a8629
Do not look for static analyzers
robomics c578dfb
Bugfix
robomics 64a8976
Bugfix
robomics cba2cd1
Refactor patches
robomics c46189d
Backport fixes from upstream
robomics da8f501
Merge branch 'master' into fix/arrow
robomics ed01cc4
Patch v17.0.0
robomics 18cec59
Woops. Forgot to apply patch to v16.1.0
robomics 3fc5e8a
Bump deps
robomics 8993c7f
Merge branch 'master' into fix/arrow
robomics 17c11e7
Bugfix
robomics 952d5c9
Add patch_source
robomics 0059278
Add check to ensure with_boost=True when with_thrift=True
robomics 90ef254
Fix typos
robomics 6408788
Cleanups
AbrilRBS 184ae5c
Set ARROW_THRIFT
robomics 20124f8
Bugfix
robomics b776db9
Bugfix
robomics 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 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 |
---|---|---|
|
@@ -48,24 +48,85 @@ | |
url: "https://www.apache.org/dyn/closer.lua/arrow/arrow-7.0.0/apache-arrow-7.0.0.tar.gz?action=download" | ||
sha256: "e8f49b149a15ecef4e40fcfab1b87c113c6b1ee186005c169e5cdf95d31a99de" | ||
patches: | ||
"17.0.0": | ||
- patch_file: "patches/16.0.0-0001-fix-cmake.patch" | ||
patch_description: "use cci package" | ||
patch_type: "conan" | ||
"16.1.0": | ||
- patch_file: "patches/16.0.0-0001-fix-cmake.patch" | ||
patch_description: "use cci package" | ||
patch_type: "conan" | ||
"16.0.0": | ||
- patch_file: "patches/16.0.0-0001-fix-cmake.patch" | ||
patch_description: "use cci package" | ||
patch_type: "conan" | ||
"15.0.0": | ||
- patch_file: "patches/11.0.0-0001-fix-cmake.patch" | ||
patch_description: "use cci package" | ||
patch_type: "conan" | ||
"14.0.2": | ||
- patch_file: "patches/11.0.0-0001-fix-cmake.patch" | ||
patch_description: "use cci package" | ||
patch_type: "conan" | ||
"14.0.1": | ||
- patch_file: "patches/11.0.0-0001-fix-cmake.patch" | ||
patch_description: "use cci package" | ||
patch_type: "conan" | ||
"14.0.0": | ||
- patch_file: "patches/11.0.0-0001-fix-cmake.patch" | ||
patch_description: "use cci package" | ||
patch_type: "conan" | ||
"13.0.0": | ||
- patch_file: "patches/11.0.0-0001-fix-cmake.patch" | ||
patch_description: "use cci package" | ||
patch_type: "conan" | ||
"12.0.1": | ||
- patch_file: "patches/11.0.0-0001-fix-cmake.patch" | ||
patch_description: "use cci package" | ||
patch_type: "conan" | ||
"12.0.0": | ||
- patch_file: "patches/11.0.0-0001-fix-cmake.patch" | ||
patch_description: "use cci package" | ||
patch_type: "conan" | ||
"11.0.0": | ||
- patch_file: "patches/11.0.0-0001-fix-cmake.patch" | ||
patch_description: "use cci package" | ||
patch_type: "conan" | ||
"8.0.1": | ||
- patch_file: "patches/8.0.0-0005-install-utils.patch" | ||
- patch_file: "patches/8.0.0-0001-static-analyzers.patch" | ||
patch_description: "do not look for static analyzers" | ||
patch_type: "conan" | ||
- patch_file: "patches/8.0.0-0002-install-utils.patch" | ||
patch_description: "enable utils installation" | ||
patch_type: "conan" | ||
- patch_file: "patches/8.0.0-0006-fix-cmake.patch" | ||
- patch_file: "patches/8.0.0-0003-fix-cmake.patch" | ||
patch_description: "use cci package" | ||
patch_type: "conan" | ||
- patch_file: "patches/8.0.0-0004-fix-msvc-build.patch" | ||
patch_description: "patch Arrow such that it can be built using MSVC" | ||
patch_type: "backport" | ||
Check warning on line 107 in recipes/arrow/all/conandata.yml GitHub Actions / Lint changed files (YAML files)conandata.yml schema warning
|
||
patch_source: "https://github.com/apache/arrow/pull/13108" | ||
"8.0.0": | ||
- patch_file: "patches/8.0.0-0005-install-utils.patch" | ||
- patch_file: "patches/8.0.0-0001-static-analyzers.patch" | ||
patch_description: "do not look for static analyzers" | ||
patch_type: "conan" | ||
- patch_file: "patches/8.0.0-0002-install-utils.patch" | ||
patch_description: "enable utils installation" | ||
patch_type: "conan" | ||
- patch_file: "patches/8.0.0-0006-fix-cmake.patch" | ||
- patch_file: "patches/8.0.0-0003-fix-cmake.patch" | ||
patch_description: "use cci package" | ||
patch_type: "conan" | ||
- patch_file: "patches/8.0.0-0004-fix-msvc-build.patch" | ||
patch_description: "patch Arrow such that it can be built using MSVC" | ||
patch_type: "backport" | ||
Check warning on line 121 in recipes/arrow/all/conandata.yml GitHub Actions / Lint changed files (YAML files)conandata.yml schema warning
|
||
patch_source: "https://github.com/apache/arrow/pull/13108" | ||
"7.0.0": | ||
- patch_file: "patches/7.0.0-0006-install-utils.patch" | ||
- patch_file: "patches/7.0.0-0001-static-analyzers.patch" | ||
patch_description: "do not look for static analyzers" | ||
patch_type: "conan" | ||
- patch_file: "patches/7.0.0-0002-install-utils.patch" | ||
patch_description: "enable utils installation" | ||
patch_type: "conan" | ||
- patch_file: "patches/7.0.0-0007-fix-cmake.patch" | ||
- patch_file: "patches/7.0.0-0003-fix-cmake.patch" | ||
patch_description: "use cci package" | ||
patch_type: "conan" |
This file contains 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 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,42 @@ | ||
diff --git a/cpp/cmake_modules/FindThriftAlt.cmake b/cpp/cmake_modules/FindThriftAlt.cmake | ||
index f3e49021d..95177c2a6 100644 | ||
--- a/cpp/cmake_modules/FindThriftAlt.cmake | ||
+++ b/cpp/cmake_modules/FindThriftAlt.cmake | ||
@@ -45,22 +45,21 @@ endif() | ||
# * https://github.com/apache/thrift/pull/2725 | ||
perseoGI marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# * https://github.com/apache/thrift/pull/2726 | ||
# * https://github.com/conda-forge/thrift-cpp-feedstock/issues/68 | ||
-if(NOT WIN32) | ||
- set(find_package_args "") | ||
- if(ThriftAlt_FIND_VERSION) | ||
- list(APPEND find_package_args ${ThriftAlt_FIND_VERSION}) | ||
- endif() | ||
- if(ThriftAlt_FIND_QUIETLY) | ||
- list(APPEND find_package_args QUIET) | ||
- endif() | ||
- find_package(Thrift ${find_package_args}) | ||
- if(Thrift_FOUND) | ||
- set(ThriftAlt_FOUND TRUE) | ||
- add_executable(thrift::compiler IMPORTED) | ||
- set_target_properties(thrift::compiler PROPERTIES IMPORTED_LOCATION | ||
- "${THRIFT_COMPILER}") | ||
- return() | ||
- endif() | ||
+ | ||
+set(find_package_args "") | ||
+if(ThriftAlt_FIND_VERSION) | ||
+ list(APPEND find_package_args ${ThriftAlt_FIND_VERSION}) | ||
+endif() | ||
+if(ThriftAlt_FIND_QUIETLY) | ||
+ list(APPEND find_package_args QUIET) | ||
+endif() | ||
+find_package(Thrift ${find_package_args}) | ||
+if(Thrift_FOUND) | ||
+ set(ThriftAlt_FOUND TRUE) | ||
+ add_executable(thrift::compiler IMPORTED) | ||
+ set_target_properties(thrift::compiler PROPERTIES IMPORTED_LOCATION | ||
+ "${THRIFT_COMPILER}") | ||
+ return() | ||
endif() | ||
|
||
function(extract_thrift_version) |
This file contains 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,62 @@ | ||
diff --git a/cpp/cmake_modules/FindThriftAlt.cmake b/cpp/cmake_modules/FindThriftAlt.cmake | ||
index f3e49021d..3e63f1edf 100644 | ||
--- a/cpp/cmake_modules/FindThriftAlt.cmake | ||
+++ b/cpp/cmake_modules/FindThriftAlt.cmake | ||
@@ -45,23 +45,23 @@ endif() | ||
# * https://github.com/apache/thrift/pull/2725 | ||
# * https://github.com/apache/thrift/pull/2726 | ||
# * https://github.com/conda-forge/thrift-cpp-feedstock/issues/68 | ||
-if(NOT WIN32) | ||
- set(find_package_args "") | ||
- if(ThriftAlt_FIND_VERSION) | ||
- list(APPEND find_package_args ${ThriftAlt_FIND_VERSION}) | ||
- endif() | ||
- if(ThriftAlt_FIND_QUIETLY) | ||
- list(APPEND find_package_args QUIET) | ||
- endif() | ||
- find_package(Thrift ${find_package_args}) | ||
- if(Thrift_FOUND) | ||
- set(ThriftAlt_FOUND TRUE) | ||
- add_executable(thrift::compiler IMPORTED) | ||
- set_target_properties(thrift::compiler PROPERTIES IMPORTED_LOCATION | ||
- "${THRIFT_COMPILER}") | ||
- return() | ||
- endif() | ||
+ | ||
+set(find_package_args "") | ||
+if(ThriftAlt_FIND_VERSION) | ||
+ list(APPEND find_package_args ${ThriftAlt_FIND_VERSION}) | ||
+endif() | ||
+if(ThriftAlt_FIND_QUIETLY) | ||
+ list(APPEND find_package_args QUIET) | ||
endif() | ||
+find_package(Thrift ${find_package_args}) | ||
+if(Thrift_FOUND) | ||
+ set(ThriftAlt_FOUND TRUE) | ||
+ add_executable(thrift::compiler IMPORTED) | ||
+ set_target_properties(thrift::compiler PROPERTIES IMPORTED_LOCATION | ||
+ "${THRIFT_COMPILER}") | ||
+ return() | ||
+endif() | ||
+ | ||
|
||
function(extract_thrift_version) | ||
if(ThriftAlt_INCLUDE_DIR) | ||
diff --git a/cpp/src/parquet/CMakeLists.txt b/cpp/src/parquet/CMakeLists.txt | ||
index 93f2e72d8..e00f73f7d 100644 | ||
--- a/cpp/src/parquet/CMakeLists.txt | ||
+++ b/cpp/src/parquet/CMakeLists.txt | ||
@@ -262,11 +262,11 @@ if(NOT PARQUET_MINIMAL_DEPENDENCY) | ||
|
||
# These are libraries that we will link privately with parquet_shared (as they | ||
# do not need to be linked transitively by other linkers) | ||
- list(APPEND PARQUET_SHARED_PRIVATE_LINK_LIBS thrift::thrift) | ||
+ list(APPEND PARQUET_SHARED_PRIVATE_LINK_LIBS Boost::headers thrift::thrift) | ||
robomics marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# Link publicly with parquet_static (because internal users need to | ||
# transitively link all dependencies) | ||
- list(APPEND PARQUET_STATIC_LINK_LIBS thrift::thrift) | ||
+ list(APPEND PARQUET_STATIC_LINK_LIBS Boost::headers thrift::thrift) | ||
if(NOT THRIFT_VENDORED) | ||
list(APPEND PARQUET_STATIC_INSTALL_INTERFACE_LIBS thrift::thrift) | ||
endif() |
17 changes: 17 additions & 0 deletions
17
recipes/arrow/all/patches/7.0.0-0001-static-analyzers.patch
This file contains 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,17 @@ | ||
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt | ||
index dff5b1a59..1189a2957 100644 | ||
--- a/cpp/CMakeLists.txt | ||
+++ b/cpp/CMakeLists.txt | ||
@@ -161,11 +161,7 @@ else() | ||
set(MSVC_TOOLCHAIN FALSE) | ||
endif() | ||
|
||
-find_package(ClangTools) | ||
-find_package(InferTools) | ||
-if("$ENV{CMAKE_EXPORT_COMPILE_COMMANDS}" STREQUAL "1" | ||
- OR CLANG_TIDY_FOUND | ||
- OR INFER_FOUND) | ||
+if("$ENV{CMAKE_EXPORT_COMPILE_COMMANDS}" STREQUAL "1") | ||
# Generate a Clang compile_commands.json "compilation database" file for use | ||
# with various development tools, such as Vim's YouCompleteMe plugin. | ||
# See http://clang.llvm.org/docs/JSONCompilationDatabase.html |
2 changes: 1 addition & 1 deletion
2
...ll/patches/7.0.0-0006-install-utils.patch → ...ll/patches/7.0.0-0002-install-utils.patch
This file contains 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 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
17 changes: 17 additions & 0 deletions
17
recipes/arrow/all/patches/8.0.0-0001-static-analyzers.patch
This file contains 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,17 @@ | ||
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt | ||
index aba18c8d2..5eec4ea72 100644 | ||
--- a/cpp/CMakeLists.txt | ||
+++ b/cpp/CMakeLists.txt | ||
@@ -162,11 +162,7 @@ else() | ||
set(MSVC_TOOLCHAIN FALSE) | ||
endif() | ||
|
||
-find_package(ClangTools) | ||
-find_package(InferTools) | ||
-if("$ENV{CMAKE_EXPORT_COMPILE_COMMANDS}" STREQUAL "1" | ||
- OR CLANG_TIDY_FOUND | ||
- OR INFER_FOUND) | ||
+if("$ENV{CMAKE_EXPORT_COMPILE_COMMANDS}" STREQUAL "1") | ||
# Generate a Clang compile_commands.json "compilation database" file for use | ||
# with various development tools, such as Vim's YouCompleteMe plugin. | ||
# See http://clang.llvm.org/docs/JSONCompilationDatabase.html |
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a good reason to have this set to true? Is this just for testing the changes n the CI? We could then revert it now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes!
with_thrift
needs to be True in order to build Arrow with Parquet support (which is now enabled by default based on #24044 (comment)).