public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libspatialite] rawhide: Add libspatialite-libxml2-nanohttp.patch
@ 2026-09-16 11:11 Sandro Mani
  0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-09-16 11:11 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libspatialite
Branch : rawhide
Commit : 88ac5e57c807e23a39417f6b8a0b9890152d6638
Author : Sandro Mani <manisandro@gmail.com>
Date   : 2026-09-16T13:11:53+02:00
Stats  : +53/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/libspatialite/c/88ac5e57c807e23a39417f6b8a0b9890152d6638?branch=rawhide

Log:
Add libspatialite-libxml2-nanohttp.patch

---
diff --git a/libspatialite-libxml2-nanohttp.patch b/libspatialite-libxml2-nanohttp.patch
new file mode 100644
index 0000000..a3dc079
--- /dev/null
+++ b/libspatialite-libxml2-nanohttp.patch
@@ -0,0 +1,50 @@
+Description: Fix FTFBS with libxml2 2.15 (or earlier without HTTP support).
+Author: Bas Couwenberg <sebastic@debian.org>
+Bug: https://www.gaia-gis.it/fossil/libspatialite/tktview/ac85f0fca35de00b9aaadb5078061791fc799d9c
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -61,6 +61,8 @@ AH_TEMPLATE([OMIT_FREEXL],
+             [Should be defined in order to disable FREEXL support.])
+ AH_TEMPLATE([ENABLE_LIBXML2],
+             [Should be defined in order to enable LIBXML2 support.])
++AH_TEMPLATE([ENABLE_LIBXML2_NANOHTTP],
++            [Should be defined in order to enable LIBXML2 HTTP support.])
+ AH_TEMPLATE([ENABLE_MINIZIP],
+             [Should be defined in order to enable MiniZIP support.])
+ AH_TEMPLATE([ENABLE_GEOPACKAGE],
+@@ -441,6 +443,7 @@ if test x"$enable_libxml2" != "xno"; the
+   AC_SUBST(LIBXML2_CFLAGS)
+   AC_SUBST(LIBXML2_LIBS)
+   AC_DEFINE(ENABLE_LIBXML2)
++  AC_SEARCH_LIBS(xmlNanoHTTPCleanup,xml2,AC_DEFINE(ENABLE_LIBXML2_NANOHTTP),,)
+ fi
+ 
+ #-----------------------------------------------------------------------
+--- a/src/wfs/wfs_in.c
++++ b/src/wfs/wfs_in.c
+@@ -76,7 +76,10 @@ Regione Toscana - Settore Sistema Inform
+ #ifdef ENABLE_LIBXML2		/* LIBXML2 enabled: supporting XML documents */
+ 
+ #include <libxml/parser.h>
++
++#ifdef ENABLE_LIBXML2_NANOHTTP
+ #include <libxml/nanohttp.h>
++#endif
+ 
+ #define MAX_GTYPES	28
+ 
+@@ -4636,8 +4639,13 @@ get_wfs_schema_column_info (gaiaWFScolum
+ SPATIALITE_DECLARE void
+ reset_wfs_http_connection (void)
+ {
++#ifdef ENABLE_LIBXML2_NANOHTTP
+ /* Resets the libxml2 "nano HTTP": useful when changing the HTTP_PROXY settings */
+     xmlNanoHTTPCleanup ();
++#else
++/* LIBXML2 doesn't have HTTP support: does absolutely nothing */
++    return;
++#endif
+ }
+ 
+ #else /* LIBXML2 isn't enabled */

diff --git a/libspatialite.spec b/libspatialite.spec
index aadd698..58c4a5b 100644
--- a/libspatialite.spec
+++ b/libspatialite.spec
@@ -21,6 +21,9 @@ Patch1:        libspatialite_mingw.patch
 Patch2:        libspatialite_geos.patch
 # Fix incompatibile pointer types
 Patch3:        libspatialite_incompat-ptrs.patch
+# Fix build with libxml2 > 2.14 (patch from Debian package)
+# https://www.gaia-gis.it/fossil/libspatialite/tktview/ac85f0fca35de00b9aaadb5078061791fc799d9c
+Patch4:        libspatialite-libxml2-nanohttp.patch
 
 BuildRequires: autoconf automake libtool
 BuildRequires: freexl-devel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-16 11:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-16 11:11 [rpms/libspatialite] rawhide: Add libspatialite-libxml2-nanohttp.patch Sandro Mani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox