Bug 231576

Summary: kdebase-workspace fails to compile, incorrect CMakeLists.txt
Product: [Developer tools] buildsystem Reporter: Alexey Chernov <4ernov>
Component: KDE4 (cmake)Assignee: Alexander Neundorf <neundorf>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: config file with commented check section

Description Alexey Chernov 2010-03-21 20:02:57 UTC
Version:            (using KDE 4.4.1)
Compiler:          GCC 4.4.3 Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.4.3/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,fortran --disable-multilib --disable-bootstrap Thread model: posix
OS:                Linux
Installed from:    Compiled From Sources

kdebase-workspace source package fails to compile because CMake incorrectly recognizes necessary requirement on XInput library. It fails to find XInput library of required version 1.2.0 or later though it's installed and prints to the output the following message:
"_XiGetDevicePresenceNotifyEvent is not found, libXi version 1.2.0 or later is required to keep layouts with keyboard hotplugging"
Everything configures OK but build fails with linker error.
If to comment out the following strings in kdebase-workspace/kcontrol/kxkb/CMakeLists.txt (line 60 to 64):

if( X11_Xinput_FOUND AND XiGetDevicePresenceNotifyEvent_EXISTS )
    set(XiGetDevicePresence_FOUND 1)
else( X11_Xinput_FOUND AND XiGetDevicePresenceNotifyEvent_EXISTS )
    MESSAGE(STATUS "_XiGetDevicePresenceNotifyEvent is not found, libXi version 1.2.0 or later is required to keep layouts with keyboard hotplugging")
endif( X11_Xinput_FOUND AND XiGetDevicePresenceNotifyEvent_EXISTS )

and add

set(XiGetDevicePresence_FOUND HAVE_XINPUT 1)

everything configures ok and builds ok with no one problem.

Maybe this caused by the fact that I compiled Xserver without HAL support. But as it works ok without this check I think it should be fixed or make optional.
Comment 1 Alexey Chernov 2010-03-21 20:07:05 UTC
Created attachment 41813 [details]
config file with commented check section
Comment 2 Alexey Chernov 2010-04-25 14:41:25 UTC
Well, and will there be any responce on this bug? It still exists in 4.4.2 and it completely ruins the compilation of the whole KDE actually.
Comment 3 Alexey Chernov 2010-11-04 00:24:05 UTC
Not reproducible for 4.5 branch.