Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519266 - [qt overlay] dev-qt/qtcore: install qtchooser profiles
Summary: [qt overlay] dev-qt/qtcore: install qtchooser profiles
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 510042 514950 522646
  Show dependency tree
 
Reported: 2014-08-06 23:06 UTC by Duncan
Modified: 2014-10-26 14:48 UTC (History)
0 users

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 Duncan 2014-08-06 23:06:20 UTC
With qt 4.8.6 and qt5 headed for the tree at some point, along with their dependence on qtchooser, I'm guessing some package (qtcore?) in each will eventually setup a somewhat standard qtchooser profile, and that most likely, the qt eclasses will automatically set QT_SELECT to select the appropriate profile based on dependencies for packages inheriting the appropriate eclass.

I'm beginning to experiment with at least qt 4.8.6 from the overlay (and tried qt5/plasma5 for a bit, but decided it was too early for that yet so unmerged right away), but of course those assumed profiles aren't setup yet so I'm having to manually setup my own.

What format are these gentoo/qt standard qtchooser profile names going to take, and should I try to match them or avoid them with the ones I setup myself?

Right now, I've simply setup a "4" profile (selected with QT_SELECT=4, with that set as the default for the moment at least), and when I was earlier experimenting with plasma5 (which I unmerged after playing a bit as "too early still"), of course I setup a "5" profile as well.  But I expect the gentoo/qt standard profiles will be a bit more verbose than that, say qt4 and qt5, at minimum, or possibly qt4.8 or qt-4.8.6 (and similar for qt5).

If I knew what the standard names were going to be I could either set mine up to match, or alternatively, set mine up so they don't conflict if that's preferred/recommended.

I realize this is more a question than a bug, except to the extent that lack of mention /anywhere/ I can find (and I looked, if it's there I think I'm blind, ALL bugz returned zero for a qtchooser search, too!), perhaps in some qt-overlay Documentation/README file or the like, might be considered a bug, but I'm sure others will be asking it too if they aren't already, and hopefully with an appropriately keyword searchable bug summary at least some of them can find this bug/question before they ask it themselves.

Plus maybe it'll prompt such a readme. =:^)

Thanks.  Having a bit of experience now with the qt5/plasma5 stuff in its current state, I have at least /some/ appreciation of the problems you guys are working thru!
Comment 1 Davide Pesavento gentoo-dev 2014-08-07 10:57:34 UTC
(In reply to Duncan from comment #0)
> With qt 4.8.6 and qt5 headed for the tree at some point, along with their
> dependence on qtchooser, I'm guessing some package (qtcore?) in each will
> eventually setup a somewhat standard qtchooser profile, and that most

Correct, qtcore:4 will create the "system" qtchooser profile for qt4, likewise for qtcore:5 and qt5.

> likely, the qt eclasses will automatically set QT_SELECT to select the
> appropriate profile based on dependencies for packages inheriting the
> appropriate eclass.

I guess we could set the env variable as a backward-compat measure, but eqmake{4,5} will use the full path to the real qmake executable in /usr/$libdir/qt{4,5}/bin/

Other build systems (cmake especially) will probably need adjustments.

> 
> I'm beginning to experiment with at least qt 4.8.6 from the overlay (and
> tried qt5/plasma5 for a bit, but decided it was too early for that yet so
> unmerged right away), but of course those assumed profiles aren't setup yet
> so I'm having to manually setup my own.
> 

qt-4.8.6 from the overlay is a work in progress and known to be broken in a few ways in its current state.

> What format are these gentoo/qt standard qtchooser profile names going to
> take, and should I try to match them or avoid them with the ones I setup
> myself?
> 
> Right now, I've simply setup a "4" profile (selected with QT_SELECT=4, with
> that set as the default for the moment at least), and when I was earlier
> experimenting with plasma5 (which I unmerged after playing a bit as "too
> early still"), of course I setup a "5" profile as well.  But I expect the
> gentoo/qt standard profiles will be a bit more verbose than that, say qt4
> and qt5, at minimum, or possibly qt4.8 or qt-4.8.6 (and similar for qt5).
> 

Well using anything more than $SLOT is pointless. So I was thinking about "qt4" and "qt5", possibly with something to distinguish between multilib ABIs (not sure about this though).

> If I knew what the standard names were going to be I could either set mine
> up to match, or alternatively, set mine up so they don't conflict if that's
> preferred/recommended.
> 

Good point. In addition to the system folder, people can set up their own profiles in ~/.config/qtchooser IIRC, therefore some "namespacing" would be good I guess. Maybe "gentoo-qt4" or "system-qt4"? Suggestions welcome.

> I realize this is more a question than a bug, except to the extent that lack
> of mention /anywhere/ I can find (and I looked, if it's there I think I'm
> blind, ALL bugz returned zero for a qtchooser search, too!), perhaps in some
> qt-overlay Documentation/README file or the like, might be considered a bug,
> but I'm sure others will be asking it too if they aren't already, and
> hopefully with an appropriately keyword searchable bug summary at least some
> of them can find this bug/question before they ask it themselves.
> 
> Plus maybe it'll prompt such a readme. =:^)
> 

Some documentation is definitely needed. And afaik there's none at the moment ;)
When 4.8.6 enters the tree we might want to release a news item too... although nothing should change for users, at least until the default qtchooser profile points to the qt4 one. Which reminds me that we should write an eselect module to manage the symlink...

I'm not a good doc writer, so any help is greatly appreciated in this area.
Comment 2 Davide Pesavento gentoo-dev 2014-10-21 00:50:49 UTC
https://github.com/gentoo/qt/pull/83
Comment 3 Davide Pesavento gentoo-dev 2014-10-26 01:26:06 UTC
Fixed in git.