[packages/perl-XML-GDOME] fix build with recent libxml2 versions

atler atler at pld-linux.org
Mon Jul 1 19:30:34 CEST 2024


commit 22b31b2978ad77197553de7b6899594ee5adf85a
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jul 1 19:09:22 2024 +0200

    fix build with recent libxml2 versions

 libxml2.12.patch    | 25 +++++++++++++++++++++++++
 perl-XML-GDOME.spec |  5 +++++
 2 files changed, 30 insertions(+)
---
diff --git a/perl-XML-GDOME.spec b/perl-XML-GDOME.spec
index 5cfc75c..4731056 100644
--- a/perl-XML-GDOME.spec
+++ b/perl-XML-GDOME.spec
@@ -14,6 +14,7 @@ License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	01ee59f686f9d409bdc316297942ea55
+Patch0:		libxml2.12.patch
 URL:		http://search.cpan.org/dist/XML-GDOME/
 BuildRequires:	gdome2-devel >= 0.7.2
 BuildRequires:	glib-devel
@@ -36,6 +37,10 @@ dostępu do dokumentów XML. Używa wrappera XS do biblioteki gdome2.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
+
+# regenerated
+%{__rm} GDOME.xs
 
 %build
 %{__perl} Makefile.PL \
diff --git a/libxml2.12.patch b/libxml2.12.patch
new file mode 100644
index 0000000..b3ec72e
--- /dev/null
+++ b/libxml2.12.patch
@@ -0,0 +1,25 @@
+diff -ur XML-GDOME-0.86.orig/dom.h XML-GDOME-0.86/dom.h
+--- XML-GDOME-0.86.orig/dom.h	2024-07-01 19:00:43.086016312 +0200
++++ XML-GDOME-0.86/dom.h	2024-07-01 19:01:21.739588201 +0200
+@@ -1,6 +1,8 @@
+ #ifndef __LIBXML_DOM_H__
+ #define __LIBXML_DOM_H__
+ 
++#include <libxml/xmlstring.h>
++
+ xmlChar*
+ domEncodeString( const char *encoding, const char *string );
+ char*
+Only in XML-GDOME-0.86: dom.h~
+diff -ur XML-GDOME-0.86.orig/generate XML-GDOME-0.86/generate
+--- XML-GDOME-0.86.orig/generate	2024-07-01 19:00:43.089349665 +0200
++++ XML-GDOME-0.86/generate	2024-07-01 19:01:59.399820625 +0200
+@@ -63,6 +63,7 @@
+ #include "perl.h"
+ #include "XSUB.h"
+ 
++#include <libxml/tree.h>
+ #include <libxml/xmlerror.h>
+ #include "gdome.h"
+ #include "gdome-xpath.h"
+Only in XML-GDOME-0.86: generate~
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-XML-GDOME.git/commitdiff/22b31b2978ad77197553de7b6899594ee5adf85a



More information about the pld-cvs-commit mailing list