#1147537 refnx: FTBFS against python 3.15rc2

Package:
src:refnx
Source:
src:refnx
Submitter:
Maximiliano Curia
Date:
2026-09-13 02:51:01 UTC
Severity:
normal
Tags:
#1147537#5
Date:
2026-09-12 20:17:11 UTC
From:
To:
Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that refnx fails to build from source [1].

The error is: meson-python: error: The package declares compatibility
with Python limited API but extension module
'refnx/_lib/_cutil.abi3-x86_64-linux-gnu.so' is tagged for a specific
Python version.

Also matplotlib complains that it can't use DISPLAY when running the
tests.

To fix it, I had to make two changes to address those two issues:
- Avoid claiming limited api
- Use a headless backend for the build tests

I've applied these fixes in the sandbox [2] to verify that it builds
successfully, please consider applying the patch to support the upcoming
3.15 version.

Setting the severity to important for now. Once Python 3.15 is released,
it will be added to python3-defaults and this bug will become release
critical.

Happy hacking,

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

#1147537#10
Date:
2026-09-13 02:49:38 UTC
From:
To:
Hi maxy

Thanks for the report!
[...]

Is that just #1146750 in meson-python? The patch you provided for that
bug is uploaded to unstable and your notes in #1146750 say that the
relevant patch is applied in the sandbox, but the version reported in
the refnx workspace log looks like the unfixed version that was
previously in unstable.

I don't see that locally or on the Debian buildd, and the dependency on
python3-pytest-xvfb should take care of that. I couldn't spot that
output in the linked logs because it FTBFS before it gets to the tests -
is there a newer run with that output somewhere? I'm curious if that was
only with Python 3.15 or with Python 3.14 as well.

regards
Stuart