summaryrefslogtreecommitdiff
path: root/user/mistserver/fix-cmake-test-format.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2023-04-11 04:18:05 +0000
committerZach van Rijn <me@zv.io>2023-04-11 05:01:51 +0000
commite07fed402514b18f3399730744b24dfc82c5c155 (patch)
tree5942854099fab2c28236eee2a5029522b7d2ddc1 /user/mistserver/fix-cmake-test-format.patch
parente0b5793834806afa896cbd1e4ee3876fcac78edc (diff)
downloadpackages-e07fed402514b18f3399730744b24dfc82c5c155.tar.gz
packages-e07fed402514b18f3399730744b24dfc82c5c155.tar.bz2
packages-e07fed402514b18f3399730744b24dfc82c5c155.tar.xz
packages-e07fed402514b18f3399730744b24dfc82c5c155.zip
user/mistserver: bump { 2.18.1 --> 3.1 }. fixes #991.
This is upstream mistserver plus a handful of patches to support mbedTLS 3.x. See #991 for more information. Grows a dependency on libsrtp-dev (new package). Concurrency is capped at 2 threads to avoid race conditions until someone figures out why the build scripts are racy. Tests are kneecapped until someone figures out how to fix.
Diffstat (limited to 'user/mistserver/fix-cmake-test-format.patch')
-rw-r--r--user/mistserver/fix-cmake-test-format.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/user/mistserver/fix-cmake-test-format.patch b/user/mistserver/fix-cmake-test-format.patch
new file mode 100644
index 000000000..07161a2c5
--- /dev/null
+++ b/user/mistserver/fix-cmake-test-format.patch
@@ -0,0 +1,37 @@
+I don't know if this is correct.
+
+https://gitlab.kitware.com/cmake/cmake/-/issues/19109
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -931,24 +931,24 @@
+ ########################################
+ add_executable(urltest test/url.cpp ${BINARY_DIR}/mist/.headers)
+ target_link_libraries(urltest mist)
+-add_test(URLTest COMMAND urltest)
++add_test(NAME URLTest COMMAND urltest)
+ add_executable(logtest test/log.cpp ${BINARY_DIR}/mist/.headers)
+ target_link_libraries(logtest mist)
+-add_test(LOGTest COMMAND logtest)
++add_test(NAME LOGTest COMMAND logtest)
+ add_executable(downloadertest test/downloader.cpp ${BINARY_DIR}/mist/.headers)
+ target_link_libraries(downloadertest mist)
+-add_test(DownloaderTest COMMAND downloadertest)
++add_test(NAME DownloaderTest COMMAND downloadertest)
+ add_executable(urireadertest test/urireader.cpp ${BINARY_DIR}/mist/.headers)
+ target_link_libraries(urireadertest mist)
+-add_test(URIReaderTest COMMAND urireadertest)
++add_test(NAME URIReaderTest COMMAND urireadertest)
+ add_executable(jsontest test/json.cpp ${BINARY_DIR}/mist/.headers)
+ target_link_libraries(jsontest mist)
+-add_test(JSONTest COMMAND jsontest)
++add_test(NAME JSONTest COMMAND jsontest)
+ add_executable(resolvetest test/resolve.cpp ${BINARY_DIR}/mist/.headers)
+ target_link_libraries(resolvetest mist)
+ add_executable(bitwritertest test/bitwriter.cpp ${BINARY_DIR}/mist/.headers)
+ target_link_libraries(bitwritertest mist)
+-add_test(BitWriterTest COMMAND bitwritertest)
++add_test(NAME BitWriterTest COMMAND bitwritertest)
+ add_executable(streamstatustest test/status.cpp ${BINARY_DIR}/mist/.headers)
+ target_link_libraries(streamstatustest mist)
+ add_executable(websockettest test/websocket.cpp ${BINARY_DIR}/mist/.headers)