https://bugs.kde.org/show_bug.cgi?id=479260

            Bug ID: 479260
           Summary: building fails with cmake 3.27 + extra-cmake-modules
                    due to CMP0148
    Classification: Developer tools
           Product: kdev-python
           Version: git master
          Platform: unspecified
                OS: All
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: m...@svenbrauch.de
          Reporter: bjorn.stromber...@gmail.com
                CC: m...@svenbrauch.de
  Target Milestone: ---

Created attachment 164597
  --> https://bugs.kde.org/attachment.cgi?id=164597&action=edit
APKBUILD for alpine v3.19 + kdev-python-23.08.4

SUMMARY
***
on alpine linux with python 3.11.6 + -DCMAKE_POLICY_DEFAULT_CMP0148=OLD

-- Found PythonInterp: /usr/bin/python3.11 (found suitable version "3.11.6",
minimum required is "3.11") 
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230
(message):
  Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
  (Required is exact version "3.11")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600
(_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindPythonLibs.cmake:323
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:60 (find_package)


-- Configuring incomplete, errors occurred!

-----------------------
and with CMP0148=NEW
------------------------


CMake Error at CMakeLists.txt:64 (message):
  Python >= 3.4.3 but < 3.12 with --enable-shared is required to build
  kdev-python


https://cmake.org/cmake/help/latest/policy/CMP0148.html

so if CMP0148 is new it should use FindPython3 instead..

as of master commit 5a22e29cd676fbe5851554c381da0e899bd4cf55 this is not the
case yet.
***


STEPS TO REPRODUCE
1. alpine 3.19 with kdevelop installed
2. build the attached APKBUILD with 'abuild -r'
3. error triggers due to cmake 3.27 uses FindPython3 instead of old ones.

OBSERVED RESULT
error messages

EXPECTED RESULT
clean compile that takes CMP0148 into account

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
this will be a issue with 24.02 also since the code has not changed in master
yet

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to