Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o, Zac Medico <zmedico@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH] const: Switch default hash set to BLAKE2B+SHA512
Date: Sat, 13 Jan 2018 10:55:05
Message-Id: DB5FEE70-D8E6-469D-8689-05CB67954686@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] const: Switch default hash set to BLAKE2B+SHA512 by Zac Medico
1 Dnia 13 stycznia 2018 11:40:09 CET, Zac Medico <zmedico@g.o> napisał(a):
2 >On 01/13/2018 12:50 AM, Michał Górny wrote:
3 >> Switch the Portage defaults to the new Gentoo hash set. We're already
4 >> far past the initial testing and I have been approached by a few
5 >people
6 >> who were surprised that Portage does not use new hashes for overlays.
7 >> Switching the defaults will remove the need for custom hashes
8 >> in layout.conf.
9 >> ---
10 >> pym/portage/const.py | 4 ++--
11 >> 1 file changed, 2 insertions(+), 2 deletions(-)
12 >>
13 >> diff --git a/pym/portage/const.py b/pym/portage/const.py
14 >> index ec877b841..e5fa4b67c 100644
15 >> --- a/pym/portage/const.py
16 >> +++ b/pym/portage/const.py
17 >> @@ -206,8 +206,8 @@ EAPI = 6
18 >>
19 >> HASHING_BLOCKSIZE = 32768
20 >>
21 >> -MANIFEST2_HASH_DEFAULTS = frozenset(["SHA256", "SHA512",
22 >"WHIRLPOOL"])
23 >> -MANIFEST2_HASH_DEFAULT = "SHA512"
24 >> +MANIFEST2_HASH_DEFAULTS = frozenset(["BLAKE2B", "SHA512"])
25 >> +MANIFEST2_HASH_DEFAULT = "BLAKE2B"
26 >>
27 >> MANIFEST2_IDENTIFIERS = ("AUX", "MISC", "DIST", "EBUILD")
28 >>
29 >>
30 >For repos where layout.conf doesn't set "manifest-required-hashes =
31 >SHA512", repoman is suddenly going to force all DIST files to be
32 >fetched
33 >in order to generate the missing BLAKE2B entries. Is that intended?
34
35 Yes. I don't think we need a transition period for overlays.
36
37
38 --
39 Best regards,
40 Michał Górny (by phone)

Replies