Bug 403057

Summary: Cannot build packages with Craft: cmake failed with exit code 9
Product: [Unmaintained] Craft Reporter: Andrew Udvare <audvare>
Component: BlueprintsAssignee: Hannah von Reth <vonreth>
Status: RESOLVED FIXED    
Severity: normal CC: bcooksley, christoph, kde-windows, me
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Andrew Udvare 2019-01-10 03:59:52 UTC
SUMMARY

Getting no output from CMake. It seems CMake that is packaged through Craft is broken as even invoking it as `cmake --help` shows no output.

STEPS TO REPRODUCE
1. Install Craft
2. Source craft environment
3. craft systemsettings

OBSERVED RESULT

2019-01-09 22:52:51,851 DEBUG Command "/Users/tatsh/.local/share/dev-utils/bin/cmake" -G "Ninja" -DBUILD_TESTING=ON    -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_INSTALL_PREFIX="/Users/tatsh/.local/share" -DCMAKE_PREFIX_PATH="/Users/tatsh/.local/share" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DKDE_INSTALL_BUNDLEDIR="/Users/tatsh/.local/share/Applications/KDE" -DAPPLE_SUPPRESS_X11_WARNING=ON -DKDE_INSTALL_USE_QT_SYS_PATHS=ON "/Users/tatsh/.local/share/build/kde/plasma/systemsettings/work/systemsettings-5.14.4" failed with exit code 9
2019-01-09 22:52:51,852 WARNING Action: compile for kde/plasma/systemsettings:5.14.4 FAILED
2019-01-09 22:52:51,852 INFO *** Craft all failed: kde/plasma/systemsettings after 1 second ***
2019-01-09 22:52:51,856 DEBUG Craft was unable to locate: snoretoast, in None
2019-01-09 22:52:51,856 ERROR fatal error: package kde/plasma/systemsettings all failed

EXPECTED RESULT

The package should build.

SOFTWARE/OS VERSIONS
Windows: 
MacOS: macOS 10.14.2
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version:
Comment 1 Ben Cooksley 2019-01-11 06:03:38 UTC
This was a recent regression which should have subsequently been fixed - could you retest please?
Comment 2 Andrew Udvare 2019-01-11 06:46:49 UTC
I had to do `craft -i --update` and it seems like the CMake binary now works. But I was unable to install systemsettings due to missing packages, it seems:

-- Could NOT find KF5ActivitiesStats: found neither KF5ActivitiesStatsConfig.cmake nor kf5activitiesstats-config.cmake 
-- Could NOT find KF5KHtml: found neither KF5KHtmlConfig.cmake nor kf5khtml-config.cmake 
CMake Error at /Users/tatsh/.local/share/dev-utils/cmake/CMake.app/Contents/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find KF5 (missing: ActivitiesStats) (found suitable version
  "5.52.0", minimum required is "5.50.0")
Call Stack (most recent call first):
  /Users/tatsh/.local/share/dev-utils/cmake/CMake.app/Contents/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /Users/tatsh/.local/share/share/ECM/find-modules/FindKF5.cmake:110 (find_package_handle_standard_args)
  CMakeLists.txt:28 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/tatsh/.local/share/build/kde/plasma/systemsettings/work/RelWithDebInfo-5.14.4/CMakeFiles/CMakeOutput.log".
See also "/Users/tatsh/.local/share/build/kde/plasma/systemsettings/work/RelWithDebInfo-5.14.4/CMakeFiles/CMakeError.log".
executing command: "/Users/tatsh/.local/share/dev-utils/bin/ninja" 
ninja: error: loading 'build.ninja': No such file or directory
Action: compile for kde/plasma/systemsettings:5.14.4 FAILED
*** Craft all failed: kde/plasma/systemsettings after 3 seconds ***
fatal error: package kde/plasma/systemsettings all failed
Comment 3 Ben Cooksley 2019-01-11 07:37:12 UTC
System Settings is a package which likely isn't built very often with Craft, so you may need to fix it's dependencies in the Craft Blueprints. Once those are fixed, it should be able to pass the configure stage.
Comment 4 Andrew Udvare 2019-02-04 10:56:57 UTC
We're missing a blueprint for kactivities-stats, and systemsettings does not pull in khtml as it should.
Comment 5 Christoph Cullmann 2024-09-22 20:21:22 UTC
I think that got fixed for the KF6 stuff.