diff --git a/ports/cnats/lowercase_ws2_32.patch b/ports/cnats/lowercase_ws2_32.patch new file mode 100644 index 0000000000..02c1b0eb96 --- /dev/null +++ b/ports/cnats/lowercase_ws2_32.patch @@ -0,0 +1,19 @@ +Subject: [PATCH] Change "Ws2_32" to "ws2_32" for MinGW compatibility with no adverse effect for native Windows build. +--- +Index: CMakeLists.txt +IDEA additional info: +Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP +<+>UTF-8 +=================================================================== +diff --git a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt (revision 1cb8d8cacec14bb9760a50f712b5f62d16ddc91e) ++++ b/CMakeLists.txt (revision c1d98cd1d3484e3d41b7236fbd272295e9ef72ce) +@@ -196,7 +196,7 @@ + elseif(WIN32) + set(NATS_LIBDIR "lib") + set(NATS_INCLUDE_DIR "include") +- set(NATS_EXTRA_LIB "Ws2_32") ++ set(NATS_EXTRA_LIB "ws2_32") + set(NATS_OS "_WIN32") + set(NATS_PLATFORM_INCLUDE "win") + if(sodium_USE_STATIC_LIBS) diff --git a/ports/cnats/portfile.cmake b/ports/cnats/portfile.cmake index a12e924327..9c4727e491 100644 --- a/ports/cnats/portfile.cmake +++ b/ports/cnats/portfile.cmake @@ -2,11 +2,12 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO nats-io/nats.c REF "v${VERSION}" - SHA512 d32979a686420fe23af96b58efcf366ff9ff315531ca54962f2ae8ae7126174b5ca10a74152cc14f49be1143d0ad7dd5a68beeb31126410c76dbaa0468a45382 + SHA512 4cc127a461a5074d8a49d8cee633577951152cd54f57b4118ff6e4a8c0da73e2f61e9e54546a34c9e79a4557165a80bedc7e9cf6ed0fde28134019eb59a241b9 HEAD_REF main PATCHES fix-sodium-dep.patch fix_install_path.patch + lowercase_ws2_32.patch ) vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS diff --git a/ports/cnats/vcpkg.json b/ports/cnats/vcpkg.json index 5a99a99982..711d0a1c8e 100644 --- a/ports/cnats/vcpkg.json +++ b/ports/cnats/vcpkg.json @@ -1,6 +1,6 @@ { "name": "cnats", - "version": "3.8.0", + "version": "3.8.2", "description": "A C client for the NATS messaging system", "homepage": "https://github.com/nats-io/nats.c", "license": "Apache-2.0", diff --git a/versions/baseline.json b/versions/baseline.json index 379ac1a680..acc0ec903d 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1733,7 +1733,7 @@ "port-version": 3 }, "cnats": { - "baseline": "3.8.0", + "baseline": "3.8.2", "port-version": 0 }, "cnl": { diff --git a/versions/c-/cnats.json b/versions/c-/cnats.json index 90b093994b..75a6adbe56 100644 --- a/versions/c-/cnats.json +++ b/versions/c-/cnats.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "a521d9641d065db79cce09b63daef612a0a34c41", + "version": "3.8.2", + "port-version": 0 + }, { "git-tree": "963d6b12fba8001c650cc6d56a21a1a5122cf845", "version": "3.8.0",