emscripten-ports / libpng

Other
12 stars 8 forks source link

Unexpected hash #9

Open justinlaughlin opened 5 months ago

justinlaughlin commented 5 months ago

Hello, I am trying to use emscripten with the flag USE_LIBPNG=1 but receive errors indicating incorrect hashes:

ports:INFO: retrieving port: libpng from https://storage.googleapis.com/webassembly/emscripten-ports/libpng-1.6.39.tar.gz
make[1]: *** [makefile:294: lib/vsdata.bc] Error 1
emcc: error: Unexpected hash: 2461146dcef226c9e1b1936ffa0015fdcc41d4e253bdf631d580b610545073232fa67abc7f0dfa7df41cf8d689b5fc6651d8a4a6435997f333e8c07c6abc369b
If you are updating the port, please update the hash.
ports:INFO: retrieving port: libpng from https://storage.googleapis.com/webassembly/emscripten-ports/libpng-1.6.39.tar.gz
make[1]: *** [makefile:294: lib/sdl_helper.bc] Error 1
emcc: error: Unexpected hash: 2461146dcef226c9e1b1936ffa0015fdcc41d4e253bdf631d580b610545073232fa67abc7f0dfa7df41cf8d689b5fc6651d8a4a6435997f333e8c07c6abc369b
If you are updating the port, please update the hash.

I checked the hash of this url using:

curl https://storage.googleapis.com/webassembly/emscripten-ports/libpng-1.6.39.tar.gz | sha512sum

which gives a hash that does not match:

7f97248a156cce088008bf4b4ebdd00ad1bf37b36eec61c9c2b27f7e530d58c5cb18bf22e1c5684f4e54cfa1faf0720e1c8ddc7038f7e2ec1a0027f83892fa7

Any ideas as to why this is happening? Thank you

justinlaughlin commented 5 months ago

Downloading and unzipping this file manually: tar -xzvf libpng-1.6.39

libpng-1.6.39/contrib/libtests/tarith.c
libpng-1.6.39/contrib/libtests/timepng.c

gzip: stdin: unexpected end of file
libpng-1.6.39/contrib/mips-msa/
libpng-1.6.39/contrib/mips-msa/README
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

Is this file corrupt?