Bug#1141714: kig: Broken Python linking with more than one supported Python version

Adrian Bunk <[email protected]>
Newsgroups gmane.linux.debian.devel.qt-kde
Message-ID <178359345801.692895.6150281561227178112.reportbug__43570.6556237832$1783593569$gmane$org@localhost>
Package: kig
Version: 4:26.04.0-1
Severity: serious
Tags: patch
X-Debbugs-Cc: Graham Inggs <[email protected]>, Pino Toscano <[email protected]>
Control: block 1130323 by -1

  Package: kig
  Version: 4:26.04.0-1+b1
  Architecture: amd64
  Depends: ..., libboost-python1.90.0-py313,..., libpython3.14 (>= 3.14.1),...


The attached patch asks boost for the correct library.
boost-python.patch (text/plain, 562 B)
Description: Link with the correct libboost_python
Author: Adrian Bunk <[email protected]>

--- kig-26.04.0.orig/cmake/modules/FindBoostPython.cmake
+++ kig-26.04.0/cmake/modules/FindBoostPython.cmake
@@ -33,7 +33,8 @@ endmacro()
 cmake_policy(SET CMP0167 OLD)
 cmake_policy(SET CMP0148 OLD)
 
-find_package(Boost QUIET COMPONENTS python3)
+find_package(Python3 QUIET COMPONENTS Interpreter)
+find_package(Boost QUIET COMPONENTS python3${Python3_VERSION_MINOR})
 if(NOT Boost_PYTHON3_FOUND)
   find_package(Boost QUIET COMPONENTS python)
   if(Boost_PYTHON_FOUND)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.