Skip to content

Commit

Permalink
libxml2: Don't install i386 packages on aarch64 (#12010)
Browse files Browse the repository at this point in the history
Try to fix build failure on aarch64.
  • Loading branch information
nwellnhof committed May 29, 2024
1 parent 3d3fb7d commit 9cb02d9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion projects/libxml2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@
################################################################################

FROM gcr.io/oss-fuzz-base/base-builder
ARG TARGETPLATFORM

RUN apt-get update && \
case "$TARGETPLATFORM" in \
'linux/arm64') EXTRA_PACKAGES='' ;; \
*) EXTRA_PACKAGES='zlib1g-dev:i386 liblzma-dev:i386' ;; \
esac && \
apt-get install -y --no-install-recommends \
make autoconf libtool pkg-config \
zlib1g-dev zlib1g-dev:i386 liblzma-dev liblzma-dev:i386
zlib1g-dev liblzma-dev \
$EXTRA_PACKAGES
# Build requires automake 1.16.3
RUN curl -LO http://mirrors.kernel.org/ubuntu/pool/main/a/automake-1.16/automake_1.16.5-1.3_all.deb && \
apt install ./automake_1.16.5-1.3_all.deb
Expand Down

0 comments on commit 9cb02d9

Please sign in to comment.