Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH] const: Change the MANIFEST2_REQUIRED_HASH to SHA512
Date: Thu, 15 Jun 2017 07:42:58
Message-Id: 20170615074241.24119-1-mgorny@gentoo.org
1 Following the plan established in GLEP 59, we're long overdue
2 deprecating SHA256. Since we have finally got rid of the last packages
3 lacking SHA512 checksums, we can proceed with that. In order to prepare
4 for it, however, we need to change the required hash to SHA512 and make
5 sure developers install the new Portage & repoman versions first.
6
7 Of course, a better course of action would be to kill
8 MANIFEST2_REQUIRED_HASH entirely and make Portage capable of dealing
9 with any hash set. However, that's a larger piece of work and it would
10 delay the immediate goal.
11 ---
12 pym/portage/const.py | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/pym/portage/const.py b/pym/portage/const.py
16 index 052d4ca2f..cbd2b6042 100644
17 --- a/pym/portage/const.py
18 +++ b/pym/portage/const.py
19 @@ -234,7 +234,7 @@ MANIFEST2_HASH_FUNCTIONS = ("SHA256", "SHA512", "WHIRLPOOL",
20 "BLAKE2B", "BLAKE2S", "SHA3_256", "SHA3_512",
21 "STREEBOG256", "STREEBOG512")
22 MANIFEST2_HASH_DEFAULTS = frozenset(["SHA256", "SHA512", "WHIRLPOOL"])
23 -MANIFEST2_REQUIRED_HASH = "SHA256"
24 +MANIFEST2_REQUIRED_HASH = "SHA512"
25
26 MANIFEST2_IDENTIFIERS = ("AUX", "MISC", "DIST", "EBUILD")
27
28 --
29 2.13.1

Replies