ostree: Build with stable glib (#11541)

Recently glib's build process changed as it integrates parts of
gobject-introspection. The only reason to build glib at all is because
the version in the base image is a bit too old. Rather than building
glib main, use a tagged version. 2.78.4 is a very recent stable release
that satisfies ostree's 2.66.0 requirement.

Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64890
This commit is contained in:
Dan Nicholson 2024-01-25 12:37:25 -06:00 committed by GitHub
parent b2225e3e63
commit 5acb10b65c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
ARG glib_tag=2.78.4
RUN apt-get update && apt-get install -y \
make \
autoconf \
@ -30,7 +31,7 @@ RUN apt-get update && apt-get install -y \
libtool \
bison
RUN unset CFLAGS CXXFLAGS && pip3 install -U meson ninja
RUN git clone --depth 1 https://gitlab.gnome.org/GNOME/glib
RUN git clone --depth 1 --branch $glib_tag https://gitlab.gnome.org/GNOME/glib
RUN git clone https://github.com/ostreedev/ostree && \
cd ostree && \
git submodule update --init