strongswan: fix build with wolfssl 5.7.6
authorTianling Shen <[email protected]>
Mon, 11 Aug 2025 11:13:11 +0000 (19:13 +0800)
committerTianling Shen <[email protected]>
Thu, 14 Aug 2025 13:11:56 +0000 (21:11 +0800)
Backport an upstream patch to fix build with wolfssl 5.7.6.

Signed-off-by: Tianling Shen <[email protected]>
net/strongswan/Makefile
net/strongswan/patches/0010-wolfssl-Don-t-undef-PARSE_ERROR-as-headers-included-later.patch [new file with mode: 0644]

index 94b850b5ee6f980705018242de3995859ad21da3..9531e7c80eb14c4c90ceeff31d7691405e54cdde 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=strongswan
 PKG_VERSION:=5.9.11
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 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/0010-wolfssl-Don-t-undef-PARSE_ERROR-as-headers-included-later.patch b/net/strongswan/patches/0010-wolfssl-Don-t-undef-PARSE_ERROR-as-headers-included-later.patch
new file mode 100644 (file)
index 0000000..7755424
--- /dev/null
@@ -0,0 +1,21 @@
+From 60336ceecbd1cda73aa26dd44cfdaf2e31a046e1 Mon Sep 17 00:00:00 2001
+From: Tobias Brunner <[email protected]>
+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,8 +78,6 @@ typedef union {
+ } wolfssl_ed_key;
+ #endif /* HAVE_ED25519 || HAVE_ED448 */
+-#undef PARSE_ERROR
+-
+ /* Eliminate macro conflicts */
+ #undef RNG