public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libspatialite] rawhide: Add libspatialite-libxml2-nanohttp.patch
Date: Wed, 16 Sep 2026 11:11:59 GMT	[thread overview]
Message-ID: <178955711990.1.15892438118576513237.rpms-libspatialite-88ac5e57c807@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-09-16 11:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178955711990.1.15892438118576513237.rpms-libspatialite-88ac5e57c807@fedoraproject.org \
    --to=manisandro@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox