]> prime8.dev >> repos - ttyd.git/commit
cross-build: upgrade zlib to 1.2.12, show curl errors (#915)
authorRuben Jenster <rjenster@googlemail.com>
Fri, 8 Apr 2022 14:33:19 +0000 (16:33 +0200)
committerGitHub <noreply@github.com>
Fri, 8 Apr 2022 14:33:19 +0000 (22:33 +0800)
commit83e514b5b8ec5a09c637301f458babf29d27febe
treedefc29ad6e25d82fe66207cee8ae59d84aef5c9e
parent1d0e344ac1e19b846fd9c7dc5888dbc8912e5589
cross-build: upgrade zlib to 1.2.12, show curl errors (#915)

* upgrade zlib to 1.2.12

The package for the version 1.2.11 was removed from upstream,
which lets the build script fail.

* cross-build: show curl error if source download fails

Set the curl options `-f (--fail)` and `-S (--show-error)`,
to show errors when curl fails to download a source package.

curl -sLo- "https://zlib.net/zlib-1.2.11.tar.gz" | tar xz
tar: invalid magic
tar: short read

curl -fSsLo- "https://zlib.net/zlib-1.2.11.tar.gz" | tar xz
curl: (22) The requested URL returned error: 404
tar: invalid magic
tar: short read
scripts/cross-build.sh