]> git.pld-linux.org Git - packages/crossmingw32-libxml2.git/commitdiff
- updated to 2.10.0 (fixes CVE-2022-2309) auto/th/crossmingw32-libxml2-2.10.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 18 Aug 2022 16:11:23 +0000 (18:11 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 18 Aug 2022 16:11:23 +0000 (18:11 +0200)
crossmingw32-libxml2.spec
libxml2-man_fixes.patch [deleted file]
libxml2-open.gz.patch

index 6d9b4abc582be5787dd045e09f8ec1a4934ccab7..d98aa3f6002f784c758dcdaba656e028ffe7dce9 100644 (file)
@@ -2,19 +2,18 @@
 Summary:       libXML library - cross MinGW32 version
 Summary(pl.UTF-8):     Biblioteka libXML wersja 2 - wersja skrośna dla MinGW32
 Name:          crossmingw32-%{realname}
-Version:       2.9.14
+Version:       2.10.0
 Release:       1
 License:       MIT
 Group:         Development/Libraries
 #Source0:      ftp://xmlsoft.org/libxml2/%{realname}-%{version}.tar.gz
-Source0:       https://download.gnome.org/sources/libxml2/2.9/%{realname}-%{version}.tar.xz
-# Source0-md5: b7b3029ac6beb32a7925225515f83ca3
-Patch0:                %{realname}-man_fixes.patch
-Patch1:                %{realname}-open.gz.patch
-Patch2:                %{realname}-largefile.patch
+Source0:       https://download.gnome.org/sources/libxml2/2.10/%{realname}-%{version}.tar.xz
+# Source0-md5: 54fdcf2404eb5c1ca59ffc82b2edff78
+Patch0:                %{realname}-open.gz.patch
+Patch1:                %{realname}-largefile.patch
 URL:           http://xmlsoft.org/
 BuildRequires: autoconf >= 2.68
-BuildRequires: automake >= 1.4
+BuildRequires: automake >= 1:1.15
 BuildRequires: crossmingw32-gcc
 BuildRequires: crossmingw32-zlib >= 1.2.4-3
 BuildRequires: crossmingw32-xz
@@ -88,7 +87,6 @@ Biblioteka DLL libxml2 dla Windows.
 %setup -q -n %{realname}-%{version}
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
 
 %build
 %{__libtoolize}
@@ -102,6 +100,7 @@ CPPFLAGS="%{rpmcppflags} -D_WINSOCKAPI_"
        --target=%{target} \
        --host=%{target} \
        --disable-silent-rules \
+       --enable-static \
        --without-python
 
 %{__make}
@@ -121,7 +120,6 @@ install -d $RPM_BUILD_ROOT%{_dlldir}
 %endif
 
 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{*.exe,xml2-config}
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/xml2Conf.sh
 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/cmake
 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc,gtk-doc,man}
 
diff --git a/libxml2-man_fixes.patch b/libxml2-man_fixes.patch
deleted file mode 100644 (file)
index 959505d..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-diff -aurN libxml2-2.6.23.orig/libxml.3 libxml2-2.6.23/libxml.3
---- libxml2-2.6.23.orig/libxml.3       2005-10-28 18:13:58.000000000 +0200
-+++ libxml2-2.6.23/libxml.3    2006-01-06 23:00:43.000000000 +0100
-@@ -48,14 +48,14 @@
- library exports Push and Pull type parser interfaces for both XML and 
- .IR html . 
- .SH FILES
--.TP 2.2i
--.B /depot/lib/libxml_2.0.0/libxml.a
-+.TP
-+.B libxml.a
- static library
- .TP
--.B /depot/lib/libxml_2.0.0/libxml.so
-+.B libxml.so
- shared library
- .TP
--.B /depot/package/libxml_2.0.0/bin/xmllint
-+.B xmllint
- binary application for parsing XML files
- .SH AUTHORS
- Daniel Veillard (daniel@veillard.com).
index 9d361473b5cd4bb1ed4547987bb28c10e91f3fa6..644204bde6ab19ef187d72b8664f8c04a808cb1f 100644 (file)
@@ -1,41 +1,38 @@
-diff -ur libxml2-2.4.20/xmlIO.c libxml2-2.4.20-/xmlIO.c
---- libxml2-2.4.20/xmlIO.c     Wed Mar 27 04:35:12 2002
-+++ libxml2-2.4.20-/xmlIO.c    Thu May 23 20:35:12 2002
-@@ -465,8 +465,35 @@
+--- libxml2-2.10.0/xmlIO.c.orig        2022-08-18 16:29:32.843322082 +0200
++++ libxml2-2.10.0/xmlIO.c     2022-08-18 16:32:12.985787850 +0200
+@@ -1115,8 +1115,33 @@ xmlGzfileOpen_real (const char *filename
  
      if (path == NULL)
        return(NULL);
 -    if (!xmlCheckFilename(path))
 -        return(NULL);
-+      
 +    if (!xmlCheckFilename(path)) {
-+        /* If we cannot open `foo.xml', we try `foo.xml.gz'. However we i
++      /* If we cannot open `foo.xml', we try `foo.xml.gz'. However we i
 +       * append .gz only if filename doesn't alreay end with .gz. */
-+        if (strlen(path) < 3 || strcmp(path + strlen(path) - 3, ".gz") != 0) {
-+            char *gz_filename = xmlMalloc(strlen(path) + 4);
++      if (strlen(path) < 3 || strcmp(path + strlen(path) - 3, ".gz") != 0) {
++          char *gz_filename = xmlMalloc(strlen(path) + 4);
 +
 +          if (gz_filename == NULL) {
 +              xmlGenericError(xmlGenericErrorContext,
 +                              "xmlGzfileOpen:  %s\n",
 +                              "Failure allocating buffer for filename.");
 +              return NULL;
-+           }
-+      
-+             strcpy(gz_filename, path);
-+           strcat(gz_filename, ".gz");
++          }
 +
-+           fd = NULL;
-+           
-+           if (xmlCheckFilename(gz_filename))
++          strcpy(gz_filename, path);
++          strcat(gz_filename, ".gz");
++
++          fd = NULL;
++
++          if (xmlCheckFilename(gz_filename))
 +              fd = gzopen(gz_filename, "rb");
-+               
-+           xmlFree(gz_filename);
++
++          xmlFree(gz_filename);
 +           
-+             return((void *) fd);
-+      } else {
++          return((void *) fd);
++      } else
 +          return NULL;
-+      }
 +    }
  
- #if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
+ #if defined(_WIN32)
      fd = xmlWrapGzOpenUtf8(path, "rb");
This page took 0.420061 seconds and 4 git commands to generate.