mirror of https://github.com/google/oss-fuzz.git
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:
parent
c70da653c3
commit
c3a363747b
|
@ -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
|
||||
|
|
|
@ -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/
|
||||
|
|
Loading…
Reference in New Issue