Package: src:python-backports.zstd
Version: 1.7.0+ds-1
User: [email protected]
Usertags: python3.15
Tags: patch

Hi!

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

This is known upstream and upstream expect this package not to be used
for versions of python 3.14 or greater. The snippets of code shown
upstream also guard users to avoid importing this module with the
incompatible python version.

It seems to me that this is the use case of the header
X-Python3-Version, which allows us to specify which python versions this
package require.

I'm attaching a debdiff with the added field. Please consider applying.

Happy hacking,

[1]: 
https://debusine.debian.net/debian/r-python-python3.15/work-request/1036870/
--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
diff -Nru python-backports.zstd-1.7.0+ds/debian/changelog 
python-backports.zstd-1.7.0+ds/debian/changelog
--- python-backports.zstd-1.7.0+ds/debian/changelog     2026-08-17 
18:18:11.000000000 +0200
+++ python-backports.zstd-1.7.0+ds/debian/changelog     2026-08-21 
16:00:51.000000000 +0200
@@ -1,3 +1,9 @@
+python-backports.zstd (1.7.0+ds-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+
+ -- Maximiliano Curia <[email protected]>  Fri, 21 Aug 2026 16:00:51 +0200
+
 python-backports.zstd (1.7.0+ds-1) unstable; urgency=medium
 
   * New upstream version 1.7.0+ds
diff -Nru python-backports.zstd-1.7.0+ds/debian/control 
python-backports.zstd-1.7.0+ds/debian/control
--- python-backports.zstd-1.7.0+ds/debian/control       2026-05-07 
09:21:54.000000000 +0200
+++ python-backports.zstd-1.7.0+ds/debian/control       2026-08-21 
16:00:51.000000000 +0200
@@ -17,6 +17,7 @@
   python3-setuptools,
 Vcs-Browser: 
https://salsa.debian.org/python-team/packages/python-backports.zstd
 Vcs-Git: 
https://salsa.debian.org/python-team/packages/python-backports.zstd.git
+X-Python3-Version: <= 3.13
 
 Package: python3-backports.zstd
 Architecture: any
diff -Nru python-backports.zstd-1.7.0+ds/debian/rules 
python-backports.zstd-1.7.0+ds/debian/rules
--- python-backports.zstd-1.7.0+ds/debian/rules 2026-05-07 09:21:54.000000000 
+0200
+++ python-backports.zstd-1.7.0+ds/debian/rules 2026-08-21 16:00:51.000000000 
+0200
@@ -29,8 +29,6 @@
 
 export PYBUILD_TEST_ARGS = -k "$(DISABLE_TESTS)"
 
-# Module does not build successfully with Python 3.14 (segfaults during tests)
-export PYBUILD_DISABLE=python3.14
 
 %:
        dh $@ --buildsystem=pybuild

Reply via email to