FS#80136 - [python] libpython3.so does not link to libpython3.x.so.y.z since python 3.11
Attached to Project:
Arch Linux
Opened by Yichao Yu (yuyichao) - Thursday, 02 November 2023, 01:30 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:22 GMT
Opened by Yichao Yu (yuyichao) - Thursday, 02 November 2023, 01:30 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:22 GMT
|
Details
Description:
Python provides a version specific library with the soname libpython3.x.so.y.z (for python 3.11 this is currently libpython3.11.so.1.0) that contains the actual implementation of basically everything as well as a ABI-stable (https://peps.python.org/pep-0384/) library libpython3.so that conforming libraries can link to. Accessing the latter should allow accessing symbols from the former. AFAICT, the way this is implemented is that libpython3.so links to libpython3.x.so.y.z so it pulls in the real library when loaded. This is indeed the case up to the latest 3.10 version package but is not the case anymore for any of the 3.11 packages. This causes applications that loads libpython3.so to not work anymore. Additional info: * package version(s) * config and/or log files etc. * link to upstream bug report, if any Steps to reproduce: run `objdump -p /usr/lib/libpython3.so` and see that it doesn't link to the actual python library anymore. |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:22 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/python/issues/3
Saturday, 25 November 2023, 20:22 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/python/issues/3
$ readelf -d libpython3.so-3.10.9-1-x86_64 | grep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libpython3.10.so.1.0]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
$ readelf -d libpython3.so-3.11.5-2-x86_64 | grep NEEDED
<empty>
> ArchLinuxARM version
Where can I find the PKGBUILD?
checking for -Wl,--no-as-needed... no
Edit: something is wrong with the autofoo. From config.log
cc1: error: unrecognized argument to '-flto=' option: 'auto-Wl,--no-as-needed'
[1] https://reproducible.archlinux.org/api/v0/builds/521885/log
[1] https://github.com/python/cpython/commit/bb8b931385ba9df4e01f7dd3ce4575d49f60efdf#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810R1139
Don't worry. I've just built it with the patch and it does indeed solve the problem.