From 57c8009bb4e030f0e2d816ad19ccf6f027dbc8ea Mon Sep 17 00:00:00 2001 From: Stefan Profanter Date: Thu, 15 Feb 2018 15:40:38 +0000 Subject: [PATCH] [open62541] install libmbedtls dependency (#1167) --- projects/open62541/Dockerfile | 8 +++++++- projects/open62541/build.sh | 1 + projects/open62541/project.yaml | 3 +-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/projects/open62541/Dockerfile b/projects/open62541/Dockerfile index 55e298fc5..099ff0b80 100644 --- a/projects/open62541/Dockerfile +++ b/projects/open62541/Dockerfile @@ -16,7 +16,13 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER git@s.profanter.me -RUN apt-get update && apt-get install -y make cmake python-six +RUN apt-get update && apt-get install -y make cmake python-six wget +# We need libmbedtls > 2.5.1 otherwise it does not include the lib for static linking +RUN wget http://ftp.us.debian.org/debian/pool/main/m/mbedtls/libmbedtls-dev_2.6.0-1_amd64.deb && \ + wget http://ftp.us.debian.org/debian/pool/main/m/mbedtls/libmbedcrypto0_2.6.0-1_amd64.deb && \ + wget http://ftp.us.debian.org/debian/pool/main/m/mbedtls/libmbedtls10_2.6.0-1_amd64.deb && \ + wget http://ftp.us.debian.org/debian/pool/main/m/mbedtls/libmbedx509-0_2.6.0-1_amd64.deb && \ + dpkg -i *.deb RUN git clone --depth 1 https://github.com/open62541/open62541.git -bmaster open62541 WORKDIR open62541 RUN git submodule update --init --recursive diff --git a/projects/open62541/build.sh b/projects/open62541/build.sh index 48a24b7e3..db59c1212 100755 --- a/projects/open62541/build.sh +++ b/projects/open62541/build.sh @@ -30,6 +30,7 @@ cd $WORK/open62541 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUA_ENABLE_AMALGAMATION=OFF \ -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2 \ -DBUILD_SHARED_LIBS=OFF -DUA_BUILD_EXAMPLES=OFF -DUA_LOGLEVEL=600 \ + -DUA_ENABLE_ENCRYPTION=ON \ -DUA_BUILD_OSS_FUZZ=ON \ $SRC/open62541/ diff --git a/projects/open62541/project.yaml b/projects/open62541/project.yaml index 8b2ef436e..a1f609c8d 100644 --- a/projects/open62541/project.yaml +++ b/projects/open62541/project.yaml @@ -2,9 +2,8 @@ homepage: "https://open62541.org/" primary_contact: "Stefan.Profanter@gmail.com" auto_ccs: - "julius.pfrommer@gmail.com" - - "f.palm@plt.rwth-aachen.de" - "chris_paul.iatrou@tu-dresden.de" sanitizers: - address - undefined -- memory \ No newline at end of file +- memory