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 2libboost-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.Attachment:
fix_python-freecontact_build_failure.patch
Description: Binary data