Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 514950 - [qt overlay] kde-base/kdelibs and kde-misc/kwebkitpart dev-qt/qt-4.8.6 - CMake Error at cmake/modules/FindQt4.cmake:1239 (MESSAGE): Qt qmake not found!
Summary: [qt overlay] kde-base/kdelibs and kde-misc/kwebkitpart dev-qt/qt-4.8.6 - CMak...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: InOverlay, PMASKED
Depends on: 519266
Blocks: 510042
  Show dependency tree
 
Reported: 2014-06-24 17:35 UTC by Andrés Becerra Sandoval
Modified: 2014-11-07 21:41 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,5.48 KB, text/plain)
2014-06-24 17:37 UTC, Andrés Becerra Sandoval
Details
environment (environment,148.39 KB, text/plain)
2014-06-24 17:37 UTC, Andrés Becerra Sandoval
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrés Becerra Sandoval 2014-06-24 17:35:54 UTC
I am trying to test qt-4.8.6 from qt overlay. After building parts of it, portage tells me that I have to rebuild kdelibs and kwebkitpart.

In both packages qmake can't be found by the ebuilds. This is the output I get trying to rebuild kdelibs-4.13.2:


loading initial cache file /var/tmp/portage/kde-base/kdelibs-4.13.2-r1/work/kdelibs-4.13.2_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.8.3
-- The CXX compiler identification is GNU 4.8.3
-- 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
-- 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
CMake Error at cmake/modules/FindQt4.cmake:1239 (MESSAGE):
  Qt qmake not found!
Call Stack (most recent call first):
  cmake/modules/FindKDE4Internal.cmake:420 (find_package)
  CMakeLists.txt:56 (find_package)
Comment 1 Andrés Becerra Sandoval 2014-06-24 17:37:26 UTC
Created attachment 379608 [details]
build.log
Comment 2 Andrés Becerra Sandoval 2014-06-24 17:37:41 UTC
Created attachment 379610 [details]
environment
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2014-06-24 18:03:45 UTC
We appreciate your testing effort, however I suggest you to stop right now. There's a reason why qt-4.8.6 is masked, and that is because the transition to /usr/lib/qt4/bin is still unfinished, and therefore 99% of the reverse deps won't build. You can resume testing the rest of the tree when qt-4.8.6 is unmasked. Thanks for your help so far.
Comment 4 Andrés Becerra Sandoval 2014-06-27 16:43:25 UTC
Thank you Davide, I didn't think the transition is that difficult!
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2014-10-26 14:48:02 UTC
This should be fixed for now, by defaulting qtchooser (which now installs /usr/bin/qmake) to qt4. However we should change cmake modules to look for qmake in /usr/lib/qt4/bin/qmake.
Comment 6 Paweł Stankowski 2014-11-02 02:14:45 UTC
For FindQt4.cmake it would be enough if there was '/usr/bin/qmake-qt4' symlink - it would be used automatically and '/usr/bin/qmake' would be ignored if it wasn't qt4 version.

For FindQt.cmake, following patch may be used:

--- FindQt.cmake	2014-01-16 18:15:08.000000000 +0100
+++ FindQt_new.cmake	2014-11-02 04:13:34.994870521 +0100
@@ -102,6 +102,7 @@
   /usr/local/include/Qt
   /usr/lib/qt/include/Qt
   /usr/include/Qt
+  /usr/include/qt4/Qt
   /usr/share/qt4/include/Qt
   /usr/local/include/X11/qt4/Qt
   C:/Progra~1/qt/include/Qt )