Package: src:python-pyvips
Version: 3.1.1-3
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 python-pyvips fails to build from source [1].
The error is: E: pybuild pybuild:485: install: plugin pyproject failed
with: exit code=1: mv
/build/reproducible-path/python-pyvips-3.1.1/debian/tmp//usr/lib/
reproducible-path/python-pyvips-3.1.1/debian/tmp//usr/lib/python3.15/dist-packages/\_libvips.$(python3.15
-c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))').so mv:
cannot stat
'/build/reproducible-path/python-pyvips-3.1.1/debian/tmp//usr/lib/python3.15/dist-packages/_libvips.abi3.so':
No such file or directory

To fix the problem, I simply avoided tweaking the .abi3 file, and used
it as is.

I've applied the fix 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/4587840/
[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 /\/\ /\ >< `/
diff -Nru python-pyvips-3.1.1/debian/changelog 
python-pyvips-3.1.1/debian/changelog
--- python-pyvips-3.1.1/debian/changelog        2026-08-13 08:00:00.000000000 
+0200
+++ python-pyvips-3.1.1/debian/changelog        2026-09-10 14:47:11.000000000 
+0200
@@ -1,3 +1,10 @@
+python-pyvips (3.1.1-4) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Use the multiarch-tagged abi3 extension as is.
+
+ -- Maximiliano Curia <[email protected]>  Thu, 10 Sep 2026 14:47:11 +0200
+
 python-pyvips (3.1.1-3) unstable; urgency=medium
 
   * Fix the Hurd build by skipping unreliable progress-callback tests.
diff -Nru python-pyvips-3.1.1/debian/rules python-pyvips-3.1.1/debian/rules
--- python-pyvips-3.1.1/debian/rules    2026-08-13 08:00:00.000000000 +0200
+++ python-pyvips-3.1.1/debian/rules    2026-09-10 14:47:11.000000000 +0200
@@ -16,7 +16,7 @@
 
 # Rename extension to avoid collisions between builds for different Python
 # versions.
-export PYBUILD_AFTER_INSTALL := mv {destdir}/{install_dir}/_libvips.abi3.so 
{destdir}/{install_dir}/_libvips.$$({interpreter} -c 'import sysconfig; 
print(sysconfig.get_config_var("SOABI"))').so
+# export PYBUILD_AFTER_INSTALL := mv {destdir}/{install_dir}/_libvips.abi3*.so 
{destdir}/{install_dir}/_libvips.$$({interpreter} -c 'import sysconfig; 
print(sysconfig.get_config_var("SOABI"))').so
 
 %:
        dh $@ --buildsystem=pybuild

Reply via email to