varnish: Migration to pcre2 (#6027)

* varnish: Migration to pcre2

See https://github.com/varnishcache/varnish-cache/pull/3635

* varnish: Static linking to pcre2

* varnish: Only build the fuzzer

Static linking of pcre2 fails the libvarnishapi build, not needed by
the ESI fuzzer. That's also less time wasted building irrelevant
components. We can figure out why libvarnishapi fails to build in
this environment later.

* varnish: Missing build step
This commit is contained in:
Dridi Boukelmoune 2021-07-16 11:41:32 +00:00 committed by GitHub
parent c70da653c3
commit c3a363747b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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/