Gentoo Archives: gentoo-portage-dev

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

Replies