Created attachment 448380 [details]
Qt binaries are called eg. via /usr/bin/moc which is a symlink to qtchooser, and could point to either qt4 or qt5.
This could be resolved by inheriting qmake-utils and configuring with --with-qt-dir="$(qt4_get_libdir)" or --with-qt-dir="$(qt5_get_libdir)" as appropriate.
IIRC people reported success of compilation with qt5 after we initially patched ebuild to support qt5 as well so this is probably something specific - eg you have qt4 installed while choosing qt5 in lyx useflags?
In any case I can't upgrade to qt5 on my machine any time soon so my ways to help to check and fix this bug is pretty limited. Sorry for that :(
Created attachment 486002 [details, diff]
app-office/lyx: Drop USE=qt4 and REQUIRED_USE, bump EAPI 6, fix DEPENDs
* Add missing dependencies: sys-apps/file, sys-libs/zlib
* Drop COMMONDEPEND and move to (R)DEPENDs accordingly
* Cleanup indentation
* Switch HOMEPAGE to https
* Sort IUSE
* Sort RDEPENDs
* Fix Qt paths
Builds fine for me with qt5 and -qt5. Pavel, please review.
Please let's also make this the last version providing Qt4 build option.
> Pavel, please review.
All changes looks good. It also compiles fine on my machine so please commit your changes. Thanks Andreas.
> Please let's also make this the last version providing Qt4 build option.
Possible, but then need to find new lyx maintainer, my only left machine with gentoo is ooold and stuck at qt4 indefinitely.
Thanks, I've pushed it in commit 66bba0ef4c6de40cb282cd51e2e0979ba8ec40ed.
(In reply to pavel sanda from comment #3)
> > Please let's also make this the last version providing Qt4 build option.
> Possible, but then need to find new lyx maintainer, my only left machine
> with gentoo is ooold and stuck at qt4 indefinitely.
I'm wondering, what's the reason for this? I've got old systems as well and Qt5 is no problem. Also just fine using Qt4 and Qt5 side-by-side.
> I'm wondering, what's the reason for this?
Old hardware -> old drivers (new broken for my setup) -> old X libraries -> Qt bumps newer deps on X. The machine as a whole becomes slowly unupdateable and its so old that there is no sense to spent any major time on it. I am sorry...