#1143199 python-samplerate: FTBFS in sid

#1143199#5
Date:
2026-07-31 16:39:45 UTC
From:
To:
Hello, as seen in r-b
https://tests.reproducible-builds.org/debian/rb-pkg/python-samplerate.html

gmake[1]: Leaving directory '/build/reproducible-path/python-samplerate-0.2.4/build/temp.linux-x86_64-cpython-314/samplerate'
debian/rules execute_after_dh_auto_build-indep
make[1]: Entering directory '/build/reproducible-path/python-samplerate-0.2.4'
PYTHONPATH=.pybuild/cpython3_3.13_samplerate/build \
python3 -m sphinx -N -bhtml \
docs/ build/html # HTML generator
Running Sphinx v9.1.0

Configuration error!

Versions
========

* Platform: linux; (Linux-6.12.95+deb13-amd64-x86_64-with-glibc2.42)
* Python version: 3.14.6 (CPython)
* Sphinx version: 9.1.0
* Docutils version: 0.22.4
* Jinja2 version: 3.1.6
* Pygments version: 2.20.0

Last Messages
=============

None.

Loaded Extensions
=================

None.

Traceback
=========

File "/usr/lib/python3/dist-packages/sphinx/config.py", line 611, in eval_config_file
raise ConfigError(msg % traceback.format_exc()) from exc
sphinx.errors.ConfigError: There is a programmable error in your configuration file:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/sphinx/config.py", line 596, in eval_config_file
exec(code, namespace) # NoQA: S102
~~~~^^^^^^^^^^^^^^^^^
File "/build/reproducible-path/python-samplerate-0.2.4/docs/conf.py", line 25, in <module>
import samplerate
ModuleNotFoundError: No module named 'samplerate'


The full traceback has been saved in:
/tmp/sphinx-err-lbxxfydl.log

To report this error to the developers, please open an issue at <https://github.com/sphinx-doc/sphinx/issues/>. Thanks!
Please also report this if it was a user error, so that a better error message can be provided next time.
make[1]: *** [debian/rules:26: execute_after_dh_auto_build-indep] Error 2

This might be related to the new sphinx in sid?

G.

#1143199#10
Date:
2026-07-31 19:38:32 UTC
From:
To:
Hello, the following (attached) patch might do the trick and be safe for Python3 transitions:

diff -Nru python-samplerate-0.2.4/debian/changelog python-samplerate-0.2.4/debian/changelog
--- python-samplerate-0.2.4/debian/changelog 2026-04-07 15:19:58.000000000 +0200
+++ python-samplerate-0.2.4/debian/changelog 2026-07-31 21:20:24.000000000 +0200
@@ -1,3 +1,9 @@
+python-samplerate (0.2.4-2.1) unstable; urgency=medium
+
+ * Proper versioning and run only for default Python3 (Closes: #-1)
+
+ -- Gianfranco Costamagna <locutusofborg@debian.org> Fri, 31 Jul 2026 21:20:24 +0200
+
python-samplerate (0.2.4-2) unstable; urgency=medium

* added the mark Multi-Arch: foreign to the package python-samplerate-doc
diff -Nru python-samplerate-0.2.4/debian/rules python-samplerate-0.2.4/debian/rules
--- python-samplerate-0.2.4/debian/rules 2026-03-23 15:30:55.000000000 +0100
+++ python-samplerate-0.2.4/debian/rules 2026-07-31 21:20:24.000000000 +0200
@@ -15,7 +15,8 @@
%:
dh $@ --buildsystem=pybuild --with sphinxdoc

#1143199#17
Date:
2026-08-15 15:48:28 UTC
From:
To:
Hi Georges,

I opened an MR as discussed: https://salsa.debian.org/python-team/packages/python-samplerate/-/merge_requests/1

Br,

Pieter

MR message:

"""
This patch by Gianfranco Costamagna locutusofborg@debian.org should be
future python version transitions proof.

I applied the patch, did some housekeeping on the CMakeLists.txt patch, bumped
versions and added myself to uploaders.

I've not tackled the blhc error yet... Which annoys me... But lets first tackle
the FTBFS, no?
"""

#1143199#22
Date:
2026-08-16 11:18:57 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-samplerate, 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 1143199@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Pieter Lenaerts <plenae@disroot.org> (supplier of updated python-samplerate 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 16 Aug 2026 08:49:27 +0200
Source: python-samplerate
Architecture: source
Version: 0.2.4-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Pieter Lenaerts <plenae@disroot.org>
Closes: 1143199
Changes:
 python-samplerate (0.2.4-3) unstable; urgency=medium
 .
   [ Pieter Lenaerts ]
   * Revert CMakeLists.txt to unpatched upstream
   * Make CMakeLists.txt patch DEP3 & gbp pq compliant
   * d/rules: Remove manual build flags. Debhelper covers them.
   * d/control:
     - add self to uploaders,
     - bump stds version & compat helper version
     - add pybuild-plugin-pyproject to build deps
     - mark Testsuite: autopkgtest-pkg-python
   * d/salsa-ci.yml: Correct blhc ignore regex
 .
   [ Gianfranco Costamagna ]
   * Proper versioning and run only for default Python3 (Closes: #1143199)
Checksums-Sha1:
 19596ebf5f0b1ed439298f01a009cf8cb73f9b2b 2430 python-samplerate_0.2.4-3.dsc
 cb52c8b47191d6304aa2cb1979ed0ea9affed2f7 6616 python-samplerate_0.2.4-3.debian.tar.xz
 605a2fcd8a4127b9a19336e842546eb502fa09c9 9550 python-samplerate_0.2.4-3_source.buildinfo
Checksums-Sha256:
 b281cd301387c24d09076e254a0562e2efd73017cebb17b989a4ad4ed91d4326 2430 python-samplerate_0.2.4-3.dsc
 606502ca6ad0fea6452e4b597adaa4ca4b7d481c795ddba08ede7405618bc4db 6616 python-samplerate_0.2.4-3.debian.tar.xz
 b4a0da06b19467c535b385fef047052d684ea4c1dd30bacc4475826b70873a73 9550 python-samplerate_0.2.4-3_source.buildinfo
Files:
 35e8721cc2944fc003802662149fbc74 2430 python optional python-samplerate_0.2.4-3.dsc
 d05ff822651f87df787921f9b8410528 6616 python optional python-samplerate_0.2.4-3.debian.tar.xz
 950153e600068d0835917dc2edc3ab18 9550 python optional python-samplerate_0.2.4-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEM0CzZP9nFT+3zK6FHCgWkHE2rjkFAmqBl8oACgkQHCgWkHE2
rjl9xQ//dSUlqPPD/pMnRg4nh6VpiVXjNWP3IB+d9cNcV9OApRHn/Z46udL84Bvp
LgqU86LG8L6pBmkwRuIN73m0ug8YpvcphAEPE+uz0DljYdq95D0SiknzAY8B5s3j
84EGW7vavAVjxO3Z8bOnucxNymGnX4XdY1FUan+yVpMkhTsO5JH8lQCEY3Mf3wlo
fvBlGvgooij9QMZMIUNXr4zBbsIfABjtXfSvU8q7cGahXhxc2Wp5dPBxWs0WKOf3
QWlqcb21ipb+UaPe3vbx2RyRU0C15PN2uV72y9OGQB72gMMtIcVd825D6o7K64q+
CP0NdQCG10wIjwnJeYk0BBiKpEY1RXJmysRhP7gK6vkA9roJVr4LswxBrmBdxqjy
HsduOMnEaEoASoQXQWuq/FDOGomR39XhUzFRRbga4IASQRYrvqQvjk4wf//F5dzW
VK67pGHUTKiLAfwqg7QZyhNoj3fP7bylRZgYx6wFf2dHsllZAhgWYIyZ7Ps7+H+4
KnfxdaPGW4Un2Ms2rOLIlms+bFRJoync0Exw+syJkTuIb+5GbRd7Dap8dWE64y6v
1CvPilXqDByV0+mRZvQtyyjXrh9u4xn9ChlSPM2hpcnMW9ZmXDm7H+Jkg7pjkq7F
qiRnRwhYDv8j9ri7TqwCpm7+xK5JyexPOrqwSiE+Oixan/BNLnQ=
=awGE
-----END PGP SIGNATURE-----