--- 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
*** Bug 583508 has been marked as a duplicate of this bug. ***
> Steps to Reproduce: > 1.emerge =kde-base/kdelibs-4.14.19::kde > 2. > 3. This ebuild does not exist.
Steps to Reproduce: emerge --sync ebuild `equery which kdelibs` configure -->still got the same error equery which kdelibs -->/home/gtkgfxp/usr/portage/kde-base/kdelibs/kdelibs-4.14.20.ebuild should I fire a new bug on kdelibs-4.14.20, or continue with this one?
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?
(In reply to gtkgfxp from comment #4) > Steps to Reproduce: > emerge --sync > ebuild `equery which kdelibs` configure > -->still got the same error > equery which kdelibs > -->/home/gtkgfxp/usr/portage/kde-base/kdelibs/kdelibs-4.14.20.ebuild > > should I fire a new bug on kdelibs-4.14.20, or continue with this one? No we will continue here.
Created attachment 434732 [details, diff] kdelibs-4.14.20-FindQt4.patch Could you please test the updated FindQt4 patch? (Apply the patch in a local ebuild version instead of kdelibs-4.14.13-FindQt4.patch and drop your seds)
>Could you please test the updated FindQt4 patch? (Apply the patch in a local >ebuild version instead of kdelibs-4.14.13-FindQt4.patch and drop your seds) [1] step1 --- /home/gtkgfxp/gentoo/usr/portage/kde-base/kdelibs/kdelibs-4.14.20.ebuild 2016-05-19 03:56:04.713171799 +0800 +++ /home/gtkgfxp/gentoo/usr/local/portage/kde-base/kdelibs/kdelibs-4.14.20.ebuild 2016-05-20 09:09:59.060040053 +0800 @@ -133,7 +133,7 @@ "${FILESDIR}/${PN}-4.8.1-norpath.patch" "${FILESDIR}/${PN}-4.9.3-werror.patch" "${FILESDIR}/${PN}-4.10.0-udisks.patch" - "${FILESDIR}/${PN}-4.14.13-FindQt4.patch" + "${FILESDIR}/${PN}-4.14.20-FindQt4.patch" ) step 2 rm -rf /home/gtkgfxp/gentoo/var/tmp/portage/kde-base/kdelibs-4.14.20 ebuild /home/gtkgfxp/gentoo/usr/local/portage/kde-base/kdelibs/kdelibs-4.14.20.ebuild configure -->still got the same error [2] $EPREFIX should changed to $ENV{EPREFIX} in kdelibs-4.14.20-FindQt4.patch. according to: ENV Access environment variables. Use the syntax $ENV{VAR} to read environment variable VAR. See also the set() command to set ENV{VAR}. https://cmake.org/cmake/help/v3.0/variable/ENV.html [3] --- /home/gtkgfxp/gentoo/usr/local/portage/kde-base/kdelibs/files/kdelibs-4.14.20-FindQt4.patch.orig 2016-05-20 09:42:55.940005105 +0800 +++ /home/gtkgfxp/gentoo/usr/local/portage/kde-base/kdelibs/files/kdelibs-4.14.20-FindQt4.patch 2016-05-20 09:21:04.460028290 +0800 @@ -20,8 +20,8 @@ +if(CMAKE_BUILD_TYPE STREQUAL Gentoo) + find_program(QT_QMAKE_EXECUTABLE NAMES qmake + PATHS -+ ${EPREFIX}/usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin -+ ${EPREFIX}/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" + ) this one work
Created attachment 434748 [details, diff] this one work this one work
Created attachment 434750 [details] kdelibs-4.14.20.ebuild(using kdelibs-4.14.20-FindQt4.patch)
Created attachment 434752 [details, diff] kdelibs-4.14.20-FindQt4.patch(this one work,use $ENV{EPREFIX} instead)
Thanks, fixed in git. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=940f9abe893ef064fb6617a6242c62305ad75f87
*** Bug 565142 has been marked as a duplicate of this bug. ***