#1145077 xapian-bindings: FTBFS building against python 3.15

#1145077#5
Date:
2026-08-22 08:08:10 UTC
From:
To:
Package: src:xapian-bindings
Version: 1.4.31-2
User: debian-python@lists.debian.org
Usertags: python3.15
Tags: patch

Hi!

While rebuilding the python related packages against the python version
3.15rc1 we found that xapian-bindings fails to build from source [1].

Here python 3.15 detects an error in the way the mutex lock is handled
in a swig generated file (python3/xapian_wrap.cc), the bug itself is a
bug in swig, fixed in swig 4.4.0, but this file was generated with swig
4.3.0.

I'm attaching a patch that just updates the xapian_wrap.cc files, but it
would be better to regenerate these files.

Please consider adding this or a similar patch in future uploads, also,
these files aren't the preferred form of modification, so they aren't
really source, it might be worth producing them either as part of the
packaging and including them as patches or as part of the build
procedure.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/work-request/995348/