From 841c681825acebf27f5ed8bf5210b861e787288b Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Sat, 29 Apr 2023 16:28:29 +0200 Subject: [PATCH] Workaround for oss-fuzz build. --- tests/fuzz/oss-fuzz-build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/fuzz/oss-fuzz-build.sh b/tests/fuzz/oss-fuzz-build.sh index b3035c4f..864ed62a 100755 --- a/tests/fuzz/oss-fuzz-build.sh +++ b/tests/fuzz/oss-fuzz-build.sh @@ -49,7 +49,9 @@ in_oss_fuzz && apt-get update && apt-get install -y \ [ ! -d json-c ] && git clone --depth 1 https://github.com/json-c/json-c.git [ ! -d lvm2 ] && git clone --depth 1 https://sourceware.org/git/lvm2.git [ ! -d popt ] && git clone --depth 1 https://github.com/rpm-software-management/popt.git -[ ! -d libprotobuf-mutator ] && git clone --depth 1 https://github.com/google/libprotobuf-mutator.git \ +# FIXME: temporary fix until libprotobuf stops shuffling C++ requirements +# [ ! -d libprotobuf-mutator ] && git clone --depth 1 https://github.com/google/libprotobuf-mutator.git \ +[ ! -d libprotobuf-mutator ] && git clone --depth 1 --branch v1.1 https://github.com/google/libprotobuf-mutator.git \ && [ "$SANITIZER" == "memory" ] && ( cd libprotobuf-mutator; patch -p1 < $LIBFUZZER_PATCH ) [ ! -d openssl ] && git clone --depth 1 https://github.com/openssl/openssl [ ! -d util-linux ] && git clone --depth 1 https://github.com/util-linux/util-linux