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"