Source: python-freecontact Version: 1.1-7 Severity: serious Tags: FTBFS, patch User: debian-ri...@lists.debian.org Usertags: riscv64 X-Debbugs-Cc: debian-ri...@lists.debian.org
Dear python-freecontact Maintainer, The package python-freecontact build failed on all arch.The crucial buildd log below: ``` I: pybuild base:311: python3.12 setup.py config dh_auto_build -a -O--buildsystem=pybuild -O--builddirectory=/<<PKGBUILDDIR>>/builddir dh_auto_build: warning: warning: pybuild does not support building out of source tree. In source building enforced. pybuild --build -i python{version} -p 3.12 I: pybuild base:311: /usr/bin/python3 setup.py build /usr/bin/ld: cannot find -lboost_python: No such file or directory collect2: error: ld returned 1 exit status error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1 E: pybuild pybuild:389: build: plugin distutils failed with: exit code=1: /usr/bin/python3 setup.py build dh_auto_build: error: pybuild --build -i python{version} -p 3.12 returned exit code 13 make: *** [debian/rules:9: binary-arch] Error 255 dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2 ``` The full buildd log is here: https://buildd.debian.org/status/fetch.php?pkg=python-freecontact&arch=riscv64&ver=1.1-7&stamp=1726088746&raw=0 My solution to this issue: This error is caused by the fact that the file path of libboost-python1.83-dev installed in Debian is /usr/lib/riscv64-linux-gnu/libboost_python312.so rather than the path expected by the software, /usr/lib/riscv64-linux-gnu/libboost_python.so, which leads to the 'can't find' error. To resolve this issue, you can modify the debian/rules file to create a symlink from /usr/lib/riscv64-linux-gnu/libboost_python312.so to /usr/lib/riscv64-linux-gnu/libboost_python.so. Additionally, the test.test_support module has been removed in Python 3.12, so it is necessary to modify the relevant parts in test/test01.py to be compatible with Python 3.12. I have completed these modifications and tested my solution locally, it works well.Please let me know wheather the solution can be accepted.The patch is in the attachment. Gui-Yue Best Regards
fix_python-freecontact_build_failure.patch
Description: Binary data