Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498060 - [qt overlay] dev-qt/qtgui-5.2.0 should unconditionally depend on x11-libs/libxkbcommon
Summary: [qt overlay] dev-qt/qtgui-5.2.0 should unconditionally depend on x11-libs/lib...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-14 11:57 UTC by Sven Eden
Modified: 2014-05-14 02:34 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Eden 2014-01-14 11:57:23 UTC
To test mesa-10.0.2 I had to rebuild qtgui-5.2.0 with USE="-xcb".
Then an 'emerge --depclean' removed libxkbcommon, which resulted in a report that @preserved-rebuild should be used to re-emerge qtgui-5.2.0.

This failed with the following error:

/home/portage/dev-qt/qtgui-5.2.0/work/qtbase-opensource-src-5.2.0/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp:52:33: fatal error: xkbcommon/xkbcommon.h: No such file or directory
 #include <xkbcommon/xkbcommon.h>

Looking into the ebuild, I saw that the dependency
>=x11-libs/libxkbcommon-0.2.0
is only included if USE="xcb" is set, it should be a non-conditional dependency instead.

AFAIK libxkb has nothing to do with xcb (X C-language Bindings) anyway, has it?

Reproducible: Always

Steps to Reproduce:
1. Unmerge x11-libs/libxkbcommon
2. Emerge dev-qt/qtgui-5.2.0 with USE="-xcb"

Actual Results:  
Build fails, because qtgui no longer pulls in libxkbcommon while it is mandatory.

Expected Results:  
qtgui should pull in libxkbcommon as a dependency.
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2014-01-14 18:01:50 UTC
Yeah I guess you're right. The platforminputcontexts plugins were added later, and I probably didn't notice the dependency.
Comment 2 Wes 2014-03-24 23:20:15 UTC
I hit this one today as well, using qtgui-5.2.1 with -xcb.  I had to build with -xcb due to a problem with xcb + cairo + nxagent causing nxagent to segfault.  qtgui-5.2.1 compile failed with missing xkbcommon/xkbcommon.h.  emerging libxkbcommon allowed qtgui to build successfully.
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2014-05-14 01:01:47 UTC
Actually, no. It's the compose plugin that should NOT be built unconditionally, but only if USE=xcb is enabled.
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2014-05-14 02:34:08 UTC
Should be fixed in git for 5.3.0_rc