Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155138 - app-crypt/mhash-0.9.8.1 version bump request
Summary: app-crypt/mhash-0.9.8.1 version bump request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Robin Johnson
URL: http://sourceforge.net/project/showfi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-14 07:00 UTC by Gilles Dartiguelongue (RETIRED)
Modified: 2007-03-28 03:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-11-14 07:00:46 UTC
Latest version in portage is 0.9.3 which is hard masked. I have bumped this ebuild localy to test aide-0.12. 

I tested mhash-0.9.7.1 with aide-0.10 (to cover some algorithms on a large range of input) and it works well.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-11-15 00:33:33 UTC
On x86 (athlon-xp), and amd64 (core 2 duo), the testsuite passes fine.
However, on ppc64-32ul, I get two test failures:
...
testing SHA1 ...
testing HAVAL256   -- TEST FAILED: HAVAL256 "abcdefghijklmnopqrstuvwxyz"
got "4002E86400000002FFE8A8D04000ABB00000000000000000000000000000093C"
but expected "72FAD4BDE1DA8C8332FB60561A780E7F504F21547B98686824FC33FC796AFA76"
FAIL: hash_test.sh
...
Checking fragmentation capabilities of HAVAL256: Failed
...

I've filed a bug upstream in the meantime:
https://sourceforge.net/tracker/index.php?func=detail&aid=1596844&group_id=4286&atid=104286
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-01-04 00:38:17 UTC
no response from upstream on that ppc64 breakage.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-01-11 12:46:28 UTC
This other bug on ultrasparc looks similar :

http://sourceforge.net/tracker/index.php?func=detail&aid=1525585&group_id=4286&atid=104286

Robbin, did you try compiling with just -O2 in your CFLAGS ?
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-01-11 18:52:56 UTC
My normal CFLAGS on ppc64-32ul are:
CFLAGS="-Os -mtune=970 -mcpu=970 -mabi=altivec -maltivec -pipe -Wstrict-aliasing"
The error (4002E86400000002FFEB15C04000ABB00000000000000000000000000000093C)  is identical when I use:
CFLAGS="-O3"
CFLAGS="-Os"
CFLAGS="-O2"
CFLAGS="-O1"

If I use
CFLAGS="-O0", I still get an incorrect result, but a different one:
00000004000000004001F04C4002E86400000002FFAAB5C04000ABB000000000

Given that you say sparc has a similar failure, the source of the error MUST be bit operations that don't take into account endianness of the machine.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2007-03-20 17:06:26 UTC
mhash-0.9.8.1 is released, needs to be tested.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-03-28 03:38:37 UTC
in cvs now.
passes on my all my hardware.