Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
d592a1c5bc6ed5e3291cd423803509e06aa87d2cf575ac2413ae63ab257945c1e2208bc977f35f71fc81e610341033f8ed406a4e96a91db23a85d6587a8eea53a1d2a4ab92ce33e155685985119b2b3b9d0e5cf92f956ea7020fb53b999955e25f01ca25b71d93a55babf5b844f20c6a74d560617f502cfcd35faeacab296e72a162e985640395a6a147ecc06f1983462c89337d64cb7File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| 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
Uh oh!There was an error while loading. Please reload this page. | ||
| 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. | ||
| 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
Uh oh!There was an error while loading. Please reload this page. | ||
| 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; | ||
| 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.
Uh oh!There was an error while loading. Please reload this page. | ||
| /*now add the protocols*/ | ||
| for (size_t i = 0; i < protocols_count; ++i) { | ||
| struct aws_byte_cursor *protocol_ptr = NULL; | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.