aboutsummaryrefslogtreecommitdiff
path: root/ports/libssh2
diff options
context:
space:
mode:
authorchausner <15180557+chausner@users.noreply.github.com>2021-10-11 19:26:07 +0200
committerGitHub <noreply@github.com>2021-10-11 10:26:07 -0700
commitd7cc563783989584950e72ed1776dd2645de99b6 (patch)
treef81431fa10e50b957c0c6552ddeeae5049870103 /ports/libssh2
parenta6768f64260f0380e7daca3d2a5519bbd496e13b (diff)
downloadvcpkg-d7cc563783989584950e72ed1776dd2645de99b6.tar.gz
vcpkg-d7cc563783989584950e72ed1776dd2645de99b6.zip
[libssh2] Update to 1.10.0 (#20364)
* Update libssh2 to 1.10.0 * Update CI baseline * Fix patch * Change version-string to version * Update git-tree hash * Switch to new CMake portfile commands * Fix UWP build * Format vcpkg.json * Update git-tree hash * Switch back to legacy CMake commands to fix build validation issues * Update git-tree hash * Fix IS_UWP define in patch * Update git-tree hash Co-authored-by: chausner <chausner@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Diffstat (limited to 'ports/libssh2')
-rw-r--r--ports/libssh2/0001-Fix-UWP.patch26
-rw-r--r--ports/libssh2/portfile.cmake18
-rw-r--r--ports/libssh2/vcpkg.json5
3 files changed, 32 insertions, 17 deletions
diff --git a/ports/libssh2/0001-Fix-UWP.patch b/ports/libssh2/0001-Fix-UWP.patch
index 270dd7b90..8a7190f89 100644
--- a/ports/libssh2/0001-Fix-UWP.patch
+++ b/ports/libssh2/0001-Fix-UWP.patch
@@ -15,9 +15,9 @@ diff --git a/src/agent.c b/src/agent.c
index c2ba422..f1799f8 100644
--- a/src/agent.c
+++ b/src/agent.c
-@@ -51,6 +51,10 @@
- #include "userauth.h"
- #include "session.h"
+@@ -55,6 +55,10 @@
+ #include <stdlib.h>
+ #endif
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP)
+#define IS_UWP 1
@@ -42,7 +42,23 @@ index c2ba422..f1799f8 100644
-#ifdef WIN32
- {"Pageant", &agent_ops_pageant},
+#if defined(WIN32) && !defined(IS_UWP)
-+ {"Pageant", &agent_ops_pageant},
++ {"Pageant", &agent_ops_pageant},
+ {"OpenSSH", &agent_ops_openssh},
#endif /* WIN32 */
#ifdef PF_UNIX
- {"Unix", &agent_ops_unix},
+diff --git a/src/agent_win.c b/src/agent_win.c
+--- a/src/agent_win.c
++++ b/src/agent_win.c
+@@ -55,7 +55,11 @@
+ #include <stdlib.h>
+ #endif
+
+-#ifdef WIN32
++#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP)
++#define IS_UWP 1
++#endif /* #if defined(WINAPI_FAMILY) */
++
++#if defined(WIN32) && !defined(IS_UWP)
+ /* Code to talk to OpenSSH was taken and modified from the Win32 port of
+ * Portable OpenSSH by the PowerShell team. Commit
+ * 8ab565c53f3619d6a1f5ac229e212cad8a52852c of
diff --git a/ports/libssh2/portfile.cmake b/ports/libssh2/portfile.cmake
index 0922bb7c8..7949dc64e 100644
--- a/ports/libssh2/portfile.cmake
+++ b/ports/libssh2/portfile.cmake
@@ -1,14 +1,14 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libssh2/libssh2
- REF 42d37aa63129a1b2644bf6495198923534322d64
- SHA512 e86c0787e2aa7be5e9f19356e543493e53c7d1b51b585c46facfb05f769e6491209f820b207bf594348f4760c492c32dda3fcc94fc0af93cb09c736492a8e231
+ REF libssh2-1.10.0
+ SHA512 615E28880695911F5700CC7AC3DDA6B894384C0B1D8B02B53C2EB58F1839F47211934A292F490AD7DDEF7E63F332E0EBF44F8E6334F64BE8D143C72032356C1F
HEAD_REF master
PATCHES "${CMAKE_CURRENT_LIST_DIR}/0001-Fix-UWP.patch"
)
vcpkg_configure_cmake(
- SOURCE_PATH ${SOURCE_PATH}
+ SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTING=OFF
@@ -19,14 +19,14 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig)
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share")
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libssh2)
-file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libssh2 RENAME copyright)
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libssh2" RENAME copyright)
vcpkg_copy_pdbs()
diff --git a/ports/libssh2/vcpkg.json b/ports/libssh2/vcpkg.json
index c5692d464..9dc048318 100644
--- a/ports/libssh2/vcpkg.json
+++ b/ports/libssh2/vcpkg.json
@@ -1,8 +1,7 @@
{
"name": "libssh2",
- "version-string": "1.9.0",
- "port-version": 1,
- "description": "The SSH library",
+ "version": "1.10.0",
+ "description": "libssh2 is a client-side C library implementing the SSH2 protocol.",
"homepage": "https://www.libssh2.org",
"dependencies": [
"openssl",