Bug 350034 - Generating policy files during builds fail when using ninja
Summary: Generating policy files during builds fail when using ninja
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kauth
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-08 21:49 UTC by Siddhartha
Modified: 2015-08-28 06:04 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Siddhartha 2015-07-08 21:49:30 UTC
cmake 3.2.3
ninja 1.6.0

Reproducible: Always

Steps to Reproduce:
* Enable ninja builds in kdesrc-buildrc
custom-build-command    ninja
cmake-options [...]  -GNinja

* Try to build a module which generated a policy file. Eg sddm-kcm
./kdesrc-build --debug sddm-kcm

Actual Results:  
Build fails with error:

# kdesrc-build running: '/usr/bin/ninja' 'install'
# from directory: /run/media/sdh/sdh-hdd3/dev/build/kde/sddm-kcm
ninja: warning: multiple rules generate org.kde.kcontrol.kcmsddm.policy. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
[1/3] Automatic moc for target kcmsddm_authhelper
[2/3] Automatic moc for target kcm_sddm
[3/3] Install the project...
-- Install configuration: "debug"
-- Up-to-date: /opt/kde5/share/kservices5/kcm_sddm.desktop
CMake Error at cmake_install.cmake:48 (file):
  file INSTALL cannot find
  "/run/media/sdh/sdh-hdd3/dev/build/kde/sddm-kcm/org.kde.kcontrol.kcmsddm.policy".

Expected Results:  
Build should succeed. "multiple rules generate org.kde.kcontrol.kcmsddm.policy." seems to be the issue. Same build succeeds with normal make.