Package: src:pysvn
Version: 1.9.25-1
User: [email protected]
Usertags: python3.15
Tags: ftbfs, forky, sid
Severity: serious

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.

-- 
Regards,
Marga

Reply via email to