Bug 387983 - kcoreaddons git commit fbc5881b9 breaks kwin build
Summary: kcoreaddons git commit fbc5881b9 breaks kwin build
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kcoreaddons
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-17 08:17 UTC by Duncan
Modified: 2018-04-07 12:01 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan 2017-12-17 08:17:53 UTC
kcoreaddons commit fbc5881b9 (current head) breaks building kwin.

I'm running gentoo, with most kde packages from live-git using the gentoo/kde overlay.  Today, kwin refused to update, and even pinning to the currently installed commit wouldn't allow it to build due to an automoc error.  I traced it down to kcoreaddons, and bisected there to current head, fbc5881b9.  Using the previous commit, kwin builds fine.

Here's the error from the log:

make[2]: Entering directory
'/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999_build'
AutoMoc: Checking:
/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999/kcmkwin/kwinscripts/main.cpp

AutoMoc error
-------------
 
"/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999/kcmkwin/kwinscripts/main.cpp"
The file contains a K_PLUGIN_FACTORY macro, but does not include "main.moc"!
Consider to
 - add #include "main.moc"
 - enable SKIP_AUTOMOC for this file

AutoMoc: Checking:
/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999/kcmkwin/kwinrules/detectwidget.cpp
AutoMoc: Checking:
/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999/kcmkwin/kwinrules/kcm.cpp
AutoMoc: Checking:
/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999/kcmkwin/kwinrules/kwinsrc.cpp
AutoMoc: Checking:
/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999/kcmkwin/kwinrules/ruleslist.cpp
AutoMoc: Checking:
/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999/kcmkwin/kwinrules/ruleswidget.cpp
AutoMoc: Checking:
/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999/kcmkwin/kwinrules/detectwidget.h
AutoMoc: Checking:
/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999/kcmkwin/kwinrules/kcm.h
AutoMoc: Checking:
/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999/kcmkwin/kwinrules/ruleslist.h
make[2]: ***
[kcmkwin/kwinscripts/CMakeFiles/kcm_kwin_scripts_autogen.dir/build.make:58:
kcmkwin/kwinscripts/CMakeFiles/kcm_kwin_scripts_autogen] Error 1

The full failing kwin build log and additional info can be found in the gentoo bug (opened before I figured out the problem)

https://bugs.gentoo.org/show_bug.cgi?id=641436
Comment 1 Nate Graham 2017-12-17 22:14:12 UTC
What version of CMake are you using?
Comment 2 Andreas Sturmlechner 2017-12-17 22:46:40 UTC
Looking at the according downstream bug, version of cmake is 3.10.1.