Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
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-06-07 22:59 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
Embargoed:


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.

Comment 6 Miro Hrončok 2021-06-04 20:15:14 UTC
This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla.


The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide.

You can either build the package in the side tag, with:

    $ fedpkg build --target=f35-python

Or you can the build and we will eventually build it for you.

Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away.

Thanks.

See also https://fedoraproject.org/wiki/Changes/Python3.10

If you have general questions about the rebuild, please use this mailing list thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/G47SGOYIQLRDTWGOSLSWERZSSHXDEDH5/

Comment 7 Miro Hrončok 2021-06-07 22:59:42 UTC
The f35-python side tag has been merged to Rawhide. From now on, build as you would normally build.


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