From: Matt Eaton Date: Sat, 1 Feb 2025 21:39:16 +0000 (+0100) Subject: strongswan: fix compilation against wolfssl X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1cc7069c6437fc92e394fa4b675c074f98f52ff0;p=feed%2Fpackages.git strongswan: fix compilation against wolfssl Backports upstream patch fix compilation error against recent versions of wolfssl. Closes https://github.com/openwrt/packages/issues/25877 Signed-off-by: Matt Eaton --- diff --git a/net/strongswan/Makefile b/net/strongswan/Makefile index d9869cc7d4..6130a5b5fa 100644 --- a/net/strongswan/Makefile +++ b/net/strongswan/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=strongswan PKG_VERSION:=5.9.14 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=https://download.strongswan.org/ https://download2.strongswan.org/ diff --git a/net/strongswan/patches/0905-wolfssl-parse_error.patch b/net/strongswan/patches/0905-wolfssl-parse_error.patch new file mode 100644 index 0000000000..a56cfe56ae --- /dev/null +++ b/net/strongswan/patches/0905-wolfssl-parse_error.patch @@ -0,0 +1,19 @@ +From 60336ceecbd1cda73aa26dd44cfdaf2e31a046e1 Mon Sep 17 00:00:00 2001 +From: Tobias Brunner +Date: Fri, 4 Oct 2024 11:23:28 +0200 +Subject: [PATCH] wolfssl: Don't undef PARSE_ERROR as headers included later + might refer to it + +--- + src/libstrongswan/plugins/wolfssl/wolfssl_common.h | 2 -- + 1 file changed, 2 deletions(-) + +--- a/src/libstrongswan/plugins/wolfssl/wolfssl_common.h ++++ b/src/libstrongswan/plugins/wolfssl/wolfssl_common.h +@@ -78,6 +78,4 @@ typedef union { + } wolfssl_ed_key; + #endif /* HAVE_ED25519 || HAVE_ED448 */ + +-#undef PARSE_ERROR +- + #endif /* WOLFSSL_PLUGIN_COMMON_H_ */