ffmpeg-build-script icon indicating copy to clipboard operation
ffmpeg-build-script copied to clipboard

Script fails unzipping zlib-1.2.13.tar.gz

Open Maxhawkgt opened this issue 2 years ago • 3 comments
trafficstars

I tried manually using wget https://zlib.net/fossils/zlib-1.2.13.tar.gz and tar reported it was not a valid zip file. When I looked at the file it looks to be HTML code. Perhaps there's something going on with zlib.net, but this version seems to be ok: https://github.com/madler/zlib/releases/download/v1.2.13/zlib-1.2.13.tar.gz.

Maxhawkgt avatar Aug 27 '23 00:08 Maxhawkgt

Same for me. I manually downloaded zip file and copied into package folder and run script. But it's only temp solution. Has anyone fixed it?

meta456trader avatar Aug 27 '23 03:08 meta456trader

I used the version that I listed above and it seemed to work, but no, it's not been fixed yet.

Maxhawkgt avatar Aug 27 '23 04:08 Maxhawkgt

Seems like zlib download is restricted in some countries...

Switching to 1.3.1 was the right solution for me :

if build "zlib" "1.3.1"; then
  download "https://github.com/madler/zlib/releases/download/v$CURRENT_PACKAGE_VERSION/zlib-$CURRENT_PACKAGE_VERSION.tar.gz"
  execute ./configure --static --prefix="${WORKSPACE}"
  execute make -j $MJOBS
  execute make install
  build_done "zlib" $CURRENT_PACKAGE_VERSION
fi

xanadonf avatar Mar 26 '24 15:03 xanadonf