<div dir="ltr">Source: python-freecontact<br>Version: 1.1-7<br>Severity: serious<br>Tags: FTBFS, patch<br>User: <a href="mailto:debian-riscv@lists.debian.org" target="_blank">debian-riscv@lists.debian.org</a><br>Usertags: riscv64<br>X-Debbugs-Cc: <a href="mailto:debian-riscv@lists.debian.org" target="_blank">debian-riscv@lists.debian.org</a><br><div><br></div><div>Dear python-freecontact Maintainer,</div><div>The package python-freecontact build failed on all arch.The crucial buildd log below:</div><div>```</div><div><pre style="color:rgb(0,0,0)">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</pre></div><div>```</div><div>The full buildd log is here:</div><div><a href="https://buildd.debian.org/status/fetch.php?pkg=python-freecontact&arch=riscv64&ver=1.1-7&stamp=1726088746&raw=0">https://buildd.debian.org/status/fetch.php?pkg=python-freecontact&arch=riscv64&ver=1.1-7&stamp=1726088746&raw=0</a><br></div><div><br></div><div>My solution to this issue:</div><div> This error is caused by the fact that the file path of <code>libboost-python1.83-dev</code> installed in Debian is <code>/usr/lib/riscv64-linux-gnu/libboost_python312.so</code> rather than the path expected by the software, <code>/usr/lib/riscv64-linux-gnu/libboost_python.so</code>, which leads to the 'can't find' error. To resolve this issue, you can modify the <code>debian/rules</code> file to create a symlink from <code>/usr/lib/riscv64-linux-gnu/libboost_python312.so</code> to <code>/usr/lib/riscv64-linux-gnu/libboost_python.so.</code><br></div><div><code> </code>Additionally, the <code>test.test_support</code> module has been removed in Python 3.12, so it is necessary to modify the relevant parts in <code>test/test01.py</code> 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.</div><div><br></div><div>Gui-Yue</div><div>Best Regards</div></div>