Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583508 - kde-base/kdelibs::gentoo_prefix - CMake Error :The QtWebkit module is required.(caused by wrong path in kdelibs-4.14.19/cmake/modules/FindQt4.cmake?)
Summary: kde-base/kdelibs::gentoo_prefix - CMake Error :The QtWebkit module is require...
Status: RESOLVED DUPLICATE of bug 583506
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-19 16:29 UTC by gtkgfxp
Modified: 2016-05-19 16:56 UTC (History)
0 users

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 gtkgfxp 2016-05-19 16:29:17 UTC
--- a/usr/portage/kde-base/kdelibs/kdelibs-4.14.19.ebuild	2016-04-21 18:26:13.088830841 +0800
+++ b/usr/local/portage/kde-base/kdelibs/kdelibs-4.14.19-r1.ebuild	2016-05-20 00:08:14.629774579 +0800
@@ -150,6 +150,8 @@
 	# Rename applications.menu (needs 01_gentoo_set_xdg_menu_prefix-1.patch to work)
 	sed -e 's|FILES:space:applications.menu|FILES applications.menu RENAME kde-4-applications.menu|g' \
 		-i kded/CMakeLists.txt || die "Sed on CMakeLists.txt for applications.menu failed."
+       sed -i -e  's@      /usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin@      $ENV{EPREFIX}/usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin@' cmake/modules/FindQt4.cmake
+       sed -i -e  's@      /usr/bin@      $ENV{EPREFIX}/usr/bin@' cmake/modules/FindQt4.cmake
 
 	if use aqua; then
 		sed -i -e \

Reproducible: Always

Steps to Reproduce:
1.emerge =kde-base/kdelibs-4.14.19::kde
2.
3.
Actual Results:  
CMake Error at kdewebkit/CMakeLists.txt:6 (message):
  The QtWebkit module is required.
kde-base/kdelibs::gentoo_prefix - CMake Error :The QtWebkit module is required.

-- Configuring incomplete, errors occurred!

 * ERROR: kde-base/kdelibs-4.14.19::kde failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called __call-ebuildshell 'src_configure'
 *     ebuild.sh, line  542:  Called src_configure
 *   environment, line 4152:  Called kde4-base_src_configure
 *   environment, line 3169:  Called cmake-utils_src_configure
 *   environment, line 1282:  Called _cmake_execute_optionally 'src_configure'
 *   environment, line  685:  Called enable_cmake-utils_src_configure
 *   environment, line 1713:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";

Expected Results:  
no cmake error
Comment 1 Johannes Huber (RETIRED) gentoo-dev 2016-05-19 16:33:12 UTC

*** This bug has been marked as a duplicate of bug 583506 ***
Comment 2 gtkgfxp 2016-05-19 16:42:00 UTC
this bug is related to 
Bug 582242 - app-i18n/fcitx-9999::gentoo_prefix - Aborting due to QA concerns: there are files installed outside the prefix (caused by wrong path in FindQt4.cmake?)https://bugs.gentoo.org/show_bug.cgi?id=582242

Bug 582242 : /home/gtkgfxp/gentoo/usr/share/cmake/Modules/FindQt4.cmake
this bug :/home/gtkgfxp/gentoo/var/tmp/portage/kde-base/kdelibs-4.14.19/work/kdelibs-4.14.19/cmake/modules/FindQt4.cmake 
both  FindQt4.cmake has the following lines:
   if(CMAKE_BUILD_TYPE STREQUAL Gentoo)
		 find_program(QT_QMAKE_EXECUTABLE NAMES ${QMAKE_NAME}
		   PATHS
	-        /usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin
	-        /usr/bin
	+        $ENV{EPREFIX}/usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin
	+        $ENV{EPREFIX}/usr/bin
			 NO_DEFAULT_PATH
		   DOC "The qmake executable for the Qt installation to use"
		 )
both should take $ENV{EPREFIX} in concern?
Comment 3 Johannes Huber (RETIRED) gentoo-dev 2016-05-19 16:56:53 UTC
(In reply to gtkgfxp from comment #2)
> this bug is related to 
> Bug 582242 - app-i18n/fcitx-9999::gentoo_prefix - Aborting due to QA
> concerns: there are files installed outside the prefix (caused by wrong path
> in FindQt4.cmake?)https://bugs.gentoo.org/show_bug.cgi?id=582242
> 
> Bug 582242 : /home/gtkgfxp/gentoo/usr/share/cmake/Modules/FindQt4.cmake
> this bug
> :/home/gtkgfxp/gentoo/var/tmp/portage/kde-base/kdelibs-4.14.19/work/kdelibs-
> 4.14.19/cmake/modules/FindQt4.cmake 
> both  FindQt4.cmake has the following lines:
>    if(CMAKE_BUILD_TYPE STREQUAL Gentoo)
> 		 find_program(QT_QMAKE_EXECUTABLE NAMES ${QMAKE_NAME}
> 		   PATHS
> 	-        /usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin
> 	-        /usr/bin
> 	+        $ENV{EPREFIX}/usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin
> 	+        $ENV{EPREFIX}/usr/bin
> 			 NO_DEFAULT_PATH
> 		   DOC "The qmake executable for the Qt installation to use"
> 		 )
> both should take $ENV{EPREFIX} in concern?

Please don't duplicate the issue.

*** This bug has been marked as a duplicate of bug 583506 ***