When trying to test the new qt5 interface of LO, I came upon this error: libreoffice-6.0.9999/workdir/CustomTarget/vcl/qt5/Qt5Instance.moc:13:2:error: #error "This file was generated using the moc from 4.8.7." I have enabled the qt5 use flag and I solved by: >export QT_SELECT=5 I think the ebuild could check in an early phase for this variable, if the qt5 USE flag is used. This way the user will know from the beginning if something is wrong, before the actual compilation takes place. Reproducible: Always Steps to Reproduce: 1.emerge -1 =libreoffice-6.0.9999 Actual Results: Build error : >#error "This file was generated using the moc from 4.8.7." Expected Results: Build LO with the qt5 plugin if qt5 USE flag is set. A simple export of the variable QT_SELECT solves the problem. >export QT_SELECT=5 Actually I don't know if this is the right way to enable it globally, but that's not the point here.
Created attachment 507880 [details] build.log
So this needs fixing. Don't hold your breath though, it is super-early-pre-alpha status, i.e. unusable.
since it's pre-alpha I'll not open another bug, but related to QT libreoffice with USE=qt5 should also depend on dev-qt/qtnetwork
i've compiled it with USE=qt5, but VLC_PLUGIN=qt5 doesn't work anyway
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e814585c08669667797163d74e22717c10e1c554 commit e814585c08669667797163d74e22717c10e1c554 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2018-01-24 11:40:07 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2018-01-24 12:46:40 +0000 app-office/libreoffice: Workaround buildsystem deficit w/ QT_SELECT=5 Bug: https://bugs.gentoo.org/639620 Package-Manager: Portage-2.3.20, Repoman-2.3.6 app-office/libreoffice/libreoffice-9999.ebuild | 1 + 1 file changed, 1 insertion(+)}