diff --git a/ports/mosquitto/0005-websocket-shared-lib-name.patch b/ports/mosquitto/0005-websocket-shared-lib-name.patch index 33074e9c1bb175..eba54c174d2b43 100644 --- a/ports/mosquitto/0005-websocket-shared-lib-name.patch +++ b/ports/mosquitto/0005-websocket-shared-lib-name.patch @@ -1,8 +1,8 @@ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt -index 62ce99e..61f941e 100644 +index e76cc2b..61f941e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt -@@ -194,13 +194,13 @@ endif (WIN32) +@@ -194,7 +194,7 @@ endif (WIN32) if (WITH_WEBSOCKETS) if (STATIC_WEBSOCKETS) @@ -11,10 +11,3 @@ index 62ce99e..61f941e 100644 if (WIN32) set (MOSQ_LIBS ${MOSQ_LIBS} iphlpapi) link_directories(${mosquitto_SOURCE_DIR}) - endif (WIN32) - else (STATIC_WEBSOCKETS) -- set (MOSQ_LIBS ${MOSQ_LIBS} websockets) -+ set (MOSQ_LIBS ${MOSQ_LIBS} websockets_shared) - endif (STATIC_WEBSOCKETS) - endif (WITH_WEBSOCKETS) - diff --git a/ports/mosquitto/0006-pthreads-for-windows.patch b/ports/mosquitto/0006-pthreads-for-windows.patch deleted file mode 100644 index 14d59946f16dcb..00000000000000 --- a/ports/mosquitto/0006-pthreads-for-windows.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 4c55e05..adece3e 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -68,8 +68,8 @@ option(WITH_THREADING "Include client library threading support?" ON) - if (WITH_THREADING) - add_definitions("-DWITH_THREADING") - if (WIN32) -- find_package(Threads REQUIRED) -- set (PTHREAD_LIBRARIES Threads::Threads) -+ find_package(pthread CONFIG REQUIRED) -+ set (PTHREAD_LIBRARIES PThreads4W::PThreads4W) - set (PTHREAD_INCLUDE_DIR "") - elseif (ANDROID) - set (PTHREAD_LIBRARIES "") diff --git a/ports/mosquitto/portfile.cmake b/ports/mosquitto/portfile.cmake index f1487108e5c374..119ba314f8100f 100644 --- a/ports/mosquitto/portfile.cmake +++ b/ports/mosquitto/portfile.cmake @@ -3,12 +3,11 @@ vcpkg_from_github( REPO eclipse/mosquitto HEAD_REF master REF "v${VERSION}" - SHA512 667216f3e60f9916d5de200d3a205fb5a5c798564c96e44939af6c8e3af85fffa36a63eba47db009b432d14f43883dbca5b92547a458215dd269e91f6bcfb7fa + SHA512 92994ec34cebc56dd9aba1a5c3e082117157b42dc5a4c418a9e57a741ad0f2d909226e432082d21b4c9836d2f13fc37d39a1a77f0122a349d1ba6d50974e5190 PATCHES 0003-add-find_package-libwebsockets.patch 0004-support-static-build.patch 0005-websocket-shared-lib-name.patch - 0006-pthreads-for-windows.patch ) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" STATIC_LINKAGE) @@ -73,4 +72,4 @@ endif() configure_file(${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake @ONLY) file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") -file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") diff --git a/ports/mosquitto/vcpkg.json b/ports/mosquitto/vcpkg.json index d298cf9f3973e1..19457cea96de33 100644 --- a/ports/mosquitto/vcpkg.json +++ b/ports/mosquitto/vcpkg.json @@ -1,6 +1,6 @@ { "name": "mosquitto", - "version": "2.0.18", + "version": "2.0.20", "description": "Mosquitto is an open source message broker that implements the MQ Telemetry Transport protocol versions 3.1 and 3.1.1, MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model, This makes it suitable for machine to machine messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers like the Arduino", "homepage": "https://mosquitto.org/", "license": "EPL-2.0", diff --git a/versions/baseline.json b/versions/baseline.json index ae7edec66224fa..f1407d37255d55 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6085,7 +6085,7 @@ "port-version": 3 }, "mosquitto": { - "baseline": "2.0.18", + "baseline": "2.0.20", "port-version": 0 }, "mozjpeg": { diff --git a/versions/m-/mosquitto.json b/versions/m-/mosquitto.json index 20220eac430be9..6cc7c6b4743412 100644 --- a/versions/m-/mosquitto.json +++ b/versions/m-/mosquitto.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "ee450abba4fe411781a8bb412bd4b74a0e45892c", + "version": "2.0.20", + "port-version": 0 + }, { "git-tree": "6fbbe753533949d40d9ff4307bab2bb61432a117", "version": "2.0.18",