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] [checksum] Disable pygcrypt backend due to breakage
Date: Tue, 05 Dec 2017 16:34:35
Message-Id: 20171205163423.4379-1-mgorny@gentoo.org
1 Closes: https://bugs.gentoo.org/615620
2 ---
3 pym/portage/checksum.py | 5 ++++-
4 1 file changed, 4 insertions(+), 1 deletion(-)
5
6 diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py
7 index 5424ce56b..0841ab231 100644
8 --- a/pym/portage/checksum.py
9 +++ b/pym/portage/checksum.py
10 @@ -150,7 +150,10 @@ if "SHA3_256" not in hashfunc_map or "SHA3_512" not in hashfunc_map:
11 # (GnuPG).
12 gcrypt_algos = frozenset(('RMD160', 'WHIRLPOOL', 'SHA3_256', 'SHA3_512',
13 'STREEBOG256', 'STREEBOG512'))
14 -if gcrypt_algos.difference(hashfunc_map):
15 +# Note: currently disabled due to resource exhaustion bugs in pygcrypt.
16 +# Please do not reenable until upstream has a fix.
17 +# https://bugs.gentoo.org/615620
18 +if False and gcrypt_algos.difference(hashfunc_map):
19 try:
20 import binascii
21 import pygcrypt.hashcontext
22 --
23 2.15.1

Replies