Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 783810 - sci-libs/opencascade-7.4.0-r4 USE=examples: Unknown CMake command "qt5_add_translation"
Summary: sci-libs/opencascade-7.4.0-r4 USE=examples: Unknown CMake command "qt5_add_tr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernd
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-04-18 15:22 UTC by Haxk20
Modified: 2021-05-04 22:02 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emergeinfo.txt,8.96 KB, text/plain)
2021-04-18 15:22 UTC, Haxk20
Details
build log (build.log,9.92 KB, text/plain)
2021-04-18 15:26 UTC, Haxk20
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Haxk20 2021-04-18 15:22:00 UTC
Created attachment 700569 [details]
emerge --info output

As the bug title mentions the ebuild fails to even configure.
Attaching output of emerge --info as well as output of the build.
Comment 1 Haxk20 2021-04-18 15:26:34 UTC
Created attachment 700572 [details]
build log
Comment 2 Bernd 2021-04-18 16:25:42 UTC
I noticed this today while working on the 7.5.1 bump. USE=examples needs to install dev-qt/linguist-tools. The current doc? restriction on this dependency seems not, or no longer be correct.
Comment 3 Haxk20 2021-04-18 18:14:40 UTC
Indeed installing dev-qt/linguist-tools fixed the issue.
opencascade seems to be building for now. Will post if i get any errors in the build process but i shoudlnt.

So only thing needed is to add dev-qt/linguist-tools to the list of dependencies when USE=qt5 is used ?
Comment 4 Bernd 2021-04-18 19:52:33 UTC
(In reply to haxk612 from comment #3)
> So only thing needed is to add dev-qt/linguist-tools to the list of
> dependencies when USE=qt5 is used ?

Approximately. But it's not that simple actually. First it's a build time only dependency and not a runtime dependency and second, on 7.5.1 I noticed, the qt5 USE flag does nothing for itself, and makes only sense together with the examples USE flag. Still need to verify this is true for 7.4.0 too, but I guess it's the same here. 
The dependency already is present in BDEPEND, but will only pulled in when doc USE flag is present, which needs to be changed.
The package itself has no dependency at all on Qt, it's only a few samples which demonstrate the packages usage in Qt apps. So very likely, a USE dependency needs to be added to REQUIRED_USE as well.
Comment 5 Larry the Git Cow gentoo-dev 2021-05-04 22:02:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da53808432edde9896401246635ea5e3c153c4fb

commit da53808432edde9896401246635ea5e3c153c4fb
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2021-04-19 05:52:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-04 22:01:47 +0000

    sci-libs/opencascade: fix Qt dependency
    
    Changes a dependency on dev-qt/linguist-tool
    
    Closes: https://bugs.gentoo.org/783810
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Closes: https://github.com/gentoo/gentoo/pull/20449
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/opencascade/opencascade-7.4.0-r4.ebuild | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)