From 303f5915e7a5e240b6e811dc637fe2c98be06843 Mon Sep 17 00:00:00 2001 From: Thomas Roos Date: Fri, 26 Jul 2024 06:19:24 +0000 Subject: [PATCH] amazon-kvs-producer-sdk-cpp: fix globalThreadSleep link error https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/1197 set default PACKAGECONFIG to build gstreamer --- .../global-thread-sleep-linkerror.patch | 15 +++++++++++++++ .../amazon-kvs-producer-sdk-cpp_3.4.1.bb | 5 ++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 recipes-sdk/amazon-kvs-producer-sdk/amazon-kvs-producer-sdk-cpp/global-thread-sleep-linkerror.patch diff --git a/recipes-sdk/amazon-kvs-producer-sdk/amazon-kvs-producer-sdk-cpp/global-thread-sleep-linkerror.patch b/recipes-sdk/amazon-kvs-producer-sdk/amazon-kvs-producer-sdk-cpp/global-thread-sleep-linkerror.patch new file mode 100644 index 000000000..a1079820d --- /dev/null +++ b/recipes-sdk/amazon-kvs-producer-sdk/amazon-kvs-producer-sdk-cpp/global-thread-sleep-linkerror.patch @@ -0,0 +1,15 @@ +Upstream-Status: Submitted [https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/1197] + +Index: git/CMakeLists.txt +=================================================================== +--- git.orig/CMakeLists.txt ++++ git/CMakeLists.txt +@@ -221,7 +221,7 @@ if(BUILD_GSTREAMER_PLUGIN) + target_link_libraries(gstkvssink PRIVATE ${GST_APP_LIBRARIES} KinesisVideoProducer) + + add_executable(kvssink_gstreamer_sample samples/kvssink_gstreamer_sample.cpp) +- target_link_libraries(kvssink_gstreamer_sample ${GST_APP_LIBRARIES} KinesisVideoProducer) ++ target_link_libraries(kvssink_gstreamer_sample ${GST_APP_LIBRARIES} KinesisVideoProducer kvspic) + + add_executable(kvs_gstreamer_sample samples/kvs_gstreamer_sample.cpp) + target_link_libraries(kvs_gstreamer_sample ${GST_APP_LIBRARIES} KinesisVideoProducer kvspic) diff --git a/recipes-sdk/amazon-kvs-producer-sdk/amazon-kvs-producer-sdk-cpp_3.4.1.bb b/recipes-sdk/amazon-kvs-producer-sdk/amazon-kvs-producer-sdk-cpp_3.4.1.bb index 838e9863b..b2abb51db 100644 --- a/recipes-sdk/amazon-kvs-producer-sdk/amazon-kvs-producer-sdk-cpp_3.4.1.bb +++ b/recipes-sdk/amazon-kvs-producer-sdk/amazon-kvs-producer-sdk-cpp_3.4.1.bb @@ -16,6 +16,7 @@ BRANCH ?= "master" # nooelint: oelint.file.patchsignedoff SRC_URI = "git://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp.git;protocol=https;branch=${BRANCH} \ file://amazon-kvs-producer-sdk-cpp-deps.patch \ + file://global-thread-sleep-linkerror.patch \ " SRCREV = "8e59b313950d4dbb1ecfb88e2108df87e3331c4e" @@ -24,9 +25,7 @@ S = "${WORKDIR}/git" inherit cmake pkgconfig -PACKAGECONFIG ??= "\ - ${@bb.utils.contains('PTEST_ENABLED', '1', 'gstreamer', '', d)} \ -" +PACKAGECONFIG ??= "gstreamer" PACKAGECONFIG[gstreamer] = "-DBUILD_GSTREAMER_PLUGIN=ON,-DBUILD_GSTREAMER_PLUGIN=OFF,curl log4cplus openssl gstreamer1.0 gstreamer1.0-plugins-base"