Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 599076 - app-office/libreoffice-5.2.3.3[kde]: Fails to compile when qtchooser defaults to qt5
Summary: app-office/libreoffice-5.2.3.3[kde]: Fails to compile when qtchooser defaults...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: qtbindir
  Show dependency tree
 
Reported: 2016-11-06 19:26 UTC by Jouni Kosonen
Modified: 2016-11-13 01:29 UTC (History)
1 user (show)

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


Attachments
emerge --info app-office/libreoffice (emergeinfo.txt,8.20 KB, text/plain)
2016-11-06 19:28 UTC, Jouni Kosonen
Details
Build log (build.log.bz2,294.33 KB, application/x-bzip2)
2016-11-06 19:29 UTC, Jouni Kosonen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jouni Kosonen 2016-11-06 19:26:13 UTC
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.
Comment 1 Jouni Kosonen 2016-11-06 19:28:57 UTC
Created attachment 452548 [details]
emerge --info app-office/libreoffice
Comment 2 Jouni Kosonen 2016-11-06 19:29:49 UTC
Created attachment 452550 [details]
Build log
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2016-11-13 00:16:41 UTC
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(-)
Comment 4 Jouni Kosonen 2016-11-13 01:29:02 UTC
(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