Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 783810

Summary: sci-libs/opencascade-7.4.0-r4 USE=examples: Unknown CMake command "qt5_add_translation"
Product: Gentoo Linux Reporter: Haxk20 <haxk612>
Component: Current packagesAssignee: Bernd <waebbl-gentoo>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/20449
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info output
build log

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(-)