commit:     38c479d46dc91be66877d857a3682534eb1b5f12
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 10 06:22:44 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep 28 23:56:08 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=38c479d4

cnf: sets: convert @golang-rebuild into VariableSet

This allows rebuilding *all* Go packages
correctly, rather than purely going off
inherit.

There's a few reasons to do this:
1. Even if (and it's a big if) we suppose that
all Go packages should inherit a Go eclass,
there will be packages in user repositories
which don't do that;

2. Eclasses are, by their nature,
repository-specific. This solution
is a generic approach independent
of the eclass layout in ::gentoo.

Bug: https://bugs.gentoo.org/827974
Bug: https://bugs.gentoo.org/865115
Signed-off-by: Sam James <sam <AT> gentoo.org>
Closes: https://github.com/gentoo/portage/pull/898
Signed-off-by: Sam James <sam <AT> gentoo.org>

 cnf/sets/portage.conf | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cnf/sets/portage.conf b/cnf/sets/portage.conf
index c4ad2efca..3738f147d 100644
--- a/cnf/sets/portage.conf
+++ b/cnf/sets/portage.conf
@@ -110,8 +110,8 @@ class = portage.sets.dbapi.UnavailableBinaries
 [changed-deps]
 class = portage.sets.dbapi.ChangedDepsSet
 
-# Installed packages that inherit from known go related eclasses.
+# Installed packages for which vdb *DEPEND includes dev-lang/go.
 [golang-rebuild]
 class = portage.sets.dbapi.VariableSet
-variable = INHERITED
-includes = golang-base golang-build golang-vcs golang-vcs-snapshot go-module
+variable = BDEPEND
+includes = dev-lang/go

Reply via email to