Your message dated Wed, 09 Sep 2026 12:19:18 +0000
with message-id <[email protected]>
and subject line Bug#1146887: fixed in nibabel 5.4.2-5
has caused the Debian Bug report #1146887,
regarding nibabel: FTBFS against python 3.15rc2
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1146887: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1146887
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:nibabel
Version: 5.4.2-4
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Severity: important
Hi!
While rebuilding the python related packages against the Python 3.15rc2
version we found that nibabel fails to build from source [1].
The failure happens because test_DeterministicGzipFile and
test_DeterministicGzipFile_fileobj fail due to a discrepancy in the
default compression levels of gzip files, python 3.15 uses now
compresslevel=6
To fix this, I've made a patch to use None as the default compresslevel,
and let Python set it, instead of forcing it to 9.
I applied the fix in the sandbox [2] to be able to build the packages
that depend on nibabel, 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/4478755/
[2]: https://debusine.debian.net/debian/r-python-python3.15/
--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
Description: Fix test failures with Python 3.15
In Python 3.15, gzip.GzipFile changed its default compresslevel from 9 to 6.
Allow DeterministicGzipFile to inherit the default compresslevel from GzipFile
when unspecified instead of hardcoding 9.
Author: Maximiliano Curia <[email protected]>
Forwarded: no
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: nibabel/nibabel/_compression.py
===================================================================
--- nibabel.orig/nibabel/_compression.py
+++ nibabel/nibabel/_compression.py
@@ -82,7 +82,7 @@ class DeterministicGzipFile(gzip.GzipFil
self,
filename: str | None = None,
mode: Mode | None = None,
- compresslevel: int = 9,
+ compresslevel: int | None = None,
fileobj: io.FileIO | None = None,
mtime: int = 0,
):
@@ -99,19 +99,22 @@ class DeterministicGzipFile(gzip.GzipFil
raise TypeError('Must define either fileobj or filename')
# Cast because GzipFile.myfileobj has type io.FileIO while open returns ty.IO
fileobj = self.myfileobj = ty.cast('io.FileIO', open(filename, modestr))
+ kwargs = {}
+ if compresslevel is not None:
+ kwargs['compresslevel'] = compresslevel
super().__init__(
filename='',
mode=modestr,
- compresslevel=compresslevel,
fileobj=fileobj,
mtime=mtime,
+ **kwargs,
)
def gzip_open(
filename: str,
mode: Mode = 'rb',
- compresslevel: int = 9,
+ compresslevel: int | None = None,
mtime: int = 0,
keep_open: bool = False,
) -> gzip.GzipFile:
--- End Message ---
--- Begin Message ---
Source: nibabel
Source-Version: 5.4.2-5
Done: Andreas Tille <[email protected]>
We believe that the bug you reported is fixed in the latest version of
nibabel, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Tille <[email protected]> (supplier of updated nibabel package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 09 Sep 2026 13:44:37 +0200
Source: nibabel
Architecture: source
Version: 5.4.2-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team
<[email protected]>
Changed-By: Andreas Tille <[email protected]>
Closes: 1146887
Changes:
nibabel (5.4.2-5) unstable; urgency=medium
.
* Team upload.
.
[ Maximiliano Curia ]
* Fix test failures with Python 3.15
Closes: #1146887
.
[ Andreas Tille ]
* debhelper-compat = 14
Checksums-Sha1:
a841ac152d4863317e7e0f94ddb37f657ed52bb7 2537 nibabel_5.4.2-5.dsc
1661386d1ccd970e1ccd19390b006c75d58a111f 13920 nibabel_5.4.2-5.debian.tar.xz
0486bf9d288273c7610afd697351504b9cd274d3 10989 nibabel_5.4.2-5_amd64.buildinfo
Checksums-Sha256:
079ed9952602c273fa4e14481915631276915984b2cad196e201bee6b347978f 2537
nibabel_5.4.2-5.dsc
7ca6789a08d6e59eaa82984e76d08c6cb322e08f0893b34d3cc22cc21769e08a 13920
nibabel_5.4.2-5.debian.tar.xz
5ce293ff0cae24460c36772b80c57d5f0f5b0464c2e69e348a90052fac663905 10989
nibabel_5.4.2-5_amd64.buildinfo
Files:
0e6009e4fe71ea0ea92637f87ee6b818 2537 python optional nibabel_5.4.2-5.dsc
49a2b64f3273816ebb17f502e2432f16 13920 python optional
nibabel_5.4.2-5.debian.tar.xz
613f9bbf75a6dee2c2463b688c3eaaf1 10989 python optional
nibabel_5.4.2-5_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmqhSykRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtETMQ/+I25N/jMbHRQ1qxwVPxamyuPTNSZquDWJ
2JMokFkjY7a+c/LWHlDptBfsU9GGoTlU6yEAkNMZyPeptimymnid/WEYi20F3XiD
ha7hCkL7lVPgaBryOmu0D4ypsBn397Q/rtu2SBIn2y9dq9gKOamUcVU6Uk5Xn2v6
t6/W4NwgVPfvQBnsrQTVQ+NAC25BjLTAuWvlHLMzjwOtAsWmy/oOmv0qixXBi3Bn
3exJHE6LC0gIzlA1KJEEfQx9WpS6oWFNOTR0smwIuMAa/Ls7oTLQrjqAb+1V/Cx1
9erQAVe2335pFdER+yzhjYDFmPzLOnhoki1VauzK7rvS5s7sYQ1akOpk0aAcXSuz
4CwiNB4BkyVqLybqJevdHEcgWNP8hKivq/DYm5j/JuV+RUxhnw3iOuYSNsoQ1AiL
oHz71Hvr7nWByeDs6ryS1Klmf3yi/WCmgwzCQkoy/cSPHetiBHQp2pmx0ekhH/gk
vqYNtENoz5etBiK4wY/gzQMAn0lmrYSWsr3fAAU69Vn0OTlYxhlBBByFt1+9Vjar
K50Kp+SIyyfT8dpPIQnju+FuhjT4VSWgtwfjuwPGA+bIlW37wvirgCg7Q73eW1Fo
mLC4jBeDlDFIoX5jz7qWXsSWgpCCYc9X+C4l6DVnN8aHUepbmOhWJS8jgX0hOadi
KZbLEGiOcHI=
=6TMj
-----END PGP SIGNATURE-----
pgpyoxu49UkFg.pgp
Description: PGP signature
--- End Message ---