[arch-commits] Commit in aws-sdk-cpp/repos (3 files)
Anatol Pomozov
anatolik at gemini.archlinux.org
Tue Oct 5 02:42:29 UTC 2021
Date: Tuesday, October 5, 2021 @ 02:42:29
Author: anatolik
Revision: 1027686
archrelease: copy trunk to community-testing-x86_64
Added:
aws-sdk-cpp/repos/community-testing-x86_64/
aws-sdk-cpp/repos/community-testing-x86_64/PKGBUILD
(from rev 1027685, aws-sdk-cpp/trunk/PKGBUILD)
aws-sdk-cpp/repos/community-testing-x86_64/fix_null.patch
(from rev 1027685, aws-sdk-cpp/trunk/fix_null.patch)
----------------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
fix_null.patch | 26 ++++++++++++++++++++++++++
2 files changed, 62 insertions(+)
Copied: aws-sdk-cpp/repos/community-testing-x86_64/PKGBUILD (from rev 1027685, aws-sdk-cpp/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-10-05 02:42:29 UTC (rev 1027686)
@@ -0,0 +1,36 @@
+# Maintainer: Anatol Pomozov
+
+pkgname=aws-sdk-cpp
+pkgver=1.8.187
+pkgrel=1
+pkgdesc='AWS SDK for C++'
+arch=(x86_64)
+url='https://github.com/aws/aws-sdk-cpp'
+license=(Apache)
+depends=(openssl curl zlib util-linux-libs aws-c-common aws-c-event-stream libpulse)
+makedepends=(cmake ninja)
+source=(aws-sdk-cpp-$pkgver.zip::https://github.com/aws/aws-sdk-cpp/archive/$pkgver.zip
+ fix_null.patch) # https://github.com/aws/aws-sdk-cpp/pull/1506
+sha256sums=('7dfe63338631acfbfe31981924029bc359ba83fda2003a2af856facfc1b8242e'
+ '2260270b5f05c79232b106ad4c73856c05db1f5866174934e0f03e56668868c3')
+
+prepare() {
+ cd aws-sdk-cpp-$pkgver
+
+ patch -p1 < ../fix_null.patch
+}
+
+build() {
+ cd aws-sdk-cpp-$pkgver
+
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCUSTOM_MEMORY_MANAGEMENT=OFF -DENABLE_TESTING=OFF -DBUILD_DEPS=OFF \
+ -S . -B build -G Ninja
+ ninja -C build -j 2 # the build is so heavy that it gets OOM killed even at powerful machines
+}
+
+package() {
+ cd aws-sdk-cpp-$pkgver
+
+ DESTDIR="$pkgdir" ninja -C build install
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Copied: aws-sdk-cpp/repos/community-testing-x86_64/fix_null.patch (from rev 1027685, aws-sdk-cpp/trunk/fix_null.patch)
===================================================================
--- community-testing-x86_64/fix_null.patch (rev 0)
+++ community-testing-x86_64/fix_null.patch 2021-10-05 02:42:29 UTC (rev 1027686)
@@ -0,0 +1,26 @@
+diff --git a/aws-cpp-sdk-core/source/utils/event/EventStreamDecoder.cpp b/aws-cpp-sdk-core/source/utils/event/EventStreamDecoder.cpp
+index f70a6c88f6..e09a4e0ee6 100644
+--- a/aws-cpp-sdk-core/source/utils/event/EventStreamDecoder.cpp
++++ b/aws-cpp-sdk-core/source/utils/event/EventStreamDecoder.cpp
+@@ -72,9 +72,7 @@ namespace Aws
+ assert(handler);
+ if (!handler)
+ {
+- AWS_LOGSTREAM_ERROR(EVENT_STREAM_DECODER_CLASS_TAG, "Payload received, but decoder encountered internal errors before."
+- "ErrorCode: " << EventStreamErrorsMapper::GetNameForError(handler->GetInternalError()) << ", "
+- "ErrorMessage: " << handler->GetEventPayloadAsString());
++ AWS_LOGSTREAM_ERROR(EVENT_STREAM_DECODER_CLASS_TAG, "Payload received, but handler is null.");
+ return;
+ }
+ handler->WriteMessageEventPayload(static_cast<unsigned char*>(payload->buffer), payload->len);
+@@ -129,9 +127,7 @@ namespace Aws
+ assert(handler);
+ if (!handler)
+ {
+- AWS_LOGSTREAM_ERROR(EVENT_STREAM_DECODER_CLASS_TAG, "Payload received, but decoder encountered internal errors before."
+- "ErrorCode: " << EventStreamErrorsMapper::GetNameForError(handler->GetInternalError()) << ", "
+- "ErrorMessage: " << handler->GetEventPayloadAsString());
++ AWS_LOGSTREAM_ERROR(EVENT_STREAM_DECODER_CLASS_TAG, "Payload received, but handler is null.");
+ return;
+ }
+
More information about the arch-commits
mailing list