cryptography: fix build (#10890)

Signed-off-by: David Korczynski <david@adalogics.com>
This commit is contained in:
DavidKorczynski 2023-08-26 16:43:43 +01:00 committed by GitHub
parent d253560ffd
commit 26accb4a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

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

View File

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