Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568838 - dev-qt/qt*:5 implement USE=examples
Summary: dev-qt/qt*:5 implement USE=examples
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Low enhancement with 3 votes (vote)
Assignee: Qt Bug Alias
URL: https://github.com/gentoo/gentoo/pull...
Whiteboard:
Keywords:
: 588296 597568 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-12-19 22:56 UTC by karpi
Modified: 2021-02-14 15:03 UTC (History)
6 users (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 karpi 2015-12-19 22:56:50 UTC
After emerging and first start of qt-creator, there is no examples.
Also No examples USE flag for this version.


Reproducible: Always
Comment 1 karpi 2016-01-07 23:46:30 UTC
Examples are inseparable part of IDE.
Especially for beginning pragrammers.
As developers of qt-creator says on their own page:

http://doc.qt.io/qt-5/qtexamplesandtutorials.html
"Open and run examples within Qt Creator's Welcome mode."

http://doc.qt.io/qtcreator/creator-build-example-application.html
"You can test that your Qt installation is successful by opening an existing example application project."

So on gentoo Qt installation isn't successful for now.
Comment 2 Davide Pesavento gentoo-dev 2016-01-07 23:58:25 UTC
(In reply to karpi from comment #1)
> Examples are inseparable part of IDE.
> Especially for beginning pragrammers.
> As developers of qt-creator says on their own page:
> 
> http://doc.qt.io/qt-5/qtexamplesandtutorials.html
> "Open and run examples within Qt Creator's Welcome mode."
> 

Those are *Qt* examples, not qt-creator's, and they should be installed by qt modules, not by qt-creator. So what is this bug about exactly?

> http://doc.qt.io/qtcreator/creator-build-example-application.html
> "You can test that your Qt installation is successful by opening an existing
> example application project."
> 
> So on gentoo Qt installation isn't successful for now.

That's just one way of "testing" that the installation was successful. The lack of examples doesn't mean it wasn't successful.
Comment 3 karpi 2016-01-08 00:40:12 UTC
If you install qt-creator from ebuild and run it,
examples within Qt Creator's Welcome mode are empty.

They should be included in order to explore and try qt in action:
http://doc.qt.io/qt-5/all-examples.html

(there is not just my opinion, but all official qt doc webs assuming that, as showed in links in previous post)
Comment 4 karpi 2016-01-19 10:38:52 UTC
Best solution is:
- hardmask qt-creator in portage
- install it directly from original binary distribution: http://www.qt.io/download/
- or older desired version from: https://download.qt.io/archive/qt/
Comment 5 Thomas Capricelli 2016-03-25 09:57:28 UTC
Whether from an external ebuild or not, I agree that examples are expected when installing qt-creator.

Independantly of qt-creator, are qt5 examples available somewehere in gentoo? I could not find them. My best guess would be qtdemo, but it's currently only available for qt4 in the portage tree.
Comment 6 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2016-04-08 16:10:06 UTC
I'd support pesa's bug renaming: examples should NOT install with qt-creator, but with either separate package (like thare was qtdemo for Qt3/Qt4), or with related Qt modules by "example" USE-flag.

// although, it is a bit unclear how it would be with qtandroid and so on modules examples.
Comment 7 Michael Palimaka (kensington) gentoo-dev 2016-07-09 19:01:02 UTC
*** Bug 588296 has been marked as a duplicate of this bug. ***
Comment 8 Thomas Capricelli 2016-08-12 20:36:07 UTC
Err.. so. Are examples available somewhere in gentoo for qt5 ??
Comment 9 Davide Pesavento gentoo-dev 2016-08-12 20:56:45 UTC
(In reply to Thomas Capricelli from comment #8)
> Err.. so. Are examples available somewhere in gentoo for qt5 ??

No. This is something I'd like to see implemented, but given its relatively low priority, and the never decreasing number of higher priority tasks, I don't expect it will happen in the foreseeable future. So contributions (PRs if possible) are especially encouraged in this area.
Comment 10 Michael Palimaka (kensington) gentoo-dev 2016-10-19 19:19:45 UTC
*** Bug 597568 has been marked as a duplicate of this bug. ***
Comment 11 i.Dark_Templar 2017-05-04 09:44:20 UTC
Pull request: https://github.com/gentoo/gentoo/pull/4541

Due to implemented changes in qt5-build.eclass it is required to reinstall dev-qt/qtcore:5 first, otherwise examples for packages outside of qtbase metapackage won't build and install properly. It doesn't matter whether USE-flag "examples" is set or not for dev-qt/qtcore:5.

I didn't test all packages. I've tested only that following packages look good after installation and checked examples are running fine for them:
=dev-qt/qtcore-5.6.2-r2
=dev-qt/qtgui-5.6.2-r1
=dev-qt/qtwidgets-5.6.2-r1
=dev-qt/qtopengl-5.6.2-r1
=dev-qt/assistant-5.6.2-r1
=dev-qt/designer-5.6.2-r1
=dev-qt/qtsvg-5.6.2-r1

All packages which now include examples are bumped to new revision.
Comment 12 gerion 2020-08-10 23:42:25 UTC
i.Dark Templer's pull requests were all closed (due to inactivity?). Nevertheless, the code seems to live in his overlay now (as also mentioned in the third follow up pull request):
https://github.com/iDarkTemplar/dt-overlay-patches

I just wanted to mention it here directly, thank you!