[Debian-med-packaging] Bug#1081639: python-freecontact:FTBFS:build failure (cant find -lboost_python)

Étienne Mollier emollier at debian.org
Fri Sep 13 19:44:55 BST 2024


Hi Yue Gui,

Ouch the bad timing!  How come I managed to build
python-freecontact escapes my understanding, but I sure can
reproduce the build issues you are reporting.

Yue Gui, on 2024-09-13:
> 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.

Thank you for the hints!  About the boost_python, I favored an
approach that does not require making modifications into the
system tree and proceeded to adjustments to the LIBRARY_PATH
environment variable instead.  This avoids needing privileged
access during the build.

>  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.

Regarding your changes to the test, I injected them as-is.
Thank you for your contributions!

Have a nice day,  :)
-- 
  .''`.  Étienne Mollier <emollier at debian.org>
 : :' :  pgp: 8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
 `. `'   sent from /dev/pts/2, please excuse my verbosity
   `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20240913/d9b2765e/attachment.sig>


More information about the Debian-med-packaging mailing list