fazbear201 / winezeug

Automatically exported from code.google.com/p/winezeug
1 stars 0 forks source link

winetricks verify_sha1sum does not work with OpenSSL 1.0.0a #139

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to run "./winetricks vb6run" (or something) with openssl 1.0.0a instead 
of sha1sum

winetricks fails with "sha1sum mismatch!". This is because openssl returns the 
checksum in a different format:
$ openssl sha1 < ~/.winetrickscache/VB6.0-KB290887-X86.exe
(stdin)= 73ef177008005675134d2f02c6f580515ab0d842
$ sha1sum ~/.winetrickscache/VB6.0-KB290887-X86.exe
73ef177008005675134d2f02c6f580515ab0d842  -

so the extraction regex fails. I propose using something like
gotsum=`$SHA1SUM < $file | sed 's/.*\([a-z0-9]\{40\}\).*/\1/'`

Original issue reported on code.google.com by niel...@gmail.com on 17 Jul 2010 at 11:49

GoogleCodeExporter commented 8 years ago
The MacPorts project received a report about this problem as well, at 
http://trac.macports.org/ticket/25717

The problem is that with openssl 1.0.0 the format of the "openssl dgst" command 
changed when reading from stdin.

openssl 0.9.8o:

$ openssl dgst -sha1 < file
da39a3ee5e6b4b0d3255bfef95601890afd80709

openssl 1.0.0a:

$ openssl dgst -sha1 < file
(stdin)= da39a3ee5e6b4b0d3255bfef95601890afd80709

Original comment by ryandesi...@gmail.com on 17 Jul 2010 at 11:07

GoogleCodeExporter commented 8 years ago
Will you fix this problem?

Original comment by ryandesi...@gmail.com on 4 Sep 2010 at 3:33

GoogleCodeExporter commented 8 years ago
I believe it's fixed in svn already, see r1534

Original comment by daniel.r...@gmail.com on 4 Sep 2010 at 3:34

GoogleCodeExporter commented 8 years ago
Thanks, yes it works with version 20100904. The revision that fixed it was 
actually r1536.

Original comment by ryandesi...@gmail.com on 4 Sep 2010 at 11:34

GoogleCodeExporter commented 8 years ago
Reported fixed.

Original comment by daniel.r...@gmail.com on 5 Jan 2011 at 7:57