Bug 1896713 - boost-python3 does not require Python 3.Y
Summary: boost-python3 does not require Python 3.Y
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: boost
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jonathan Wakely
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2020-11-11 11:00 UTC by Miro Hrončok
Modified: 2021-02-09 17:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

Description Miro Hrončok 2020-11-11 11:00:05 UTC
boost-python3 ships /usr/lib64/libboost_python39.so.1.73.0 but it does not rquire Python 3.9:

$ repoquery --repo=koji --requires boost-python3
libc.so.6(GLIBC_2.14)(64bit)
libdl.so.2()(64bit)
libgcc_s.so.1()(64bit)
libgcc_s.so.1(GCC_3.0)(64bit)
libgcc_s.so.1(GCC_3.3.1)(64bit)
libpthread.so.0()(64bit)
librt.so.1()(64bit)
libstdc++.so.6()(64bit)
libstdc++.so.6(CXXABI_1.3)(64bit)
libstdc++.so.6(CXXABI_1.3.9)(64bit)
libstdc++.so.6(GLIBCXX_3.4)(64bit)
libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
libstdc++.so.6(GLIBCXX_3.4.9)(64bit)
libutil.so.1()(64bit)
rtld(GNU_HASH)


As such, packages that BR boost-python3 will happily install the Python 3.9 boost package in Python 3.10 environment. I think that boost-python3 should require Python 3.9, WDYT?

Comment 1 Denis Arnaud 2020-11-11 16:36:23 UTC
Note that, as boost-python does not run the Python interpreter, it should not require it. The idea is that the caller of the Boost:Python library will bring their own Python library, usually part of the Python interpreter. That way, the Boost:Python library can be used from many different Python programs, including the interpreters.

But maybe I missed your point?

Some references, as when the issue was raised a few months ago (in May 2020):
* Many packages unnecessarily link to libpython: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/IAIUO5XU54FQM64TDXWF4YMHHWGQFNXT/
* libarcus Pull Request - Stop linking the Python module to libpython (on Python 3.8+): https://src.fedoraproject.org/rpms/libarcus/pull-request/8
* Changes/PythonStaticSpeedup: https://fedoraproject.org/wiki/Changes/PythonStaticSpeedup
* Changes/PythonNoSemanticInterpositionSpeedup: https://fedoraproject.org/wiki/Changes/PythonNoSemanticInterpositionSpeedup
* https://docs.python.org/3.8/whatsnew/3.8.html#changes-in-the-c-api
* https://bugs.python.org/issue21536

Comment 2 Jonathan Wakely 2020-11-11 19:39:23 UTC
It could require it without linking to it though.

Comment 3 Miro Hrončok 2020-11-12 09:58:47 UTC
The issue is that if you have boost-python3 (for 3.9) and python3-devel (3.10) installed, you cannot really do anything.

Comment 4 Denis Arnaud 2020-11-12 17:40:01 UTC
(In reply to Miro Hrončok from comment #3)
> The issue is that if you have boost-python3 (for 3.9) and python3-devel
> (3.10) installed, you cannot really do anything.

You are right (obviously), thanks!

@Jonathan, will you add that require in the RPM specification file?

Comment 5 Ben Cotton 2021-02-09 16:55:45 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.


Note You need to log in before you can comment on or make changes to this bug.