1 |
On Tue, 5 Dec 2017 17:34:23 +0100 |
2 |
Michał Górny <mgorny@g.o> wrote: |
3 |
|
4 |
> Closes: https://bugs.gentoo.org/615620 |
5 |
> --- |
6 |
> pym/portage/checksum.py | 5 ++++- |
7 |
> 1 file changed, 4 insertions(+), 1 deletion(-) |
8 |
> |
9 |
> diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py |
10 |
> index 5424ce56b..0841ab231 100644 |
11 |
> --- a/pym/portage/checksum.py |
12 |
> +++ b/pym/portage/checksum.py |
13 |
> @@ -150,7 +150,10 @@ if "SHA3_256" not in hashfunc_map or "SHA3_512" |
14 |
> not in hashfunc_map: # (GnuPG). |
15 |
> gcrypt_algos = frozenset(('RMD160', 'WHIRLPOOL', 'SHA3_256', |
16 |
> 'SHA3_512', 'STREEBOG256', 'STREEBOG512')) |
17 |
> -if gcrypt_algos.difference(hashfunc_map): |
18 |
> +# Note: currently disabled due to resource exhaustion bugs in |
19 |
> pygcrypt. +# Please do not reenable until upstream has a fix. |
20 |
> +# https://bugs.gentoo.org/615620 |
21 |
> +if False and gcrypt_algos.difference(hashfunc_map): |
22 |
> try: |
23 |
> import binascii |
24 |
> import pygcrypt.hashcontext |
25 |
|
26 |
|
27 |
|
28 |
It would be better to just comment out the original if, then add a new |
29 |
line to replace it with just if False. it would be clearer what the |
30 |
original code should be. Of course with the reason comments... |
31 |
|
32 |
-- |
33 |
Brian Dolbec <dolsen> |