From 392e5f8557a34d30958e015a6952a682ef73a439 Mon Sep 17 00:00:00 2001 From: Guido Vranken Date: Mon, 23 Nov 2020 15:26:15 +0100 Subject: [PATCH] [libressl] Fix Cryptofuzz build (#4691) --- projects/libressl/Dockerfile | 3 ++- projects/libressl/build.sh | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/projects/libressl/Dockerfile b/projects/libressl/Dockerfile index 171c388a3..964569aaf 100644 --- a/projects/libressl/Dockerfile +++ b/projects/libressl/Dockerfile @@ -15,11 +15,12 @@ ################################################################################ FROM gcr.io/oss-fuzz-base/base-builder -RUN apt-get update && apt-get install -y make cmake libboost-all-dev +RUN apt-get update && apt-get install -y make cmake wget RUN git clone --depth 1 https://github.com/libressl-portable/portable.git libressl RUN git clone --depth 1 https://github.com/libressl-portable/fuzz.git libressl.fuzzers RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz-corpora +RUN wget https://dl.bintray.com/boostorg/release/1.74.0/source/boost_1_74_0.tar.bz2 WORKDIR libressl RUN ./update.sh COPY build.sh *.options $SRC/ diff --git a/projects/libressl/build.sh b/projects/libressl/build.sh index efc3fd402..48cf9599c 100755 --- a/projects/libressl/build.sh +++ b/projects/libressl/build.sh @@ -16,6 +16,14 @@ # ################################################################################ +# Install Boost headers +cd $SRC/ +tar jxf boost_1_74_0.tar.bz2 +cd boost_1_74_0/ +CFLAGS="" CXXFLAGS="" ./bootstrap.sh +CFLAGS="" CXXFLAGS="" ./b2 headers +cp -R boost/ /usr/include/ + # Prevent Boost compilation error with -std=c++17 export CXXFLAGS="$CXXFLAGS -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR"