On Thu, 14 Aug 2025 08:16:27 -0700 (PDT), Bas Couwenberg wrote:
> The Debian bugreport was forwarded to Fossil [2], but that got no
> response unfortunately.
>
> I've forwarded a patch in the Fossil ticket, also available in Debian
> package git repo.
>
Hi Bas,
I apologize for not having read your ticket on Fossil, but I have a
bad habit of only considering open tickets in the very last stages
before a new version release.
Typically more than 90% of bug reports come to me through personal
emails or are reported on the mailing list, and as a result, over
the years I've grown accustomed to holding the "official" bug tracker
in low regard.
I can't promise you that I'll try to change my habits in the future,
because I'm almost 70, and you know well that older people become
creatures of habit.
If you have something urgent to bring to my attention, the best
way is always to post a message on the mailing list.
> And I would like a second pair of eyes on that patch.
>
Yes, I confirm that your patch is correct, but it can be made even
simpler.
There is a single line in the entire SpatiaLite code that causes
problems with newer versions of LibXML2.
In the source -/src/wfs/wfs_in.c in the function body
void reset_wfs_http_connection (void)
where the xmlNanoHTTPCleanup() function is called: this
API was first deprecated and then permanently discontinued.
To get SpatiaLite to compile smoothly with newer versions
of LibXML2, you simply need to make that single line of code
ineffective by commenting it out or removing it.
something like this:
--------------------------------------
SPATIALITE_DECLARE void
reset_wfs_http_connection (void)
{
/* xmlNanoHTTPCleanup (); */
}
--------------------------------------
Note however that this is only a rough patch that allows to
build SpatiaLite.
The fact that LibXML2 suddenly decided to remove the traditional
and well-established support for NanoHTTP still has a decidedly
negative impact on SpatiaLite.
1. WFS support is dropped: any operation simply fails.
2- XML schema validation via XSD no longer works; any calls to
it also fail.
Fortunately, these are two fairly niche features that are little
used by most users, but the damage remains and is unfortunately
irreparable at the moment.
bye Sandro