[packages/crossmingw32-libxml2] - updated to 2.13.7
qboosh
qboosh at pld-linux.org
Sat Apr 12 19:13:41 CEST 2025
commit e0c36005964091446452fef275a10a0680ec47b1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Apr 12 18:49:22 2025 +0200
- updated to 2.13.7
crossmingw32-libxml2.spec | 8 +++++---
libxml2-normalize.patch | 27 +++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 3 deletions(-)
---
diff --git a/crossmingw32-libxml2.spec b/crossmingw32-libxml2.spec
index 8cf9055..4add501 100644
--- a/crossmingw32-libxml2.spec
+++ b/crossmingw32-libxml2.spec
@@ -2,16 +2,17 @@
Summary: libXML library - cross MinGW32 version
Summary(pl.UTF-8): Biblioteka libXML wersja 2 - wersja skrośna dla MinGW32
Name: crossmingw32-%{realname}
-Version: 2.13.6
-Release: 4
+Version: 2.13.7
+Release: 1
License: MIT
Group: Development/Libraries
#Source0: ftp://xmlsoft.org/libxml2/%{realname}-%{version}.tar.gz
Source0: https://download.gnome.org/sources/libxml2/2.13/%{realname}-%{version}.tar.xz
-# Source0-md5: 85dffa2387ff756bdf8b3b247594914a
+# Source0-md5: 2a76adcdd06da6a9d0921b12305b5c8b
Patch0: %{realname}-open.gz.patch
Patch1: %{realname}-largefile.patch
Patch2: %{realname}-mingw32.patch
+Patch3: %{realname}-normalize.patch
URL: http://xmlsoft.org/
BuildRequires: autoconf >= 2.68
BuildRequires: automake >= 1:1.16.3
@@ -91,6 +92,7 @@ Biblioteka DLL libxml2 dla Windows.
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
+%patch -P3 -p1
%build
%{__libtoolize}
diff --git a/libxml2-normalize.patch b/libxml2-normalize.patch
new file mode 100644
index 0000000..f8de820
--- /dev/null
+++ b/libxml2-normalize.patch
@@ -0,0 +1,27 @@
+Fix check for absolute path.
+Before that xmlNormalizePath("../xml/../../../../libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Modem.Simple.xml")
+returned "../../libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Modem.Simple.xml"
+instead of "../../../../libmm-glib/generated/mm-gdbus-doc-org.freedesktop.ModemManager1.Modem.Simple.xml"
+--- libxml2-2.13.7/uri.c.orig 2025-04-12 07:07:38.185693733 +0200
++++ libxml2-2.13.7/uri.c 2025-04-12 07:43:59.817208154 +0200
+@@ -1560,7 +1560,7 @@ xmlNormalizePath(char *path, int isFile)
+ break;
+ cur += 3;
+ continue;
+- } else if (out[0] == '/') {
++ } else if (path[0] == '/') {
+ /* Ignore extraneous ".." in absolute paths */
+ if (cur[2] == 0)
+ break;
+diff -Nur libxml2-2.13.7/result.orig/XInclude/base.xml libxml2-2.13.7/result/XInclude/base.xml
+--- libxml2-2.13.7/result.orig/XInclude/base.xml 2025-03-27 14:37:41.000000000 +0100
++++ libxml2-2.13.7/result/XInclude/base.xml 2025-04-12 08:04:50.813764257 +0200
+@@ -6,7 +6,7 @@
+ ents/one/two2
+ </elem><elem xml:base="../../ents/one2/two">
+ ents/one2/two
+- </elem><elem xml:base="two/three/four">
++ </elem><elem xml:base="../../../docs/one/two/three/four">
+ docs/one/two/three/four
+ </elem>
+ </doc>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crossmingw32-libxml2.git/commitdiff/e0c36005964091446452fef275a10a0680ec47b1
More information about the pld-cvs-commit
mailing list