vdggvdgg / winetricks

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

Winetricks fails to check sha1 checksum on FreeBSD #471

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This line:
_W_vs_gotsum=`$WINETRICKS_SHA1SUM < $_W_vs_file | sed 's/ .*//'`
runs this command, that deletes the actual checksum:
$ openssl dgst -sha1 < /home/yuri/.cache/winetricks/steam/SteamSetup.exe | sed 
's/ .*//'
(stdin)=

Removing sed:
$ openssl dgst -sha1 < /home/yuri/.cache/winetricks/steam/SteamSetup.exe 
(stdin)= e04aefe8bc894f11f211edec8e8a008abe0147d2

So 'sed' part on FreeBSD should be: sed 's/[^ ]* //'
Or (maybe) some options passed to openssl command should be changed to achieve 
desired output.

Additionally, actual checksum also mismatches, causing the message:
------------------------------------------------------
sha1sum mismatch!  Rename /home/yuri/.cache/winetricks/steam/SteamSetup.exe and 
try again.
------------------------------------------------------

WINETRICKS_VERSION=20141125

OpenSSL> version
OpenSSL 1.0.1l-freebsd 15 Jan 2015

Original issue reported on code.google.com by yuriv...@gmail.com on 31 Jan 2015 at 8:41

GoogleCodeExporter commented 8 years ago
Fixed by 
https://code.google.com/p/winetricks/source/detail?r=83f0e3d3475961a19afcca5c4e3
ddd32bda13a04

Original comment by austinenglish@gmail.com on 2 Feb 2015 at 11:10

GoogleCodeExporter commented 8 years ago
Fixed.

Original comment by austinenglish@gmail.com on 2 Feb 2015 at 11:10