[packages/xmlsec1] add missing includes to fix build with libxml2 >= 2.12

atler atler at pld-linux.org
Sun Nov 26 15:21:57 CET 2023


commit a5a8ff83b1a35768f70f49023bf63377b7b345fe
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Nov 26 14:28:21 2023 +0100

    add missing includes to fix build with libxml2 >= 2.12

 missing-includes.patch | 40 ++++++++++++++++++++++++++++++++++++++++
 xmlsec1.spec           |  2 ++
 2 files changed, 42 insertions(+)
---
diff --git a/xmlsec1.spec b/xmlsec1.spec
index 241be14..d32f900 100644
--- a/xmlsec1.spec
+++ b/xmlsec1.spec
@@ -8,6 +8,7 @@ Group:		Libraries
 Source0:	https://www.aleksey.com/xmlsec/download/%{name}-%{version}.tar.gz
 # Source0-md5:	98dd3c884e2816c25c038a6e8af138fb
 Patch0:		%{name}-nss.patch
+Patch1:		missing-includes.patch
 URL:		https://www.aleksey.com/xmlsec/
 BuildRequires:	autoconf >= 2.53
 BuildRequires:	automake >= 1:1.7
@@ -277,6 +278,7 @@ Statyczna biblioteka kryptograficzna OpenSSL dla biblioteki XMLSec.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %{__sed} -i -e '/\/lib\/[^ ]*_MARKER/ s,/lib/,/%{_lib}/,' configure.ac
 
diff --git a/missing-includes.patch b/missing-includes.patch
new file mode 100644
index 0000000..0fdaec5
--- /dev/null
+++ b/missing-includes.patch
@@ -0,0 +1,40 @@
+--- xmlsec1-1.2.37/src/buffer.c.orig	2022-11-28 22:40:24.000000000 +0100
++++ xmlsec1-1.2.37/src/buffer.c	2023-11-26 14:19:14.291171485 +0100
+@@ -21,6 +21,7 @@
+ #include <ctype.h>
+ 
+ #include <libxml/tree.h>
++#include <libxml/xmlIO.h>
+ 
+ #include <xmlsec/xmlsec.h>
+ #include <xmlsec/xmltree.h>
+--- xmlsec1-1.2.37/src/relationship.c.orig	2022-11-28 22:40:24.000000000 +0100
++++ xmlsec1-1.2.37/src/relationship.c	2023-11-26 14:21:12.200917041 +0100
+@@ -78,6 +78,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ 
++#include <libxml/list.h>
+ #include <libxml/tree.h>
+ #include <libxml/xpointer.h>
+ #include <libxml/c14n.h>
+--- xmlsec1-1.2.37/src/xmlsec.c.orig	2022-11-28 22:40:24.000000000 +0100
++++ xmlsec1-1.2.37/src/xmlsec.c	2023-11-26 14:22:42.454844716 +0100
+@@ -20,6 +20,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ 
++#include <libxml/parser.h>
+ #include <libxml/tree.h>
+ 
+ #include <xmlsec/xmlsec.h>
+--- xmlsec1-1.2.37/apps/xmlsec.c.orig	2022-11-28 22:40:24.000000000 +0100
++++ xmlsec1-1.2.37/apps/xmlsec.c	2023-11-26 14:26:32.801209168 +0100
+@@ -15,6 +15,7 @@
+ 
+ #include <libxml/tree.h>
+ #include <libxml/xmlmemory.h>
++#include <libxml/xmlsave.h>
+ #include <libxml/parser.h>
+ #include <libxml/xpath.h>
+ #include <libxml/xpathInternals.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xmlsec1.git/commitdiff/c9f0991269df3acdb58508c9d2454425cb726ce8



More information about the pld-cvs-commit mailing list