diff --git a/projects/varnish/Dockerfile b/projects/varnish/Dockerfile index 8a3f75f54..7bd362ade 100644 --- a/projects/varnish/Dockerfile +++ b/projects/varnish/Dockerfile @@ -15,7 +15,7 @@ ################################################################################ FROM gcr.io/oss-fuzz-base/base-builder -RUN apt-get update && apt install -y automake autoconf libtool pkg-config python3-docutils python3-sphinx libedit-dev libpcre3-dev libncurses-dev +RUN apt-get update && apt install -y automake autoconf libtool pkg-config python3-docutils python3-sphinx libedit-dev libpcre2-dev libncurses-dev RUN git clone --depth 1 https://github.com/varnishcache/varnish-cache COPY build.sh $SRC COPY patch.diff $SRC diff --git a/projects/varnish/build.sh b/projects/varnish/build.sh index 851a7fb1e..e7550005b 100755 --- a/projects/varnish/build.sh +++ b/projects/varnish/build.sh @@ -19,6 +19,9 @@ git apply --ignore-whitespace $SRC/patch.diff # build project ./autogen.sh -./configure -make -j$(nproc) +./configure PCRE2_LIBS=-l:libpcre2-8.a +make -j$(nproc) -C include/ +make -j$(nproc) -C lib/libvarnish/ +make -j$(nproc) -C lib/libvgz/ +make -j$(nproc) -C bin/varnishd/ VSC_main.c esi_parse_fuzzer cp bin/varnishd/*_fuzzer $OUT/