From 26accb4a498cf222645f62e2ae6694e5106f205a Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Sat, 26 Aug 2023 16:43:43 +0100 Subject: [PATCH] cryptography: fix build (#10890) Signed-off-by: David Korczynski --- projects/cryptography/Dockerfile | 2 +- projects/cryptography/build.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/projects/cryptography/Dockerfile b/projects/cryptography/Dockerfile index 411c17d3f..185767471 100644 --- a/projects/cryptography/Dockerfile +++ b/projects/cryptography/Dockerfile @@ -18,7 +18,7 @@ FROM gcr.io/oss-fuzz-base/base-builder-python RUN git clone https://github.com/pyca/cryptography RUN apt-get update -RUN apt-get install build-essential libssl-dev libffi-dev python3-dev cargo -y +RUN apt-get install build-essential libssl-dev libffi-dev pkg-config python3-dev cargo -y RUN pip3 install --upgrade pip RUN curl https://sh.rustup.rs -sSf | sh -s -- -y diff --git a/projects/cryptography/build.sh b/projects/cryptography/build.sh index 6fc8d0545..f787cee32 100644 --- a/projects/cryptography/build.sh +++ b/projects/cryptography/build.sh @@ -16,9 +16,13 @@ ################################################################################ # Build fuzzers in $OUT. -pip3 cache purge +python3 -m pip cache purge +# Compiling with sancov is causing some issues at the moment. This is likely +# due to some missing flags propagated throughout. unset RUSTFLAGS -pip3 install . +unset CXXFLAGS +unset CFLAGS +python3 -m pip install . cd $SRC for fuzzer in $(find $SRC -name 'fuzz_*.py'); do