[packages/openconnect] add missing include to fix build with libxml2 >= 2.12

atler atler at pld-linux.org
Mon Nov 20 03:39:21 CET 2023


commit fa8c7a56d7e492addc9ee8239c73dd071bc0aca1
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Nov 20 01:47:19 2023 +0100

    add missing include to fix build with libxml2 >= 2.12

 missing-includes.patch | 11 +++++++++++
 openconnect.spec       |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/openconnect.spec b/openconnect.spec
index 491899a..d412e6d 100644
--- a/openconnect.spec
+++ b/openconnect.spec
@@ -18,6 +18,7 @@ Group:		Applications/Networking
 Source0:	ftp://ftp.infradead.org/pub/openconnect/%{name}-%{version}.tar.gz
 # Source0-md5:	39060dcb58ebfb261bb6faf17755b98b
 Patch0:		%{name}-am.patch
+Patch1:		missing-includes.patch
 URL:		http://www.infradead.org/openconnect.html
 BuildRequires:	autoconf >= 2.63
 BuildRequires:	automake >= 1:1.10
@@ -116,6 +117,7 @@ Bashowe dopełnianie argumentów polecenia openconnect.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
diff --git a/missing-includes.patch b/missing-includes.patch
new file mode 100644
index 0000000..b685dac
--- /dev/null
+++ b/missing-includes.patch
@@ -0,0 +1,11 @@
+--- openconnect-9.12/gpst.c.orig	2023-05-19 18:12:15.000000000 +0200
++++ openconnect-9.12/gpst.c	2023-11-20 01:41:34.372670390 +0100
+@@ -19,6 +19,8 @@
+ 
+ #include "openconnect-internal.h"
+ 
++#include <libxml/parser.h>
++
+ #if HAVE_JSON
+ #include "json.h"
+ #endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openconnect.git/commitdiff/812acebc79a7281c6403a5e6ddd9b8a7c479a00f



More information about the pld-cvs-commit mailing list