morse-feed/multimedia/aws-kvs/patches/001-libcurl-adaptations-for-openwrt.patch
Morse Micro 5ae4fe7400 aws-kvs: add the aws-kvs package.
The AWS KVS SDK provides functionality to easily stream video from
connected devices to AWS for processing, including ML, playback, and
analytics.

The Morse Micro package adds procd support to manage stream configuration
and triggering the aws stream.
2024-10-04 14:17:36 +10:00

53 lines
2.5 KiB
Diff

From 49515f24d12d1e47b4ed0a746395894cfc87d939 Mon Sep 17 00:00:00 2001
From: jdelapla <delaplan@amazon.com>
Date: Wed, 11 Oct 2023 11:26:43 -0700
Subject: [PATCH] Alpine stackoverflow fix (#1084)
* Update producer-c dependency to allow for Constrained device flag
---
CMake/Dependencies/libkvscproducer-CMakeLists.txt | 4 ++--
CMakeLists.txt | 1 +
README.md | 1 +
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 473caa5..b0014d3 100644
--- a/README.md
+++ b/README.md
@@ -94,6 +94,7 @@ You can pass the following options to `cmake ..`.
* `-DUNDEFINED_BEHAVIOR_SANITIZER` Build with UndefinedBehaviorSanitizer
* `-DALIGNED_MEMORY_MODEL` Build for aligned memory model only devices. Default is OFF.
* `-DBUILD_LOG4CPLUS_HOST` Specify host-name for log4cplus for cross-compilation. Default is OFF.
+* `-DCONSTRAINED_DEVICE` Set the thread stack size to 0.5MB, needed for Alpine builds
#### To Include JNI
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt 2023-11-10 14:53:25.865727556 +1100
+++ b/CMakeLists.txt 2023-11-10 15:00:51.255565535 +1100
@@ -16,7 +16,7 @@
option(BUILD_DEPENDENCIES "Whether or not to build depending libraries from source" ON)
option(BUILD_OPENSSL_PLATFORM "If buildng OpenSSL what is the target platform" OFF)
option(BUILD_LOG4CPLUS_HOST "Specify host-name for log4cplus for cross-compilation" OFF)
-
+option(CONSTRAINED_DEVICE "Set thread stack size to 0.5MB" OFF)
# Developer Flags
option(BUILD_TEST "Build the testing tree" OFF)
diff --git a/CMake/Dependencies/libkvscproducer-CMakeLists.txt b/CMake/Dependencies/libkvscproducer-CMakeLists.txt
--- a/CMake/Dependencies/libkvscproducer-CMakeLists.txt 2023-11-14 10:39:58.047477235 +1100
+++ b/CMake/Dependencies/libkvscproducer-CMakeLists.txt 2023-11-14 10:41:03.727453683 +1100
@@ -7,9 +7,10 @@
# clone repo only
ExternalProject_Add(libkvscproducer-download
GIT_REPOSITORY https://github.com/awslabs/amazon-kinesis-video-streams-producer-c.git
- GIT_TAG 178109a5dbfc5288ba5cf7fab1dc1afd5e2e182b
+ GIT_TAG 5e8a5cfa0e2e12304983abbe0a9fa023b574ef9a
SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/kvscproducer-src"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/kvscproducer-build"
+ PATCH_COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_CURRENT_SOURCE_DIR}/../../ patch -p1 < ${CMAKE_CURRENT_SOURCE_DIR}/../../002-libcurl_setopts.patch
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""