Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557428 - [kde overlay] kde-plasma/kwin-9999 CMAKE_DISABLE_FIND_PACKAGE_Wayland is enabled. A REQUIRED package cannot be disabled. Make Wayland a hard build time dependency
Summary: [kde overlay] kde-plasma/kwin-9999 CMAKE_DISABLE_FIND_PACKAGE_Wayland is enab...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: http://quickgit.kde.org/?p=kwin.git&a...
Whiteboard:
Keywords:
: 604544 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-08-13 09:11 UTC by jospezial
Modified: 2017-01-03 20:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2015-08-13 09:11:29 UTC
CMake Error at CMakeLists.txt:114 (find_package):
  find_package for module KF5Wayland called with REQUIRED, but
  CMAKE_DISABLE_FIND_PACKAGE_KF5Wayland is enabled.  A REQUIRED package
  cannot be disabled.


-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "0.28") 
-- Found EGL: /usr/lib64/libEGL.so (found version "1.4") 
-- Found epoxy: /usr/lib64/libepoxy.so  
CMake Error at CMakeLists.txt:132 (find_package):
  find_package for module Wayland called with REQUIRED, but
  CMAKE_DISABLE_FIND_PACKAGE_Wayland is enabled.  A REQUIRED package cannot
  be disabled.


-- Found XKB: /usr/lib64/libxkbcommon.so (found suitable version "0.5.0", minimum required is "0.4.1") 
-- Found Libdrm: /usr/lib64/libdrm.so (found version "2.4.62") 
-- Found gbm: /usr/lib64/libgbm.so (found version "10.6.3") 
-- Could NOT find libhardware (missing:  libhardware_LIBRARY libhardware_INCLUDE_DIR) 
-- Could NOT find libhwcomposer (missing:  libhwcomposer_LIBRARY libhwcomposer_INCLUDE_DIR) 
-- Could NOT find hybriseglplatform (missing:  hybriseglplatform_LIBRARY hybriseglplatform_INCLUDE_DIR) 
-- Could NOT find hybrissync (missing:  hybrissync_LIBRARY) 
-- Could NOT find hybrisinputstack (missing:  hybrisinputstack_LIBRARY) 
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found XCB_XCB: /usr/lib64/libxcb.so (found version "1.11") 
-- Found XCB_RENDER: /usr/lib64/libxcb-render.so (found version "1.11") 
-- Found XCB_SHAPE: /usr/lib64/libxcb-shape.so (found version "1.11") 
-- Found XCB_XFIXES: /usr/lib64/libxcb-xfixes.so (found version "1.11") 
-- Found XCB_SHM: /usr/lib64/libxcb-shm.so (found version "1.11") 
-- Found XCB_COMPOSITE: /usr/lib64/libxcb-composite.so (found version "1.11") 
-- Found XCB_CURSOR: /usr/lib64/libxcb-cursor.so (found version "0.1.2") 
-- Found XCB_DAMAGE: /usr/lib64/libxcb-damage.so (found version "1.11") 
-- Found XCB_GLX: /usr/lib64/libxcb-glx.so (found version "1.11") 
-- Found XCB_ICCCM: /usr/lib64/libxcb-icccm.so (found version "0.4.1") 
-- Found XCB_IMAGE: /usr/lib64/libxcb-image.so (found version "0.4.0") 
-- Found XCB_KEYSYMS: /usr/lib64/libxcb-keysyms.so (found version "0.4.0") 
-- Found XCB_RANDR: /usr/lib64/libxcb-randr.so (found version "1.11") 
-- Found XCB_SYNC: /usr/lib64/libxcb-sync.so (found version "1.11") 
-- Found XCB: /usr/lib64/libxcb.so;/usr/lib64/libxcb-render.so;/usr/lib64/libxcb-shape.so;/usr/lib64/libxcb-xfixes.so;/usr/lib64/libxcb-shm.so;/usr/lib64/libxcb-composite.so;/usr/lib64/libxcb-cursor.so;/usr/lib64/libxcb-damage.so;/usr/lib64/libxcb-glx.so;/usr/lib64/libxcb-icccm.so;/usr/lib64/libxcb-image.so;/usr/lib64/libxcb-keysyms.so;/usr/lib64/libxcb-randr.so;/usr/lib64/libxcb-sync.so (found suitable version "1.11", minimum required is "1.10") found components:  XCB XFIXES DAMAGE COMPOSITE SHAPE SYNC RENDER RANDR KEYSYMS IMAGE SHM GLX CURSOR ICCCM 
-- Found X11_XCB: /usr/lib64/libX11-xcb.so (found version "1.6.3") 
Building KWin with OpenGL support
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - found
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- 
-- The following features have been enabled:

 * Qt5Test (required version >= 5.4.0) , Required for building tests
   Required for tests
 * KF5Activities (required version >= 5.12.0) , Enable building of KWin with kactivities support
   Enable building of KWin with kactivities support
 * KF5DocTools (required version >= 5.12.0) , Enable building documentation
   Enable building documentation
 * XCB-ICCCM , Required for building test applications for KWin

-- The following RUNTIME packages have been found:

 * Qt5Multimedia
   Runtime-only dependency for effect video playback

-- The following OPTIONAL packages have been found:

 * Qt5Test (required version >= 5.4.0) , Required for building tests
   Required for tests
 * KF5Activities (required version >= 5.12.0) , Enable building of KWin with kactivities support
   Enable building of KWin with kactivities support
 * KF5DocTools (required version >= 5.12.0) , Enable building documentation
   Enable building documentation
 * EGL , A platform-agnostic mechanism for creating rendering surfaces for use with other graphics libraries, such as OpenGL|ES and OpenVG. , <https://www.khronos.org/egl/>
   Required to build KWin with EGL support
 * Libdrm , Userspace interface to kernel DRM services. , <https://wiki.freedesktop.org/dri/>
   Required for drm output on Wayland.
 * gbm , Mesa gbm library. , <http://www.mesa3d.org>
   Required for egl ouput of drm backend.
 * PkgConfig
 * X11_XCB , A compatibility library for code that translates Xlib API calls into XCB calls , <http://xorg.freedesktop.org/>
   Required for building X11 windowed backend of kwin_wayland

-- The following REQUIRED packages have been found:

 * Qt5Concurrent
 * Qt5DBus
 * Qt5Network (required version >= 5.6.0)
 * Qt5Qml (required version >= 5.6.0)
 * Qt5Gui (required version >= 5.6.0)
 * Qt5Quick
 * Qt5QuickWidgets
 * Qt5Script
 * Qt5UiPlugin (required version >= 5.6.0)
 * Qt5UiTools
 * Qt5Widgets
 * Qt5X11Extras
 * Qt5 (required version >= 5.4.0)
 * KF5Config (required version >= 5.12.0)
 * KF5ConfigWidgets (required version >= 5.12.0)
 * KF5CoreAddons (required version >= 5.12.0)
 * KF5Crash (required version >= 5.12.0)
 * KF5GlobalAccel (required version >= 5.12.0)
 * Gettext
 * PythonInterp
 * KF5I18n (required version >= 5.12.0)
 * KF5Init (required version >= 5.12.0)
 * KF5Notifications (required version >= 5.12.0)
 * KF5Package (required version >= 5.12.0)
 * ECM (required version >= 0.0.9)
 * Qt5Core
 * KF5Plasma (required version >= 5.12.0)
 * KF5WidgetsAddons (required version >= 5.12.0)
 * KF5WindowSystem (required version >= 5.12.0)
 * KF5IconThemes (required version >= 5.12.0)
 * KF5Completion (required version >= 5.12.0)
 * KF5Declarative (required version >= 5.12.0)
 * KF5KCMUtils (required version >= 5.12.0)
 * KF5KIO (required version >= 5.12.0)
 * KF5NewStuff (required version >= 5.12.0)
 * KF5Service (required version >= 5.12.0)
 * KF5XmlGui (required version >= 5.12.0)
 * KF5 (required version >= 5.12.0)
 * Threads
   Needed for VirtualTerminal support in KWin Wayland
 * KDecoration2
 * epoxy , libepoxy , <http://github.com/anholt/libepoxy>
   OpenGL dispatch library
 * XKB (required version >= 0.4.1) , XKB API common to servers and clients. , <http://xkbcommon.org>
   Required for building KWin with Wayland support
 * X11 , X11 libraries , <http://www.x.org>
 * XCB (required version >= 1.10) , X protocol C-language Binding , <http://xcb.freedesktop.org>

-- The following OPTIONAL packages have not been found:

 * libhybris , libhybris allows to run bionic-based HW adaptations in glibc systems. , <https://github.com/libhybris/libhybris>
   Required for libhybris backend
Comment 1 jospezial 2015-08-13 09:13:17 UTC
from http://quickgit.kde.org/?p=kwin.git&a=commit&h=0b8f2d4a34a57ddcb47a41685a395db7a5d0b76e

Make Wayland a hard build time dependency

As discussed on release-team ml [1] the following dependencies are
mandatory:
* KF5Wayland
* Wayland::Cursor
* Wayland::Egl
* xkbcommon

[1] https://mail.kde.org/pipermail/release-team/2015-July/008725.html
Comment 2 Michael Palimaka (kensington) gentoo-dev 2015-08-13 14:14:37 UTC
Thanks, fixed in git.

https://gitweb.gentoo.org/proj/kde.git/commit/?id=b0ba1ce3402787ea736d87373315b09c53fa64e6
Comment 3 jospezial 2015-08-13 15:03:01 UTC
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   *] kde-plasma/kwin-9999:5::kde  USE="-debug -gles2 -handbook {-test} (-wayland%)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Running pre-merge checks for kde-plasma/kwin-9999
>>> Emerging (1 of 1) kde-plasma/kwin-9999::kde
>>> Failed to emerge kde-plasma/kwin-9999, Log file:
>>>  '/var/tmp/portage/kde-plasma/kwin-9999/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 1.62, 2.19, 1.72
 * Package:    kde-plasma/kwin-9999
 * Repository: kde
 * Maintainer: kde@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   ccache preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
 * Fetching git://anongit.kde.org/kwin ...
git fetch git://anongit.kde.org/kwin +HEAD:refs/git-r3/HEAD
git symbolic-ref refs/git-r3/kde-plasma/kwin/5/__main__ refs/heads/master
 * Checking out git://anongit.kde.org/kwin to /var/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999 ...
git checkout --quiet master
GIT update -->
   repository:               git://anongit.kde.org/kwin
   at the commit:            5d946e37629b56be5b57931c1a3f0463dc8bd913
>>> Source unpacked in /var/tmp/portage/kde-plasma/kwin-9999/work
>>> Preparing source in /var/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999_build/gentoo_toolchain.cmake  /var/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 5.2.0
-- Check for working C compiler: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Found KF5Config: /usr/lib64/cmake/KF5Config/KF5ConfigConfig.cmake (found version "5.14.0") 
-- Found KF5ConfigWidgets: /usr/lib64/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake (found version "5.14.0") 
-- Found KF5CoreAddons: /usr/lib64/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.14.0") 
-- Found KF5Crash: /usr/lib64/cmake/KF5Crash/KF5CrashConfig.cmake (found version "5.14.0") 
-- Found KF5GlobalAccel: /usr/lib64/cmake/KF5GlobalAccel/KF5GlobalAccelConfig.cmake (found version "5.14.0") 
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.5.1") 
-- Found PythonInterp: /usr/bin/python (found version "3.4.3") 
-- Found KF5I18n: /usr/lib64/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.14.0") 
-- Found KF5Init: /usr/lib64/cmake/KF5Init/KF5InitConfig.cmake (found version "5.14.0") 
-- Found KF5Notifications: /usr/lib64/cmake/KF5Notifications/KF5NotificationsConfig.cmake (found version "5.14.0") 
-- Found KF5Package: /usr/lib64/cmake/KF5Package/KF5PackageConfig.cmake (found version "5.14.0") 
-- Found KF5Plasma: /usr/lib64/cmake/KF5Plasma/KF5PlasmaConfig.cmake (found version "5.14.0") 
-- Found KF5WidgetsAddons: /usr/lib64/cmake/KF5WidgetsAddons/KF5WidgetsAddonsConfig.cmake (found version "5.14.0") 
-- Found KF5WindowSystem: /usr/lib64/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake (found version "5.14.0") 
-- Found KF5IconThemes: /usr/lib64/cmake/KF5IconThemes/KF5IconThemesConfig.cmake (found version "5.14.0") 
-- Found KF5: success (found suitable version "5.14.0", minimum required is "5.12.0") found components:  Config ConfigWidgets CoreAddons Crash GlobalAccel I18n Init Notifications Package Plasma WidgetsAddons WindowSystem IconThemes 
-- Found KF5Completion: /usr/lib64/cmake/KF5Completion/KF5CompletionConfig.cmake (found version "5.14.0") 
-- Found KF5Declarative: /usr/lib64/cmake/KF5Declarative/KF5DeclarativeConfig.cmake (found version "5.14.0") 
-- Found KF5KCMUtils: /usr/lib64/cmake/KF5KCMUtils/KF5KCMUtilsConfig.cmake (found version "5.14.0") 
-- Found KF5KIO: /usr/lib64/cmake/KF5KIO/KF5KIOConfig.cmake (found version "5.14.0") 
-- Found KF5NewStuff: /usr/lib64/cmake/KF5NewStuff/KF5NewStuffConfig.cmake (found version "5.14.0") 
-- Found KF5Service: /usr/lib64/cmake/KF5Service/KF5ServiceConfig.cmake (found version "5.14.0") 
-- Found KF5XmlGui: /usr/lib64/cmake/KF5XmlGui/KF5XmlGuiConfig.cmake (found version "5.14.0") 
-- Found KF5: success (found suitable version "5.14.0", minimum required is "5.12.0") found components:  Completion Declarative KCMUtils KIO NewStuff Service XmlGui 
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "0.28") 
-- Found EGL: /usr/lib64/libEGL.so (found version "1.4") 
-- Found epoxy: /usr/lib64/libepoxy.so  
-- Wayland: Egl requires Client
-- Found Wayland_Client: /usr/lib64/libwayland-client.so (found version "1.7.0") 
-- Found Wayland_Cursor: /usr/lib64/libwayland-cursor.so (found version "1.7.0") 
-- Could NOT find Wayland_Egl (missing:  Wayland_Egl_LIBRARY) 
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find Wayland (missing: Egl) (found suitable version "1.7.0",
  minimum required is "1.2")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/ECM/find-modules/FindWayland.cmake:129 (find_package_handle_standard_args)
  CMakeLists.txt:132 (find_package)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/kde-plasma/kwin-9999/work/kwin-9999_build/CMakeFiles/CMakeError.log".
 * ERROR: kde-plasma/kwin-9999::kde failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 4187:  Called kde5_src_configure
 *   environment, line 3219:  Called cmake-utils_src_configure
 *   environment, line 1250:  Called _execute_optionally 'src_configure'
 *   environment, line  561:  Called enable_cmake-utils_src_configure
 *   environment, line 1582:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 


=================================================================
                        Package Settings
=================================================================

dev-libs/wayland-1.7.0::gentoo was built with the following:
USE="-doc -static-libs" ABI_X86="32 64 -x32"

the following dependencies are
mandatory:
* KF5Wayland
* Wayland::Cursor
* Wayland::Egl
* xkbcommon
Comment 4 Michael Palimaka (kensington) gentoo-dev 2015-08-13 15:09:58 UTC
Try with mesa[egl] and/or qtwayland[egl] ?
Comment 5 jospezial 2015-08-13 15:41:27 UTC
As you can see egl is enabled on that packages:

=================================================================
                        Package Settings
=================================================================

dev-qt/qtwayland-5.9999::qt was built with the following:
USE="egl qml xcomposite -debug -test -wayland-compositor" ABI_X86="64"


media-libs/mesa-10.6.3::gentoo was built with the following:
USE="classic d3d9 dri3 egl gallium gbm llvm nptl opencl openmax udev vaapi vdpau xa xvmc -bindist -debug -gles1 -gles2 -osmesa -pax_kernel -pic (-selinux) -wayland" ABI_X86="32 64 -x32" VIDEO_CARDS="r100 r200 r300 r600 radeon -freedreno -i915 -i965 -ilo -intel -nouveau -radeonsi -vmware"

But mesa has wayland disabled. Will try with wayland enabled mesa.
Comment 6 jospezial 2015-08-13 19:42:54 UTC
-- Found EGL: /usr/lib64/libEGL.so (found version "1.4") 
-- Found epoxy: /usr/lib64/libepoxy.so  
-- Wayland: Egl requires Client
-- Found Wayland_Client: /usr/lib64/libwayland-client.so (found version "1.7.0") 
-- Found Wayland_Cursor: /usr/lib64/libwayland-cursor.so (found version "1.7.0") 
-- Found Wayland_Egl: /usr/lib64/libwayland-egl.so (found version "10.6.3") 
-- Found Wayland: /usr/lib64/libwayland-client.so;/usr/lib64/libwayland-cursor.so;/usr/lib64/libwayland-egl.so (found suitable version "1.7.0", minimum required is "1.2") found components:  Egl Cursor 

That was it!
kwin needs a dep to mesa[egl wayland]

kde-plasma/kwin-9999 was emerged now.
Comment 7 Johannes Huber (RETIRED) gentoo-dev 2015-08-13 22:04:18 UTC
Thanks for testing. This should be fixed in git now. Please sync.

https://gitweb.gentoo.org/proj/kde.git/commit/?id=4d979118ba408652532d50fcde1d876fd1642ddc
Comment 8 Johannes Huber (RETIRED) gentoo-dev 2017-01-03 20:08:59 UTC
*** Bug 604544 has been marked as a duplicate of this bug. ***