#1152048 pysvn: FTBFS with latest dh-python (two different top_level.txt files)

Package:
src:pysvn
Source:
src:pysvn
Submitter:
Margarita Manterola
Date:
2026-10-26 10:21:03 UTC
Severity:
normal
Tags:
#1152048#5
Date:
2026-10-25 17:30:42 UTC
From:
To:
Hi!

While rebuilding the python related packages for the Python 3.15 transition,
we found that pysvn fails to build from source:
https://debusine.debian.net/debian/r-python-python3.15/artifact/5165532/

From the log, the error seems to be:

I: dh_python3 fs:543: renaming _pysvn.so to _pysvn.cpython-314-x86_64-linux-gnu.so
I: dh_python3 fs:543: renaming _pysvn_3_14.so to _pysvn_3_14.cpython-314-x86_64-linux-gnu.so
I: dh_python3 fs:543: renaming _pysvn_3_15.so to _pysvn_3_15.cpython-315-x86_64-linux-gnu.so
I: dh_python3 fs:543: renaming _pysvn.so to _pysvn.cpython-315-x86_64-linux-gnu.so
W: dh_python3 fs:156: Paths differ: debian/python3-svn/usr/lib/python3.15/dist-packages/pysvn-1.9.25.egg-info/top_level.txt and debian/python3-svn/usr/lib/python3/dist-packages/pysvn-1.9.25.egg-info/top_level.txt
E: dh_python3 fs:172: Not everything in 'debian/python3-svn/usr/lib/python3.15/dist-packages/pysvn-1.9.25.egg-info' was able to be merged into 'debian/python3-svn/usr/lib/python3/dist-packages/pysvn-1.9.25.egg-info'.
I: dh_python3 fs:179: Remaining files: debian/python3-svn/usr/lib/python3.15/dist-packages/pysvn-1.9.25.egg-info/top_level.txt
make: *** [debian/rules:15: binary-arch] Error 1

This is caused by the new dh-python version that fails with an error when the
top_level.txt files don't match for different Python versions. In the case of
pysvn, this is because the top_level.txt files include the python version in the
name of the package, i.e. '_pysvn_3_14' rather than just 'pysvn'. This is
visible in the package that is available in unstable.

I also noticed that the package in unstable is installing the .so library twice:

/usr/lib/python3/dist-packages/pysvn/_pysvn.cpython-314-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/pysvn/_pysvn_3_14.cpython-314-x86_64-linux-gnu.so

I spent a couple of hours trying to figure out the right fix for this, but it
seems more complex than other packages with similar failures.

#1152048#10
Date:
2026-10-26 10:20:05 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
pysvn, 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 1152048@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Maximiliano Curia <maxy@debian.org> (supplier of updated pysvn 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: Mon, 26 Oct 2026 10:48:59 +0100
Source: pysvn
Architecture: source
Version: 1.9.25-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Maximiliano Curia <maxy@debian.org>
Closes: 1152048
Changes:
 pysvn (1.9.25-2) unstable; urgency=medium
 .
   * Team Upload
   * d/patches: Add patch to use fixed extension name in setup.py
     (Closes: #1152048) Thanks to Margarita Manterola
   * d/clean: Add Source/pysvn/__init__.py
   * drop debian/python3-svn.install
   * d/rules: Simplify rules by using pybuild
Checksums-Sha1:
 347ac156aa4374f79fd1e2cba79740d4ebe0a366 2080 pysvn_1.9.25-2.dsc
 e79b7acd49ed8d00d3297baa3816d3f4d224a099 9724 pysvn_1.9.25-2.debian.tar.xz
 eafad3bd6771237d0493f81d7a17a567002e9ba3 8650 pysvn_1.9.25-2_source.buildinfo
Checksums-Sha256:
 13f91cf643b66c0e36941f79016e5896b3ed05fb91e06741a2bfe44d853d359c 2080 pysvn_1.9.25-2.dsc
 7ffe5d9eb245227159d7aa2898285bf2de86fc1259d540f95fa8a53737ea806e 9724 pysvn_1.9.25-2.debian.tar.xz
 921969752c1f8377580b35ee46723882f1f5449253ca9934a55d2192dfb3b4a6 8650 pysvn_1.9.25-2_source.buildinfo
Files:
 81160e9394d80cf4b62fa02b5e28a935 2080 python optional pysvn_1.9.25-2.dsc
 8d4af13944cbacb0ee9316a2027050df 9724 python optional pysvn_1.9.25-2.debian.tar.xz
 0ca943a2e658bd88276d5a21f0dd4ff8 8650 python optional pysvn_1.9.25-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE+JIdOnQEyG4RNSIVxxl2mbKbIyoFAmrfKLwACgkQxxl2mbKb
IypvPA//adjzHKAD3+MpoPEF08Qh6ze2RzYA2s9mTrWq5Ps/n4V2cOuzwgodrCa6
XTtSMfgXsHE167JmQFwVUkKyN0s4bgdtkAkiFAfnomjhXp5QJDIe8TreMiqA3NsE
dwHiQW47IR5CHiPjGAg38MNIlAyw7SLcu2pCxzgvvoby/456BNOCcLZb89GqqQny
KMkwyMwoZr2DVDej2xUEkCDuT1c3jE8klpBOTHXIU5/e2RcHpyGzIL1nYsxyKI15
8WYvdG7aKK+Gkv+F4zkDq/zooFNvTxDsFaiKPqHpa7IMn4wOswtOSv/0Jq+v9avw
YFk32nxXj0gbYfnwNFe6Ky1eWNDhITmRTtzDBjdDkNXhWm74uQjgwRWQdjYN7z81
q7BguUDo7mHYGVhNDUsNhhOEMIZ3srMLRTA1EpzowbkJo7Bt4pxReLwBRk9MnHaJ
3x8xZt3IBKVt1ep8AVx4S7t+2G1XSExt4X43w49vuh7oUqdTYpiPGsqm7VYjBI17
vRAwdlQ5jih7UrBmKMDneHq7tHPjBfK8y0m2MguUJpAlYTXZPEwU+agyNE0K3c1A
BRGXqP0ehFLoZyUbhEv1G3FtskEmGlZPgZ/X5oZWi/97dWkY6fgP9u4Pqo4jfILV
q58XW9QtysQsasrr5Mk0CDl3BtfXMkADGRpnYUqpcYux3QFf23Q=
=g6Wm
-----END PGP SIGNATURE-----