https://www.libssh.org/2019/12/10/libssh-0-9-3-and-libssh-0-8-8-security-release/
check_syms reports no dynamic symbol removals, only additions. libssh fails to build due to argp related code in the unit tests; I've disabled them for now to unblock the update - I could not fix it myself. There is software that apparently reuires >=0.9.0 so I'm updating to 0.9.3 rather than 0.8.3, and as no existing port has specific version requirements for <0.9.0 I currently see no reason not to. Tested with latest sysutils/tmate 2.4.0p1 on amd64 which successfully establishes SSH connections as client. Since this fixes CVEs, I'll add quirks if this should go in. Feedback? OK? Index: Makefile =================================================================== RCS file: /cvs/ports/security/libssh/Makefile,v retrieving revision 1.20 diff -u -p -r1.20 Makefile --- Makefile 12 Jul 2019 20:49:05 -0000 1.20 +++ Makefile 28 Mar 2020 20:23:21 -0000 @@ -1,14 +1,15 @@ # $OpenBSD: Makefile,v 1.20 2019/07/12 20:49:05 sthen Exp $ COMMENT = C library implementing server and client side -DISTNAME = libssh-0.8.7 +V = 0.9.3 +DISTNAME = libssh-${V} -SHARED_LIBS += ssh 4.0 # 4.7 +SHARED_LIBS += ssh 4.1 # 4.8 CATEGORIES = security devel HOMEPAGE = https://www.libssh.org/ -MASTER_SITES = https://www.libssh.org/files/0.8/ +MASTER_SITES = https://www.libssh.org/files/${V:R}/ EXTRACT_SUFX = .tar.xz MAINTAINER = Remi Pointel <rpoin...@openbsd.org> @@ -23,8 +24,12 @@ MODULES = devel/cmake WRKBUILD = ${WRKDIST}/build BUILD_DEPENDS = devel/cmocka \ - devel/argp-standalone + #devel/argp-standalone -CONFIGURE_ARGS += -DUNIT_TESTING=ON +# In file included from ../tests/unittests/torture_threads_pki_rsa.c:32: +# In file included from ../src/pki.c:37: +# /usr/include/ctype.h:216:46: error: use of undeclared identifier 'unused' +# isalnum_l(int _c, locale_t _l __attribute__((__unused__))) +CONFIGURE_ARGS += -DUNIT_TESTING=OFF .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/security/libssh/distinfo,v retrieving revision 1.14 diff -u -p -r1.14 distinfo --- distinfo 4 Mar 2019 08:29:59 -0000 1.14 +++ distinfo 28 Mar 2020 19:36:06 -0000 @@ -1,2 +1,2 @@ -SHA256 (libssh-0.8.7.tar.xz) = QzBMoi8LoLZU4UtXSjmBa8cCEv3qWFimY3zCbK3j1ZI= -SIZE (libssh-0.8.7.tar.xz) = 430104 +SHA256 (libssh-0.9.3.tar.xz) = LItfiU3O1Ys9Yp8W86+mViwgtL3IlGORY89leDNojww= +SIZE (libssh-0.9.3.tar.xz) = 500068 Index: patches/patch-ConfigureChecks_cmake =================================================================== RCS file: /cvs/ports/security/libssh/patches/patch-ConfigureChecks_cmake,v retrieving revision 1.3 diff -u -p -r1.3 patch-ConfigureChecks_cmake --- patches/patch-ConfigureChecks_cmake 23 Oct 2018 19:28:18 -0000 1.3 +++ patches/patch-ConfigureChecks_cmake 28 Mar 2020 19:38:03 -0000 @@ -1,9 +1,11 @@ $OpenBSD: patch-ConfigureChecks_cmake,v 1.3 2018/10/23 19:28:18 jasper Exp $ +Fix exit code. + Index: ConfigureChecks.cmake --- ConfigureChecks.cmake.orig +++ ConfigureChecks.cmake -@@ -259,7 +259,7 @@ check_c_source_compiles(" +@@ -302,7 +302,7 @@ check_c_source_compiles(" __thread int tls; int main(void) { Index: patches/patch-tests_unittests_torture_misc_c =================================================================== RCS file: /cvs/ports/security/libssh/patches/patch-tests_unittests_torture_misc_c,v retrieving revision 1.4 diff -u -p -r1.4 patch-tests_unittests_torture_misc_c --- patches/patch-tests_unittests_torture_misc_c 23 Oct 2018 19:28:18 -0000 1.4 +++ patches/patch-tests_unittests_torture_misc_c 28 Mar 2020 19:38:03 -0000 @@ -1,8 +1,11 @@ $OpenBSD: patch-tests_unittests_torture_misc_c,v 1.4 2018/10/23 19:28:18 jasper Exp $ + +Disable unit test "torture_path_expand_tilde_unix": real user required. + Index: tests/unittests/torture_misc.c --- tests/unittests/torture_misc.c.orig +++ tests/unittests/torture_misc.c -@@ -361,7 +361,8 @@ int torture_run_tests(void) { +@@ -665,7 +665,8 @@ int torture_run_tests(void) { #ifdef _WIN32 cmocka_unit_test(torture_path_expand_tilde_win), #else Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/security/libssh/pkg/PLIST,v retrieving revision 1.7 diff -u -p -r1.7 PLIST --- pkg/PLIST 23 Oct 2018 19:28:18 -0000 1.7 +++ pkg/PLIST 28 Mar 2020 20:20:48 -0000 @@ -9,6 +9,7 @@ include/libssh/sftp.h include/libssh/ssh2.h lib/cmake/ lib/cmake/libssh/ +lib/cmake/libssh/libssh-config${MODCMAKE_BUILD_SUFFIX} lib/cmake/libssh/libssh-config-version.cmake lib/cmake/libssh/libssh-config.cmake @lib lib/libssh.so.${LIBssh_VERSION}