#1145094 python-blockbuster: FTBFS building against python 3.15

#1145094#5
Date:
2026-08-22 10:35:40 UTC
From:
To:
Package: src:python-blockbuster
Version: 1.5.26-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 python-blockbuster fails to build from source [1].

This is caused by a change in scandir, which now the iterator it
produces is immutable, so it can't be monkey patched.

I sent a pr with the patch upstream[2], and I'm attaching the version
that I sent to the sandbox so other packages that depend on
python-blockbuster can be rebuilt.

Please consider including this patch in your next upload.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/work-request/1066554/
[2]: https://github.com/cbornet/blockbuster/pull/71

#1145094#12
Date:
2026-09-01 19:52:20 UTC
From:
To:
Hi again!

The new upstream version of python-blockbuster still fails to build from
source when compiled against python 3.15 [1].

I had sent a PR last week [2] with one possible solution (also attached
to this bug). Upstream didn't like my proposal and instead sent a PR to
python-forbiddenfruit, as they claim that the problem is in that package
[3].

However, after applying the proposed patch to python-forbiddenfruit in
the sandbox, I found that python-blockbuster *still* failed to build and
my patch was still necessary. Thus, I am not convinced that
python-forbiddenfruit needs to be patched.

On top of this, the latest upstream version required adding a new item
to can_block_functions for `<frozen linecache>`. This likely needs to be
sent upstream as well.

I have applied the proposed fixes in the sandbox to be able to build the
packages that depend on python-blockbuster, please consider applying the
patches to support the upcoming 3.15 version.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4526937/
[2]: https://github.com/cbornet/blockbuster/pull/71
[3]: https://github.com/clarete/forbiddenfruit/pull/86/changes