Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945925 - dev-qt/qt-creator-15.0.0: please make golang dependency optional
Summary: dev-qt/qt-creator-15.0.0: please make golang dependency optional
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-05 19:57 UTC by i.Dark_Templar
Modified: 2024-12-06 07:55 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 i.Dark_Templar 2024-12-05 19:57:00 UTC
When I've tried to update qt-creator to version 15.0.0 it suddenly started pulling golang as dependency for an optional feature I don't need.

Reproducible: Always

Steps to Reproduce:
1. emerge -1av '>=dev-qt/qt-creator-15.0.0'

Actual Results:  
It pulls dev-lang/go as mandatory dependency.

Expected Results:  
It shouldn't pull dev-lang/go as mandatory dependency.

It looks like golang is used only for stuff named gocmdbridge server, and this gocmdbridge server is optional:

https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/src/libs/gocmdbridge/server/CMakeLists.txt?h=v15.0.0&id=3ac6a5956df4f4a47ac241cb33d617c76ac507e2#n44

To remove automatic detection of golang this whole directory 'src/libs/gocmdbridge/server' may also be disabled.
Comment 1 Larry the Git Cow gentoo-dev 2024-12-06 07:55:26 UTC
The bug has been closed via the following commit(s):

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

commit e2228fd077016d6219fa1b79830a518376563742
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-12-06 05:44:25 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-12-06 07:54:26 +0000

    dev-qt/qt-creator: make Go optional w/ USE=cmdbridge-server
    
    Off by default given most people won't need this, arguably could've
    skipped it entirely to make maintenance easier.
    
    Does require to fool it into thinking Go was not found given there
    isn't a proper option to disable it that I can see.
    
    Closes: https://bugs.gentoo.org/945925
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-qt/qt-creator/metadata.xml                     |  1 +
 ...r-15.0.0.ebuild => qt-creator-15.0.0-r1.ebuild} | 23 ++++++++++++----------
 dev-qt/qt-creator/qt-creator-9999.ebuild           | 23 ++++++++++++----------
 3 files changed, 27 insertions(+), 20 deletions(-)