-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-44950: [C++] Bump minimum CMake version to 3.25 #44989
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 all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
d592a1c
GH-44950: [C++] Bump minimum CMake version to 3.25
raulcd 5bc6ed5
Fix some review comments
raulcd e3291cd
Update some workflows to use Ubuntu 24.04 in order to remove manual C…
raulcd 4238035
Try to use newer CMake from base Windows-2019 image on Windows R buil…
raulcd 09e06aa
Locate CMake
raulcd 87d2cf5
Try installing cmake on Linux packages
raulcd 75ac241
Locate CMake v2
raulcd 3ae63ab
Use full path to CMake on Program Files
raulcd 257945c
Try centos7 path (this is just testing at this point)
raulcd 1e2208b
Try using link for context on Dockerfile
raulcd c977f35
Try adding install_cmake.sh link to centos7 folder
raulcd f71fc81
Use script
raulcd e610341
Try using cmake instead of cmake3
raulcd 033f8ed
Remove cmake3 requirement for rhel 7 and remove BuildRequires
raulcd 406a4e9
Ensure using downloaded CMake on CentOS-7
kou 6a91db2
Revert needless change
kou 3a85d65
Revert Required CMake on minimal build example and install cmake manu…
raulcd 87a8eea
Install required curl to download newer cmake
raulcd 53a1d2a
Add CMake debug logs for fetchcontent_makeavailable(orc)
raulcd 4ab92ce
Try adding zlib_ep dependency to ORC if ZLIB_VENDORED
raulcd 33e1556
Set old behaviour for policy CMP0126
raulcd 8598511
Remove unnecessary debugging to locate CMake
raulcd 9b2b3b9
Remove stray comment
raulcd d0e5cf9
Require newer CMake for verification tasks on old Ubuntu
raulcd 2f956ea
Apply some suggestions and improvements
raulcd 7020fb5
Removing CMP0126 OLD policy behavior and force unset ZLIB_LIBRARY
raulcd 3b99995
Remove system wide pip upgrade
raulcd 5e25f01
Add readme to ci/rtools dir
amoeba ca25b71
Fix bug in patch
amoeba d93a55b
Move patch hunks into ThirdpartyToolchain.cmake
amoeba abf5b84
Remove unneeded #define
amoeba 4f20c6a
Fix wrong command
kou 74d5606
Add License header to new README
raulcd 17f502c
Comment Build-Depends on cmake for debian packages until we drop Ubun…
raulcd fcd35fa
Try using /usr/local/bin/cmake for focal and jammy
raulcd eacab29
New attempt to fix debian rules
raulcd 6e72a16
Remove remainder of _WIN32_WINNT defines
amoeba 2e98564
Remove _WIN32_WINNT define in awssdk_ep.patch
amoeba 0395a6a
Create a link to make debhelper build system happy
raulcd 147ecc0
Fix extremely weird alignment on debian rules
raulcd 6f19834
Update awssdk_ep.patch.
amoeba 62c8933
Add back cmake and link to Dockerfile to avoid having to do the link …
raulcd 7d64cb7
Some final review comments, sort lists, add comment and add empty line
raulcd 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
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
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
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,35 @@ | ||
| <!--- | ||
| 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. | ||
| --> | ||
|
|
||
| # rtools40 patches for AWS SDK and related libs | ||
raulcd marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| The patches in this directory are solely for the purpose of building Arrow C++ | ||
| under [Rtools40](https://cran.r-project.org/bin/windows/Rtools/rtools40.html) | ||
| and not used elsewhere. Once we've dropped support for Rtools40, we can consider | ||
| removing these patches. | ||
|
|
||
| The larger reason these patches are needed is that Rtools provides their own | ||
| packages and their versions of the AWS libraries weren't compatible with CMake | ||
| 3.25. Our solution was to bundle the AWS libs instead and these patches were | ||
| required to get them building under the Rtools40 environment. | ||
|
|
||
| The patches were added while upgrading the minimum required CMake version to | ||
| 3.25 in [GH-44950](https://github.com/apache/arrow/issues/44950). Please see the | ||
| associated PR, [GH-44989](https://github.com/apache/arrow/pull/44989), for more | ||
| context. | ||
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,39 @@ | ||
| # 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. | ||
|
|
||
pitrou marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| diff --git a/include/aws/common/byte_order.inl b/include/aws/common/byte_order.inl | ||
| index 1204be0..0abd9cb 100644 | ||
| --- a/include/aws/common/byte_order.inl | ||
| +++ b/include/aws/common/byte_order.inl | ||
| @@ -13,7 +13,7 @@ | ||
| # include <stdlib.h> | ||
| #else | ||
| # include <netinet/in.h> | ||
| -#endif /* _MSC_VER */ | ||
| +#endif /* _WIN32 */ | ||
|
|
||
| AWS_EXTERN_C_BEGIN | ||
|
|
||
| @@ -39,7 +39,7 @@ AWS_STATIC_IMPL uint64_t aws_hton64(uint64_t x) { | ||
| uint64_t v; | ||
| __asm__("bswap %q0" : "=r"(v) : "0"(x)); | ||
| return v; | ||
| -#elif defined(_MSC_VER) | ||
| +#elif defined(_WIN32) | ||
| return _byteswap_uint64(x); | ||
| #else | ||
| uint32_t low = x & UINT32_MAX; | ||
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,56 @@ | ||
| # 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. | ||
|
|
||
| diff --git a/source/windows/secure_channel_tls_handler.c b/source/windows/secure_channel_tls_handler.c | ||
| index 50caf02..29fe850 100644 | ||
| --- a/source/windows/secure_channel_tls_handler.c | ||
| +++ b/source/windows/secure_channel_tls_handler.c | ||
| @@ -35,6 +36,25 @@ | ||
| # pragma warning(disable : 4306) /* Identifier is type cast to a larger pointer. */ | ||
| #endif | ||
|
|
||
| +#ifndef SP_PROT_TLS1_0_SERVER | ||
| +#define SP_PROT_TLS1_0_SERVER SP_PROT_TLS1_SERVER | ||
| +#endif | ||
| +#ifndef SP_PROT_TLS1_0_CLIENT | ||
| +#define SP_PROT_TLS1_0_CLIENT SP_PROT_TLS1_CLIENT | ||
| +#endif | ||
| +#ifndef SP_PROT_TLS1_1_SERVER | ||
| +#define SP_PROT_TLS1_1_SERVER 0x00000100 | ||
| +#endif | ||
| +#ifndef SP_PROT_TLS1_1_CLIENT | ||
| +#define SP_PROT_TLS1_1_CLIENT 0x00000200 | ||
| +#endif | ||
| +#ifndef SCH_USE_STRONG_CRYPTO | ||
| +#define SCH_USE_STRONG_CRYPTO 0x00400000 | ||
| +#endif | ||
| +#ifndef SECBUFFER_ALERT | ||
| +#define SECBUFFER_ALERT 0x11 | ||
| +#endif | ||
| + | ||
| #define KB_1 1024 | ||
| #define READ_OUT_SIZE (16 * KB_1) | ||
| #define READ_IN_SIZE READ_OUT_SIZE | ||
| @@ -456,7 +476,7 @@ static int s_fillin_alpn_data( | ||
|
|
||
| *extension_length += sizeof(uint32_t) + sizeof(uint16_t); | ||
|
|
||
| - *extension_name = SecApplicationProtocolNegotiationExt_ALPN; | ||
| + *extension_name = 2; | ||
kou marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| /*now add the protocols*/ | ||
| for (size_t i = 0; i < protocols_count; ++i) { | ||
| struct aws_byte_cursor *protocol_ptr = NULL; | ||
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.
Uh oh!
There was an error while loading. Please reload this page.