From c74f7879a6bafc001f7668163b6db4588787f065 Mon Sep 17 00:00:00 2001 From: Anders Wind Date: Wed, 26 Apr 2023 21:12:07 +0200 Subject: [PATCH] [aws-sdk-cpp] update port to v1.11.37 (#30197) --- ports/aws-sdk-cpp/compute_build_only.cmake | 3 --- .../aws-sdk-cpp/patch-relocatable-rpath.patch | 18 +++++++++--------- ports/aws-sdk-cpp/portfile.cmake | 3 ++- .../turn-off-warnings-as-errors.patch | 14 ++++++++++++++ ports/aws-sdk-cpp/vcpkg.json | 5 +---- versions/a-/aws-sdk-cpp.json | 5 +++++ versions/baseline.json | 2 +- 7 files changed, 32 insertions(+), 18 deletions(-) create mode 100644 ports/aws-sdk-cpp/turn-off-warnings-as-errors.patch diff --git a/ports/aws-sdk-cpp/compute_build_only.cmake b/ports/aws-sdk-cpp/compute_build_only.cmake index 05a4649c82..645075a34e 100644 --- a/ports/aws-sdk-cpp/compute_build_only.cmake +++ b/ports/aws-sdk-cpp/compute_build_only.cmake @@ -548,9 +548,6 @@ endif() if("mobile" IN_LIST FEATURES) list(APPEND BUILD_ONLY mobile) endif() -if("mobileanalytics" IN_LIST FEATURES) - list(APPEND BUILD_ONLY mobileanalytics) -endif() if("monitoring" IN_LIST FEATURES) list(APPEND BUILD_ONLY monitoring) endif() diff --git a/ports/aws-sdk-cpp/patch-relocatable-rpath.patch b/ports/aws-sdk-cpp/patch-relocatable-rpath.patch index 828647cc43..1dc1cfd760 100644 --- a/ports/aws-sdk-cpp/patch-relocatable-rpath.patch +++ b/ports/aws-sdk-cpp/patch-relocatable-rpath.patch @@ -1,12 +1,12 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt -index a653e38628..76d6067646 100644 +index 41d220d5fa..f6ee9a2a74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -142,7 +142,6 @@ else() - endif() - - # Add Linker search paths to RPATH so as to fix the problem where some linkers can't find cross-compiled dependent libraries in customer paths when linking executables. --set(CMAKE_INSTALL_RPATH_USE_LINK_PATH true) - - # build the sdk targets - project("aws-cpp-sdk-all" VERSION "${PROJECT_VERSION}" LANGUAGES CXX) +@@ -147,7 +147,6 @@ if (LEGACY_BUILD) + endif () + + # Add Linker search paths to RPATH so as to fix the problem where some linkers can't find cross-compiled dependent libraries in customer paths when linking executables. +- set(CMAKE_INSTALL_RPATH_USE_LINK_PATH true) + + # build the sdk targets + project("aws-cpp-sdk-all" VERSION "${PROJECT_VERSION}" LANGUAGES CXX) diff --git a/ports/aws-sdk-cpp/portfile.cmake b/ports/aws-sdk-cpp/portfile.cmake index 5e9c815ea9..aab2e30584 100644 --- a/ports/aws-sdk-cpp/portfile.cmake +++ b/ports/aws-sdk-cpp/portfile.cmake @@ -4,12 +4,13 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO aws/aws-sdk-cpp REF "${VERSION}" - SHA512 d30a9cbe67aca41e98c799b55122ff97e9a935d2073ae4c1ca6545b68719236c0f2daf665cc3c0da4210e6e24e908a7a3cd0b826242e8fb5a97763f43e92b57a + SHA512 e3fff504e8437741493451f602289010150d767f57ceb0a3aea02bf85268ddb2afb7473affa4a162aa356a410573ded50324979bf77265e81c047c861d887635 PATCHES patch-relocatable-rpath.patch fix-aws-root.patch fix-openssl3.patch lock-curl-http-and-tls-settings.patch + turn-off-warnings-as-errors.patch ) string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" FORCE_SHARED_CRT) diff --git a/ports/aws-sdk-cpp/turn-off-warnings-as-errors.patch b/ports/aws-sdk-cpp/turn-off-warnings-as-errors.patch new file mode 100644 index 0000000000..c682b9d5bc --- /dev/null +++ b/ports/aws-sdk-cpp/turn-off-warnings-as-errors.patch @@ -0,0 +1,14 @@ +diff --git a/cmake/compiler_settings.cmake b/cmake/compiler_settings.cmake +index a7689dc595..13e594f12c 100644 +--- a/cmake/compiler_settings.cmake ++++ b/cmake/compiler_settings.cmake +@@ -153,9 +153,6 @@ macro(set_msvc_warnings) + endif() + + # warnings as errors, max warning level (4) +- if(NOT CMAKE_CXX_FLAGS MATCHES "/WX") +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX") +- endif() + + # taken from http://stackoverflow.com/questions/2368811/how-to-set-warning-level-in-cmake + if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]") diff --git a/ports/aws-sdk-cpp/vcpkg.json b/ports/aws-sdk-cpp/vcpkg.json index 3e8e960872..3e5f0b7c60 100644 --- a/ports/aws-sdk-cpp/vcpkg.json +++ b/ports/aws-sdk-cpp/vcpkg.json @@ -1,7 +1,7 @@ { "$note": "Automatically generated by generateFeatures.ps1", "name": "aws-sdk-cpp", - "version": "1.11.4", + "version": "1.11.65", "description": "AWS SDK for C++", "homepage": "https://github.com/aws/aws-sdk-cpp", "license": "Apache-2.0", @@ -585,9 +585,6 @@ "mobile": { "description": "C++ SDK for the AWS mobile service" }, - "mobileanalytics": { - "description": "C++ SDK for the AWS mobileanalytics service" - }, "monitoring": { "description": "C++ SDK for the AWS monitoring service" }, diff --git a/versions/a-/aws-sdk-cpp.json b/versions/a-/aws-sdk-cpp.json index 6209820624..add7640efd 100644 --- a/versions/a-/aws-sdk-cpp.json +++ b/versions/a-/aws-sdk-cpp.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "785c086e68c5e4d5257587ee6deeae566140b8fe", + "version": "1.11.65", + "port-version": 0 + }, { "git-tree": "495471c4071406ec6929d77a553dc03ebd6df095", "version": "1.11.4", diff --git a/versions/baseline.json b/versions/baseline.json index 4d512480ce..a90a35cca8 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -377,7 +377,7 @@ "port-version": 1 }, "aws-sdk-cpp": { - "baseline": "1.11.4", + "baseline": "1.11.65", "port-version": 0 }, "azmq": {