From f3bf7a6a61f840b1430d73861e7fcaa734c10024 Mon Sep 17 00:00:00 2001 From: Samuel Gaist Date: Mon, 10 Oct 2022 20:04:23 +0200 Subject: [PATCH] qt: move Qt source clones to subfolder (#8734) The current Docker image as it is created does not allow the use of external sources to test fixes as the mount will come on top of all the SRC content which has more than just the Qt sources. This patch changes that and moves the clone to a dedicated folder so it will follow the same structure as the Qt sources and it will possible to mount them again to test fixes. Fixes #7634 --- projects/qt/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/qt/Dockerfile b/projects/qt/Dockerfile index d894710c5..70be96894 100644 --- a/projects/qt/Dockerfile +++ b/projects/qt/Dockerfile @@ -15,11 +15,18 @@ ################################################################################ FROM gcr.io/oss-fuzz-base/base-builder + RUN apt-get update && apt-get install -y libssl-dev ninja-build libc6-dev:i386 + RUN git clone --depth 1 https://github.com/AFLplusplus/AFLplusplus.git myaflplusplus && \ cp -r myaflplusplus/dictionaries afldictionaries && \ cp -r myaflplusplus/testcases afltestcases && \ rm -rf myaflplusplus + +# Simulate a classic Qt folder structure +RUN mkdir qt +WORKDIR $SRC/qt + RUN git clone --branch dev --depth 1 git://code.qt.io/qt/qt5.git && \ cp -r qt5/cmake . && \ rm -rf qt5