From the build log: checking for Qt4 headers... /usr/include/qt4 checking for qmake-qt4... no checking for qmake... /usr/bin/qmake checking for Qt4 libraries... /usr/lib/qt4 checking for moc-qt4... no checking for moc... /usr/bin/moc checking for KDE4 headers... /usr/include checking for KDE4 libraries... /usr/lib checking for QT4... yes checking whether KDE is >= 4.2... yes checking for KDE_GLIB... yes $ qtchooser -print-env QT_SELECT="default" QTTOOLDIR="/usr/lib64/qt5/bin" QTLIBDIR="/usr/lib64" $ /usr/bin/qmake -v QMake version 3.0 Using Qt version 5.6.2 in /usr/lib64 $ /usr/bin/moc -v moc 5.6.2 Result is a failed build with 152 errors like this: [CXX] vcl/unx/kde4/KDESalDisplay.cxx In file included from /var/tmp/portage/app-office/libreoffice-5.2.3.3/work/libreoffice-5.2.3.3/vcl/unx/kde4/KDE4FilePicker.cxx:824:0: /var/tmp/portage/app-office/libreoffice-5.2.3.3/work/libreoffice-5.2.3.3/workdir/CustomTarget/vcl/unx/kde4/KDE4FilePicker.moc:15:2: error: #error "This file was generated using the moc from 5.6.2. It" #error "This file was generated using the moc from 5.6.2. It" ^ /var/tmp/portage/app-office/libreoffice-5.2.3.3/work/libreoffice-5.2.3.3/workdir/CustomTarget/vcl/unx/kde4/KDE4FilePicker.moc:16:2: error: #error "cannot be used with the include files from this version of Qt." #error "cannot be used with the include files from this version of Qt." ^ /var/tmp/portage/app-office/libreoffice-5.2.3.3/work/libreoffice-5.2.3.3/workdir/CustomTarget/vcl/unx/kde4/KDE4FilePicker.moc:17:2: error: #error "(The moc has changed too much.)" #error "(The moc has changed too much.)" ^ Reproducible: Always This also happened with a rebuild of app-office/libreoffice-5.2.2.2 but then I didn't have time to look into it and just emerged with -kde. Setting QT_SELECT=qt4 for the emerge seems to be sufficient for successful build with +kde, but that attempt is still emerging here.
Created attachment 452548 [details] emerge --info app-office/libreoffice
Created attachment 452550 [details] Build log
Should be fixed now. commit fe6e536c6a5c4ac3c49ca11f475eb065aa1be2f2 Author: Andreas K. Hüttel <dilfridge@gentoo.org> Date: Sun Nov 13 01:15:31 2016 +0100 app-office/libreoffice: Force Qt4 moc and qmake, bug 599076 Package-Manager: portage-2.3.2 app-office/libreoffice/libreoffice-5.2.3.3.ebuild | 8 +++++++- app-office/libreoffice/libreoffice-5.2.9999.ebuild | 8 +++++++- app-office/libreoffice/libreoffice-9999.ebuild | 8 +++++++- 3 files changed, 21 insertions(+), 3 deletions(-)
(In reply to Andreas K. Hüttel from comment #3) > Should be fixed now. > > commit fe6e536c6a5c4ac3c49ca11f475eb065aa1be2f2 It is, thanks. checking for Qt4 headers... /usr/include/qt4 checking for qmake-qt4... /usr/lib64/qt4/bin/qmake checking for Qt4 libraries... /usr/lib64/qt4 checking for moc-qt4... /usr/lib64/qt4/bin/moc checking for KDE4 headers... /usr/include checking for KDE4 libraries... /usr/lib checking for QT4... yes checking whether KDE is >= 4.2... yes checking for KDE_GLIB... yes