Bug 5116

Summary: missing qt4-x11-free dependency on gtk
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Peter A. Bigot <pab>
Component: graphicsAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bluelightning, jessica.zhang, meta.mr.watcher, meta.watcher
Version: 1.5   
Target Milestone: 1.5 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Peter A. Bigot 2013-09-04 11:18:04 UTC
As discussed here: http://lists.openembedded.org/pipermail/openembedded-core/2013-August/083489.html

qt4-x11-free may or may not introduce a dependency on gtk+; this is non-deterministic on whether gtk+ had been populated prior to qt4's configure deciding whether to apply -gtkstyle or -no-gtkstyle to the configuration.

A proper fix involves porting something like PACKAGECONFIG to this recipe (which does not use oemake). For 1.5 a suitable workaround may be adding either -gtkstyle (with DEPENDS += gtk+) or -no-gtkstyle to the QT_X11_FLAGS.  As I can't guess which solution would be preferred I have to leave this to the maintainers.
Comment 1 Paul Eggleton 2013-09-20 13:04:39 UTC
I've just sent a patch that simply disables this. Ultimately I decided against introducing PACKAGECONFIG just for this, because the Qt recipes currently avoid it (PACKAGECONFIG cannot support a number of the additional library options for Qt since they are tri-state). Users who do want QGTKStyle can just set QT_X11_FLAGS as desired.