cras: Fix alsa-lib download (#9177)

* Switch from FTP to HTTPS
* Check checksum
* Simplify tarball unpack

Fixes https://crbug.com/oss-fuzz/54159.

cc @b92paul
This commit is contained in:
Li-Yu Yu 2022-12-10 05:45:11 +08:00 committed by GitHub
parent 182e63729a
commit 0cf7e2cfa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -62,9 +62,9 @@ RUN cd /tmp && git clone https://github.com/google/googletest.git -b v1.8.x && \
# Need to build and install alsa so there is a static lib.
RUN mkdir -p /tmp/alsa-build && cd /tmp/alsa-build && \
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.4.1.tar.bz2 && \
bzip2 -f -d alsa-lib-* && \
tar xf alsa-lib-* && \
wget https://alsa-project.org/files/pub/lib/alsa-lib-1.1.4.1.tar.bz2 && \
echo 91bb870c14d1c7c269213285eeed874fa3d28112077db061a3af8010d0885b76 alsa-lib-1.1.4.1.tar.bz2 | sha256sum -c && \
tar xjf alsa-lib-* && \
cd alsa-lib-* && \
./configure --enable-static --disable-shared && \
make clean && \