Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950345 - dev-lang/go-1.24.0 does not install /usr/share/portage/config/sets/go.conf
Summary: dev-lang/go-1.24.0 does not install /usr/share/portage/config/sets/go.conf
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-27 13:38 UTC by Klaus Kusche
Modified: 2025-02-27 22:20 UTC (History)
3 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 Klaus Kusche 2025-02-27 13:38:31 UTC
I just emerged go-1.24.0.

Up to now, the go build log always asked for @golang-rebuild,
and @golang-rebuild re-emerged sys-libs/libcap,
but for 1.24.0, there was no such log message,
and @golang-rebuild is also no longer recognized.

My other go ebuild (doggo) was rebuilt automatically together with go,
but sys-libs/libcap definitely contains go executables and was *not* rebuilt.

Is rebuilding no longer necessary, or should it have been rebuilt automatically?
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-27 13:39:24 UTC
libcap depends on go with dev-lang/go in BDEPEND but with no :=.

While the := in BDEPEND thing is IMHO somewhat dubious, I agree it should be there for consistency.
Comment 2 Mike Gilbert gentoo-dev 2025-02-27 17:17:06 UTC
The @golang-rebuild set is provided by dev-lang/go. It appears this set got dropped in dev-lang/go-1.24.0.

Adding a slot operator to BDEPEND is not necessary for this set to function properly.
Comment 3 William Hubbs gentoo-dev 2025-02-27 21:35:48 UTC
Is the golang-rebuild set still needed?

I see when I upgrade/downgrade go that rebuilds are automatically triggered.

Thanks,

William
Comment 4 William Hubbs gentoo-dev 2025-02-27 22:00:47 UTC
Looking this over, the rebuilds are triggered by the BDEPEND including
the slot operator.

I don't have an issue with adding back the @golang-rebuild set, but we
should also make sure we check all dependencies on dev-lang/go in the
tree to make sure they are correct.


operator in bdepend.
Comment 5 Mike Gilbert gentoo-dev 2025-02-27 22:02:12 UTC
I wasn't aware that Portage did slot operator rebuilds based on BDEPEND. Sam's comment makes more sense now.

Agreed, someone needs to audit the gentoo repo and add the missing slot operators.
Comment 6 William Hubbs gentoo-dev 2025-02-27 22:20:23 UTC
I think we should make sure all ebuilds that use go are inheriting
go-module since the eclass sets the proper BDEPEND by default.

If ebuilds can't inherit the go-module eclass we should try to figure
out why.

Thanks,

William