1 |
commit: 075c1951e1ac84e99a2219ff14be4a366d274f36 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 16 19:43:54 2020 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 1 21:11:09 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=075c1951 |
7 |
|
8 |
cnf/sets/portage.conf: add new sets for go rebuilding go packages |
9 |
|
10 |
go-built binaries may contain security |
11 |
vulnerabilities if a binary built with vulnerable compiler. |
12 |
go is known to embed vulnerable code to all binaries it builds, if |
13 |
vulnerability was present in the compiler or one of standard libraries. |
14 |
|
15 |
This commit adds `golang-rebuild` set, which allows easy |
16 |
rebuild of most go-compiled system packages. |
17 |
|
18 |
simple 'emerge @golang-rebuild' should rebuild everything affected. |
19 |
a prompt to run this command can be added to postinst message in |
20 |
dev-lang/go ebuild. |
21 |
|
22 |
Closes: https://github.com/gentoo/portage/pull/630 |
23 |
Bug: https://bugs.gentoo.org/752153 |
24 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
25 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
26 |
|
27 |
cnf/sets/portage.conf | 6 ++++++ |
28 |
1 file changed, 6 insertions(+) |
29 |
|
30 |
diff --git a/cnf/sets/portage.conf b/cnf/sets/portage.conf |
31 |
index 0d11d7891..22f0fa3a5 100644 |
32 |
--- a/cnf/sets/portage.conf |
33 |
+++ b/cnf/sets/portage.conf |
34 |
@@ -103,3 +103,9 @@ class = portage.sets.dbapi.UnavailableBinaries |
35 |
# to the matching portdb entry. |
36 |
[changed-deps] |
37 |
class = portage.sets.dbapi.ChangedDepsSet |
38 |
+ |
39 |
+# Installed packages that inherit from known go related eclasses. |
40 |
+[golang-rebuild] |
41 |
+class = portage.sets.dbapi.VariableSet |
42 |
+variable = INHERITED |
43 |
+includes = golang-base golang-build golang-vcs golang-vcs-snapshot go-module |