#1146588 rdkit: FTBFS against python 3.15rc1

#1146588#5
Date:
2026-09-03 15:08:40 UTC
From:
To:
Hi!

While rebuilding the python related packages against the Python 3.15rc1
version we found that rdkit fails to build from source not only for 3.15
but also for 3.14 [1].

Error: testDistGeomHelpers:
src/catch2/../catch2/internal/catch_output_redirect.hpp:40: void
Catch::OutputRedirect::activate(): Assertion !m_redirectActive &&
"redirect is already active"' failed.

This is because catch2 is not thread safe till release 3.12, but
currently we have 3.7 in Debian, so the tests that depend on thread
safety need workarounds.

It's likely that this only started happening now, due to the new gcc
version.

I applied the fix in the sandbox [2] to be able to build the packages
that depend on rdkit and it has built successfully, please consider
applying the patch to get rdkit to build successfully.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4587746/
[2]: https://debusine.debian.net/debian/r-python-python3.15/