Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 595470

Summary: app-office/lyx calls Qt binaries directly
Product: Gentoo Linux Reporter: Michael Palimaka (kensington) <kensington>
Component: Current packagesAssignee: pavel sanda <ps>
Status: RESOLVED FIXED    
Severity: normal CC: aballier, asturm, cjk, proxy-maint, tex
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=621902
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 544108    
Attachments: build.log
lyx-2.2.3-r1.ebuild.diff

Description Michael Palimaka (kensington) gentoo-dev 2016-09-28 21:20:04 UTC
Created attachment 448380 [details]
build.log

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.
Comment 1 pavel sanda 2017-05-16 13:19:36 UTC
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 :(
Comment 2 Andreas Sturmlechner gentoo-dev 2017-07-19 21:04:22 UTC
Created attachment 486002 [details, diff]
lyx-2.2.3-r1.ebuild.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.
Comment 3 pavel sanda 2017-07-19 22:38:22 UTC
> 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.
Comment 4 Andreas Sturmlechner gentoo-dev 2017-07-20 14:09:24 UTC
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.
Comment 5 pavel sanda 2017-07-25 10:21:35 UTC
> 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...