[packages/libxml2] enable .gz fallback only when building with zlib
atler
atler at pld-linux.org
Fri Jun 14 20:38:18 CEST 2024
commit 4e7b072e998ca8fa023e820e08a38c41ce61c45e
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Jun 14 20:22:16 2024 +0200
enable .gz fallback only when building with zlib
libxml2-open.gz.patch | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/libxml2-open.gz.patch b/libxml2-open.gz.patch
index 61ec90a..1d01b0c 100644
--- a/libxml2-open.gz.patch
+++ b/libxml2-open.gz.patch
@@ -1,9 +1,10 @@
--- libxml2-2.13.0/xmlIO.c.orig 2024-06-14 12:32:12.257784372 +0200
+++ libxml2-2.13.0/xmlIO.c 2024-06-14 19:23:06.355299914 +0200
-@@ -547,6 +547,27 @@
+@@ -547,6 +547,29 @@
fd = open(filename, flags, 0777);
#endif /* WIN32 */
++#ifdef LIBXML_ZLIB_ENABLED
+ if (fd < 0 && errno == ENOENT) {
+ /* 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. */
@@ -25,6 +26,7 @@
+ }
+ }
+
++#endif /* LIBXML_ZLIB_ENABLED */
if (fd < 0) {
/*
* Windows and possibly other platforms return EINVAL
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libxml2.git/commitdiff/4e7b072e998ca8fa023e820e08a38c41ce61c45e
More information about the pld-cvs-commit
mailing list