fink / fink-distributions

Package descriptions and patches for Fink
24 stars 38 forks source link

extra-cmake-modules needs update related to python #1032

Open dmacks opened 1 year ago

dmacks commented 1 year ago

Attempting to build various kde5 packages fails during their cmake:

CMake Error at /sw/lib/qt5-mac/share/ECM/find-modules/FindPythonModuleGeneration.cmake:149 (message):
  The max python version in PythonModuleGeneration must be updated.
Call Stack (most recent call first):
  src/CMakeLists.txt:71 (find_package)

FindPythonModuleGeneration is from extra-cmake-modules, and apparently is choking when it finds various pythonX.X that are newer than existed at the time this ECM was released. I don't know enough cmake to figure out speicifically what the version limits are here and how to fix them.

nieder commented 1 year ago

Quick workaround: disable PythonModuleGeneration in whatever package is failing, cf: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6990f098728781bec8178e4b92ecee5aa4430b26

-DCMAKE_DISABLE_FIND_PACKAGE_PythonModuleGeneration=ON

nieder commented 1 year ago

Is there a specific package that this happens on? And what macOS are you using?