From 02a5264214b2447217a6ca956345166084e0b300 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 24 Dec 2023 22:01:33 -0800 Subject: [PATCH] openconnect: update to 9.12 Remove upstream backport and fix libxml 1.12 compilation. Signed-off-by: Rosen Penev --- net/openconnect/Makefile | 8 ++--- ...ersion-not-deprecated-SSLeay_version.patch | 34 ------------------- net/openconnect/patches/010-libxml212.patch | 11 ++++++ 3 files changed, 15 insertions(+), 38 deletions(-) delete mode 100644 net/openconnect/patches/001-Use-OpenSSL_version-not-deprecated-SSLeay_version.patch create mode 100644 net/openconnect/patches/010-libxml212.patch diff --git a/net/openconnect/Makefile b/net/openconnect/Makefile index 1ec7d70d2d..f3bb6b6733 100644 --- a/net/openconnect/Makefile +++ b/net/openconnect/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=openconnect -PKG_VERSION:=9.01 -PKG_RELEASE:=2 +PKG_VERSION:=9.12 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/openconnect/ -PKG_HASH:=b3d7faf830e9793299d6a41e81d84cd4a3e2789c148c9e598e4585010090e4c7 +PKG_SOURCE_URL:=https://www.infradead.org/openconnect/download +PKG_HASH:=a2bedce3aa4dfe75e36e407e48e8e8bc91d46def5335ac9564fbf91bd4b2413e PKG_LICENSE:=LGPL-2.1-or-later PKG_LICENSE_FILES:=COPYING.LGPL diff --git a/net/openconnect/patches/001-Use-OpenSSL_version-not-deprecated-SSLeay_version.patch b/net/openconnect/patches/001-Use-OpenSSL_version-not-deprecated-SSLeay_version.patch deleted file mode 100644 index 9f635a7666..0000000000 --- a/net/openconnect/patches/001-Use-OpenSSL_version-not-deprecated-SSLeay_version.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 01b7e75034e6d838d7750a828eccaa8dd534f152 Mon Sep 17 00:00:00 2001 -From: David Woodhouse -Date: Thu, 12 May 2022 15:55:59 +0100 -Subject: [PATCH] Use OpenSSL_version() not deprecated SSLeay_version() - -Fixes: #428 - -Signed-off-by: David Woodhouse ---- - openssl.c | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - ---- a/openssl.c -+++ b/openssl.c -@@ -49,6 +49,8 @@ - typedef int (*X509_STORE_CTX_get_issuer_fn)(X509 **issuer, - X509_STORE_CTX *ctx, X509 *x); - #define X509_STORE_CTX_get_get_issuer(ctx) ((ctx)->get_issuer) -+#define OpenSSL_version SSLeay_version -+#define OPENSSL_VERSION SSLEAY_VERSION - #endif - - static char tls_library_version[32] = ""; -@@ -56,7 +58,9 @@ static char tls_library_version[32] = "" - const char *openconnect_get_tls_library_version(void) - { - if (!*tls_library_version) { -- strncpy(tls_library_version, SSLeay_version(SSLEAY_VERSION), sizeof(tls_library_version)); -+ strncpy(tls_library_version, -+ OpenSSL_version(OPENSSL_VERSION), -+ sizeof(tls_library_version)); - tls_library_version[sizeof(tls_library_version)-1]='\0'; - } - return tls_library_version; diff --git a/net/openconnect/patches/010-libxml212.patch b/net/openconnect/patches/010-libxml212.patch new file mode 100644 index 0000000000..b8c821f21f --- /dev/null +++ b/net/openconnect/patches/010-libxml212.patch @@ -0,0 +1,11 @@ +--- a/openconnect-internal.h ++++ b/openconnect-internal.h +@@ -84,7 +84,7 @@ + #endif + #define N_(s) s + +-#include ++#include + #include + + #ifdef _WIN32