Bug#1008849: Needs tighter dependency on python3
Package: libshiboken2-py3-5.15
Version: 5.15.2-2+b2
Severity: important
shiboken2 depends on a sepecific major+minor version of python.
/usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.15.2/shiboken_helpers.cmake
checks for this.
As a result, attempting to build any package cmake package using
shiboken2 currently fails:
-- Found PythonInterp: /usr/bin/python3.10 (found suitable version "3.10.4", minimum required is "3")
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.15.2/shiboken_helpers.cmake:468 (message):
The detected Python minor version is not compatible with the Python minor
version which was used when Shiboken was built. Consider building shiboken
with FORCE_LIMITED_API set to '1', so that only the Python major version
matters.
Built with: '3.9' Detected: '3.10'
due to python3 now defaulting to python3.10.
One can set PYTHON_EXECUTABLE to the proper version, but that implies
that libshiboken2-py3-5.15 should depend on a specific python3 version,
not just on any minor version.
This also requires that shiboken2 should be currently rebuilt.
Either the python3 dependency should be tightened, or FORCE_LIMITED_API
should be used.
Reply to: