[Pkg-cmake-team] Bug#867514: Bug#867514: python2.7/cmake: find_package called with invalid argument "2.7.13+"

Felix Geyer fgeyer at debian.org
Mon Jul 17 17:07:13 UTC 2017


Control: reassign -1 libsolv 0.6.28-1
Control: notforwarded -1

On Tue, 11 Jul 2017 22:57:08 +0200 Felix Geyer <fgeyer at debian.org> wrote:
> Hi Adrian,
> 
> On 07.07.2017 01:11, Adrian Bunk wrote:
> > -- Found PythonLibs: /usr/lib/mips-linux-gnu/libpython2.7.so (found suitable version "2.7.13+", minimum required is "2") 
> > CMake Error at bindings/python/CMakeLists.txt:9 (FIND_PACKAGE):
> >   find_package called with invalid argument "2.7.13+"
> 
> I've submitted a patch upstream.
> 
> Please note however that libsolv doesn't follow the recommended way to find the Python interpreter
> + libs:
> 
> > If calling both ``find_package(PythonInterp)`` and
> > ``find_package(PythonLibs)``, call ``find_package(PythonInterp)`` first to> get the currently active Python version by default with a consistent version
> > of PYTHON_LIBRARIES.

I'm reassigning the bug since it's the caller's responsibility to pass a valid version to
find_package().
PYTHONLIBS_VERSION_STRING contains the full version string by design.
libsolv would have to parse the x.y.z version from the variable.

Full upstream response:
https://gitlab.kitware.com/cmake/cmake/merge_requests/1047#note_288680


Felix



More information about the Pkg-cmake-team mailing list