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 v2] [checksum] Disable pygcrypt backend due to breakage
Date: Tue, 05 Dec 2017 17:08:53
Message-Id: 20171205170847.12667-1-mgorny@gentoo.org
1 Closes: https://bugs.gentoo.org/615620
2 ---
3 pym/portage/checksum.py | 6 +++++-
4 1 file changed, 5 insertions(+), 1 deletion(-)
5
6 diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py
7 index 5424ce56b..9e7bffea9 100644
8 --- a/pym/portage/checksum.py
9 +++ b/pym/portage/checksum.py
10 @@ -150,7 +150,11 @@ 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:
19 +#if gcrypt_algos.difference(hashfunc_map):
20 try:
21 import binascii
22 import pygcrypt.hashcontext
23 --
24 2.15.1

Replies