Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: cnf/sets/
Date: Wed, 28 Sep 2022 23:56:25
Message-Id: 1664409368.38c479d46dc91be66877d857a3682534eb1b5f12.sam@gentoo
1 commit: 38c479d46dc91be66877d857a3682534eb1b5f12
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 10 06:22:44 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 28 23:56:08 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=38c479d4
7
8 cnf: sets: convert @golang-rebuild into VariableSet
9
10 This allows rebuilding *all* Go packages
11 correctly, rather than purely going off
12 inherit.
13
14 There's a few reasons to do this:
15 1. Even if (and it's a big if) we suppose that
16 all Go packages should inherit a Go eclass,
17 there will be packages in user repositories
18 which don't do that;
19
20 2. Eclasses are, by their nature,
21 repository-specific. This solution
22 is a generic approach independent
23 of the eclass layout in ::gentoo.
24
25 Bug: https://bugs.gentoo.org/827974
26 Bug: https://bugs.gentoo.org/865115
27 Signed-off-by: Sam James <sam <AT> gentoo.org>
28 Closes: https://github.com/gentoo/portage/pull/898
29 Signed-off-by: Sam James <sam <AT> gentoo.org>
30
31 cnf/sets/portage.conf | 6 +++---
32 1 file changed, 3 insertions(+), 3 deletions(-)
33
34 diff --git a/cnf/sets/portage.conf b/cnf/sets/portage.conf
35 index c4ad2efca..3738f147d 100644
36 --- a/cnf/sets/portage.conf
37 +++ b/cnf/sets/portage.conf
38 @@ -110,8 +110,8 @@ class = portage.sets.dbapi.UnavailableBinaries
39 [changed-deps]
40 class = portage.sets.dbapi.ChangedDepsSet
41
42 -# Installed packages that inherit from known go related eclasses.
43 +# Installed packages for which vdb *DEPEND includes dev-lang/go.
44 [golang-rebuild]
45 class = portage.sets.dbapi.VariableSet
46 -variable = INHERITED
47 -includes = golang-base golang-build golang-vcs golang-vcs-snapshot go-module
48 +variable = BDEPEND
49 +includes = dev-lang/go