games-emulation/dolphin-4.0.2-r6 fails to pass the configure stage, with a seemingly obscure message indicating X11 support to be disabled: >>> Emerging (1 of 1) games-emulation/dolphin-4.0.2-r6::gentoo * dolphin-4.0.2.zip SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking dolphin-4.0.2.zip to /var/tmp/portage/games-emulation/dolphin-4.0.2-r6/work >>> Source unpacked in /var/tmp/portage/games-emulation/dolphin-4.0.2-r6/work >>> Preparing source in /var/tmp/portage/games-emulation/dolphin-4.0.2-r6/work/dolphin-4.0.2 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/games-emulation/dolphin-4.0.2-r6/work/dolphin-4.0.2 ... >>> Working in BUILD_DIR: "/var/tmp/portage/games-emulation/dolphin-4.0.2-r6/work/dolphin-4.0.2_build" cmake --no-warn-unused-cli -C /var/tmp/portage/games-emulation/dolphin-4.0.2-r6/work/dolphin-4.0.2_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DDOLPHIN_WC_REVISION=4.0.2 -DCMAKE_INSTALL_PREFIX=/usr/games -Dprefix=/usr/games -Ddatadir=/usr/share/games/dolphin -Dplugindir=/usr/games/lib64/dolphin -DENCODE_FRAMEDUMPS=ON -DOPENMP=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/games-emulation/dolphin-4.0.2-r6/work/dolphin-4.0.2_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/games-emulation/dolphin-4.0.2-r6/work/dolphin-4.0.2_build/gentoo_toolchain.cmake /var/tmp/portage/games-emulation/dolphin-4.0.2-r6/work/dolphin-4.0.2 Not searching for unused variables given on the command line. loading initial cache file /var/tmp/portage/games-emulation/dolphin-4.0.2-r6/work/dolphin-4.0.2_build/gentoo_common_config.cmake -- The C compiler identification is GNU 4.9.2 -- The CXX compiler identification is GNU 4.9.2 -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- Check for working C compiler: /usr/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/bin/x86_64-pc-linux-gnu-g++ -- Check for working CXX compiler: /usr/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 -- Found Git: /usr/bin/git (found version "2.4.0") x86_64 -- Performing Test FLAG_TYPE_LIMITS -- Performing Test FLAG_TYPE_LIMITS - Success -- Performing Test FLAG_SIGN_COMPARE -- Performing Test FLAG_SIGN_COMPARE - Success -- Performing Test FLAG_IGNORED_QUALIFIERS -- Performing Test FLAG_IGNORED_QUALIFIERS - Success -- Performing Test FLAG_UNINITIALIZED -- Performing Test FLAG_UNINITIALIZED - Success -- Performing Test FLAG_LOGICAL_OP -- Performing Test FLAG_LOGICAL_OP - Success -- Performing Test FLAG_SHADOW -- Performing Test FLAG_SHADOW - Success -- Performing Test FLAG_INIT_SELF -- Performing Test FLAG_INIT_SELF - Success -- Performing Test FLAG_VISIBILITY_INLINES_HIDDEN -- Performing Test FLAG_VISIBILITY_INLINES_HIDDEN - Success -- Performing Test FLAG_VISIBILITY_HIDDEN -- Performing Test FLAG_VISIBILITY_HIDDEN - Success -- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "0.28") -- Found OpenGL: /usr/lib64/libGL.so -- Try OpenMP C flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Try OpenMP CXX flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Found OpenMP: -fopenmp OpenMP parallelization enabled -- Found ALSA: /usr/lib64/libasound.so (found version "1.0.29") ALSA found, enabling ALSA sound backend ao NOT found, disabling ao sound backend bluez NOT found, disabling bluetooth support PulseAudio found, enabling PulseAudio sound backend -- Found OpenAL: /usr/lib64/libopenal.so OpenAL found, enabling OpenAL sound backend -- checking for modules 'wayland-egl;wayland-client;wayland-cursor' -- package 'wayland-egl' not found -- package 'wayland-client' not found -- package 'wayland-cursor' not found Wayland support disabled X11 support disabled CMake Error at CMakeLists.txt:431 (message): No suitable display platform found Requires wayland or x11 to run -- Configuring incomplete, errors occurred! Reproducible: Always As it turns out, the following change in CMake has removed the FindX11 module from the FindOpenGL module: https://public.kitware.com/Bug/print_bug_page.php?bug_id=15268 and http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d051cbda Hence, calling FindX11 in the CMakeLists.txt was all that was required to get the thing to configure properly. Attached is a patch that amends the ebuild and also fixes a slight warning annoyance in FindMiniupnpc.cmake
Created attachment 402430 [details, diff] dolphin-4.0.2-r6.patch
Can I ask what version of CMake you're using?
Seems to affect >=cmake-3.2, can you confirm that's the case for you?
Patch added and will be on the tree shortly. Thank you for the report and supplied patch :)
Yes I have CMake 3.2, and yes, the tree ebuild -r7 works correctly. Thanks!