Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 425046

Summary: Internal whirlpool implementation works too slow or has indefinite loop
Product: Portage Development Reporter: Ostashevskyi Viktor <ostash>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: critical CC: hkmaly
Priority: Normal    
Version: 2.1   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=885909
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 835380, 423075    

Description Ostashevskyi Viktor 2012-07-06 11:58:18 UTC
I'm using sys-apps/portage-2.1.11.15

If python-mhash is not installed I have problems with following packages:

app-office/libreoffice-3.5.5.3
app-emulation/virtualbox-4.1.18

Merging hangs during checksum checks and emerge process eats 100% CPU. I was waiting for 10-15 min, but no progress.

Confirmed on two different boxes with different CPUs/configuration.

Installing python-mhash solves problem.

I think that is critical as it stops user from emerging some packages without providing any failure information.
Comment 1 Zac Medico gentoo-dev 2012-07-06 17:58:27 UTC
I tested with VirtualBox-4.1.18.tar.bz2 (73688436 bytes) here and it took about 20 minutes.

So, I've updated to portage dependencies to required python[ssl] or python-mhash.
Comment 2 Zac Medico gentoo-dev 2012-07-12 19:50:09 UTC
Here's a fix to skip whirlpool digest checks when they're unaccelerated:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=63e25313d785f40abff3197fe0f3a3eeaa617f7d
Comment 3 Zac Medico gentoo-dev 2012-07-12 21:29:14 UTC
(In reply to comment #2)
> Here's a fix to skip whirlpool digest checks when they're unaccelerated:
> 
> http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;
> h=63e25313d785f40abff3197fe0f3a3eeaa617f7d

This is in 2.1.11.6 and 2.2.0_alpha117.
Comment 4 Zac Medico gentoo-dev 2012-07-30 00:34:49 UTC
*** Bug 428456 has been marked as a duplicate of this bug. ***