Summary: | >=dev-util/cmake-2.8.8 - (in x11-misc/slim-1.3.3) .../work/slim-1.3.3/Ck.cpp:13:26: fatal error: ck-connector.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Derk W te Bokkel <derk.tebokkel> |
Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | axs, creffett, desktop-misc, nobodydead, shj |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | CMakeCache.txt |
Description
Derk W te Bokkel
2012-05-05 02:28:04 UTC
doing either of copying or symlinking ck-connector.h from /usr/include/ConsoleKit/ck-connector/ck-connector.h up into /usr/include allows slim-1.3.3 to build properly note: slim-1.3.2-r7 does not have this issue The "workaround" is obviously bogus. Now, it depends on what kind of check slim uses for consolekit, but it's most likely a pkg-config issue, so let's start with: what does 'pkg-config ck-connector --cflags' return ? $ pkg-config ck-connector --cflags -I/usr/include/ConsoleKit/ck-connector -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include not knowing how this works .. I added .. $ pkg-config ck-connector.h --cflags Package ck-connector.h was not found in the pkg-config search path. Perhaps you should add the directory containing `ck-connector.h.pc' to the PKG_CONFIG_PATH environment variable No package 'ck-connector.h' found note: above generated after removing " work arounds " Attach CMakeCache.txt from build dir. I wonder if there has been a change in cmake from 2.8.7 to 2.8.8 that breaks handling of pkg-config files somehow, this looks similar to bug 414601 Created attachment 310901 [details]
CMakeCache.txt
as requested
downgraded to dev-util/cmake-2.8.7-r5 then slim-1.3.3 emerges fine so issue caused by .. cmake-2.8.8-r1 .. not ready for prime time :) Both usbmuxd, and slim issues turned out to be cmake-2.8.8 related -> CCing cmake maintainers (kde@gentoo.org) Interesting part of CMakeCache.txt is: CKCONNECTOR_INCLUDE_DIR:PATH=CKCONNECTOR_INCLUDE_DIR-NOTFOUND In regard of this case, the macro is basically: pkg_check_modules(_CKCONNECTOR_PC QUIET ck-connector) FIND_PATH(CKCONNECTOR_INCLUDE_DIR ck-connector.h ${_CKCONNECTOR_PC_INCLUDE_DIRS}) so it does look as if cmake itself got broken, given pkg-config output is correct. I suspect that pkg_check_modules(_CKCONNECTOR_PC QUIET ck-connector) is the culprit here, since both here and in bug 414601 the call to pkg_check_modules seems to be the point of failure. There is a note in the upstream 2.8.8 changelog about " use pkg_check_modules() quiet in other modules", perhaps that silence is hiding something? Will investigate when I have some free time. Actually, it seems that the problem lies in this commit: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=55c3435d88618d7ed935736604e7ab989cef4b28 Is it possible, that find_package_handle_standard_args doesn't set PKG_CONFIG_FOUND here ? Never mind, people. I should have checked commits after release tag. http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3ea850a5023060b84dcc0e6f0098c32c28b15807 will most likely fix the problem. I confirm that the patch Rafal linked to in comment #13 fixes things, slim builds for me after rebuilding cmake with those patches. *** Bug 414681 has been marked as a duplicate of this bug. *** (In reply to comment #14) > I confirm that the patch Rafal linked to in comment #13 fixes things, slim > builds for me after rebuilding cmake with those patches. Excellent, fixed in 2.8.8-r2 *** Bug 414601 has been marked as a duplicate of this bug. *** |