Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639620 - =app-office/libreoffice-9999[kde]: #error "This file was generated using the moc from 4.8.7
Summary: =app-office/libreoffice-9999[kde]: #error "This file was generated using the ...
Status: RESOLVED OBSOLETE
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: 2017-12-03 12:23 UTC by Petross404(Petros S)
Modified: 2020-07-02 14:13 UTC (History)
3 users (show)

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


Attachments
build.log (app-office:libreoffice-6.0.9999:20171203-102308.log.tar.bz2,284.73 KB, application/x-bzip)
2017-12-03 13:57 UTC, Petross404(Petros S)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petross404(Petros S) 2017-12-03 12:23:29 UTC
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.
Comment 1 Petross404(Petros S) 2017-12-03 13:57:44 UTC
Created attachment 507880 [details]
build.log
Comment 2 Andreas Sturmlechner gentoo-dev 2017-12-05 22:48:20 UTC
So this needs fixing. Don't hold your breath though, it is super-early-pre-alpha status, i.e. unusable.
Comment 3 Francesco Riosa 2017-12-13 21:48:31 UTC
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
Comment 4 Perfect Gentleman 2017-12-20 17:31:43 UTC
i've compiled it with USE=qt5, but VLC_PLUGIN=qt5 doesn't work anyway
Comment 5 Larry the Git Cow gentoo-dev 2018-01-24 12:46:54 UTC
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(+)}