Fix kcodecs build (#5955)

New kcodecs requires C++17, we need a newer gperf able of generating C++17
compliant code
This commit is contained in:
tsdgeos 2021-06-22 13:54:18 +02:00 committed by GitHub
parent d217819bd7
commit 89d8215b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -15,7 +15,8 @@
################################################################################ ################################################################################
FROM gcr.io/oss-fuzz-base/base-builder FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get install --yes cmake gperf RUN apt-get install --yes cmake
RUN curl -L http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz -O
RUN git clone --depth 1 --branch=5.15 git://code.qt.io/qt/qtbase.git RUN git clone --depth 1 --branch=5.15 git://code.qt.io/qt/qtbase.git
RUN git clone --depth 1 https://invent.kde.org/frameworks/kcodecs.git RUN git clone --depth 1 https://invent.kde.org/frameworks/kcodecs.git
RUN git clone --depth 1 https://invent.kde.org/frameworks/extra-cmake-modules.git RUN git clone --depth 1 https://invent.kde.org/frameworks/extra-cmake-modules.git

View File

@ -15,6 +15,20 @@
# #
################################################################################ ################################################################################
cd $SRC
tar xzf gperf*.tar.gz && rm -f gperf*.tar.gz
cd gperf*
FUZZ_CFLAGS="${CFLAGS}"
FUZZ_CXXFLAGS="${CXXFLAGS}"
unset CFLAGS
unset CXXFLAGS
# gperf is a code generator, so no need to sanitize it
./configure --prefix=/usr
make -j$(nproc) install
export CFLAGS="${FUZZ_CFLAGS}"
export CXXFLAGS="${FUZZ_CXXFLAGS}"
cd $SRC cd $SRC
cd extra-cmake-modules cd extra-cmake-modules
cmake . cmake .