Bug 461222 - kdesrc-build crashes for every build due to the lastest change in KDEMetaInfoPlatformCheck.cmake
Summary: kdesrc-build crashes for every build due to the lastest change in KDEMetaInfo...
Status: RESOLVED FIXED
Alias: None
Product: extra-cmake-modules
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Jakub Judas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-30 21:36 UTC by Jakub Judas
Modified: 2022-10-31 11:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Judas 2022-10-30 21:36:31 UTC
SUMMARY

After the most recent change in KDEMetaInfoPlatformCheck.cmake (https://github.com/KDE/extra-cmake-modules/commit/bdb46b5a58a4c382ad14e43bd00c5768e91b9504), kdesrc-build cannot build any package.


STEPS TO REPRODUCE
1. Download kdesrc-build
2. Attempt to build any package

It works when any value for "KF_IGNORE_PLATFORM_CHECK" is provided as an environment variable

OBSERVED RESULT
Make Error at /.../KDEMetaInfoPlatformCheck.cmake:22 (if):
  if given arguments:

    "STREQUAL" "ON"

  Unknown arguments specified

EXPECTED RESULT
Build succeeds

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.10
Comment 1 Clive 2022-10-30 23:54:24 UTC
Hi All

Am trying to build KDE on Debian 11.3, and an having the same problem as the orginal poster on Ubuntu.

Build command: Building kcoreaddons from frameworks (2/2)
        Fetching remote changes to kcoreaddons
        Merging kcoreaddons changes from branch master
        No changes to kcoreaddons source, proceeding to build.
        Compiling... failed (after 13 seconds)

I am getting from the log file: -

# kdesrc-build running: 'gmake' '-j' '1'
# from directory: /home/clive/kde/build/kcoreaddons
--

Installing in /home/clive/kde/usr. Run /home/clive/kde/build/kcoreaddons/prefix.sh to set the environment for KCoreAddons.
CMake Error at /home/clive/kde/usr/share/ECM/kde-modules/KDEMetaInfoPlatformCheck.cmake:22 (if):
  if given arguments:

    "STREQUAL" "ON"

  Unknown arguments specified
Call Stack (most recent call first):
  /home/clive/kde/usr/share/ECM/kde-modules/KDEFrameworkCompilerSettings.cmake:66 (include)
  CMakeLists.txt:16 (include)


-- Configuring incomplete, errors occurred!
See also "/home/clive/kde/build/kcoreaddons/CMakeFiles/CMakeOutput.log".
See also "/home/clive/kde/build/kcoreaddons/CMakeFiles/CMakeError.log".
gmake: *** [Makefile:3447: cmake_check_build_system] Error 1

An explanation of what is going on because the make files for all the frameworks have just become completely broken., I know what has happened from the explanation given in the file, but did nobody consider that this may be a problem?

I look forward to a resolution to this problem in the near future.

Regards

Clive