Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions projects/dlplibs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ FROM gcr.io/oss-fuzz-base/base-builder:ubuntu-24-04
RUN apt-get update && \
apt-get install -y wget xz-utils autoconf automake libtool pkg-config \
gperf libglm-dev patch libboost-dev
ADD https://dev-www.libreoffice.org/src/lcms2-2.8.tar.gz \
https://dev-www.libreoffice.org/src/zlib-1.2.11.tar.xz \
https://dev-www.libreoffice.org/src/libpng-1.6.34.tar.xz \
https://dev-www.libreoffice.org/src/libxml2-2.9.7.tar.gz \
https://dev-www.libreoffice.org/src/icu4c-60_2-src.tgz \
https://dev-www.libreoffice.org/src/mdds-1.3.1.tar.bz2 \
ADD https://dev-www.libreoffice.org/src/lcms2-2.18.tar.gz \
https://dev-www.libreoffice.org/src/zlib-1.3.2.tar.xz \
https://dev-www.libreoffice.org/src/libpng-1.6.56.tar.xz \
https://dev-www.libreoffice.org/src/libxml2-2.14.6.tar.xz \
https://dev-www.libreoffice.org/src/icu4c-78.2-sources.tgz \
https://dev-www.libreoffice.org/src/mdds-3.1.0.tar.xz \
$SRC/
# download fuzzing corpora
ADD https://dev-www.libreoffice.org/corpus/olefuzzer_seed_corpus.zip \
Expand Down Expand Up @@ -109,7 +109,8 @@ RUN git clone --depth 1 git://gerrit.libreoffice.org/libpagemaker
RUN git clone --depth 1 git://gerrit.libreoffice.org/libfreehand
RUN git clone --depth 1 git://git.code.sf.net/p/libwpd/code libwpd
RUN git clone --depth 1 git://git.code.sf.net/p/libwpg/code libwpg
RUN git clone --depth 1 https://github.com/fosnola/libstaroffice
RUN git clone --depth 1 https://github.com/fosnola/libstaroffice && \
sed -i 's/AC_PREREQ(\[2\.72\])/AC_PREREQ([2.71])/' libstaroffice/configure.ac
RUN git clone --depth 1 git://git.code.sf.net/p/libwps/code libwps
RUN git clone --depth 1 git://git.code.sf.net/p/libmwaw/libmwaw
RUN git clone --depth 1 git://git.code.sf.net/p/libebook/code libe-book
Expand Down
25 changes: 11 additions & 14 deletions projects/dlplibs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,32 @@
# Suppress C++17 errors from old dependency headers (lcms2 uses 'register')
export CXXFLAGS="$CXXFLAGS -Wno-register"

tar -xJf $SRC/zlib-1.2.11.tar.xz
pushd zlib-1.2.11
tar -xJf $SRC/zlib-1.3.2.tar.xz
pushd zlib-1.3.2
./configure --static
make -j$(nproc)
export ZLIB_CFLAGS="-I$(pwd)"
export ZLIB_LIBS="-L$(pwd) -lz"
popd

tar -xzf $SRC/lcms2-2.8.tar.gz
pushd lcms2-2.8
tar -xzf $SRC/lcms2-2.18.tar.gz
pushd lcms2-2.18
./configure --disable-shared --enable-static --without-jpeg --without-tiff
make -C src -j$(nproc)
export LCMS2_CFLAGS="-I$(pwd)/include"
export LCMS2_LIBS="-L$(pwd)/src -llcms2"
popd

tar -xJf $SRC/libpng-1.6.34.tar.xz
pushd libpng-1.6.34
tar -xJf $SRC/libpng-1.6.56.tar.xz
pushd libpng-1.6.56
./configure --disable-shared --enable-static CPPFLAGS="$ZLIB_CFLAGS" LDFLAGS="$ZLIB_LIBS"
make -j$(nproc)
export LIBPNG_CFLAGS="-I$(pwd)"
export LIBPNG_LIBS="-L$(pwd) -lpng16"
popd

tar -xzf $SRC/libxml2-2.9.7.tar.gz
pushd libxml2-2.9.7
tar -xJf $SRC/libxml2-2.14.6.tar.xz
pushd libxml2-2.14.6
./configure --disable-shared --enable-static --disable-ipv6 --without-python --without-zlib --without-lzma
make -j$(nproc)
export LIBXML_CFLAGS="-I$(pwd)/include"
Expand All @@ -52,11 +52,8 @@ export XML_CFLAGS="$LIBXML_CFLAGS"
export XML_LIBS="$LIBXML_LIBS"
popd

tar -xzf $SRC/icu4c-60_2-src.tgz
tar -xzf $SRC/icu4c-78.2-sources.tgz
pushd icu/source
patch -p2 < $SRC/icu4c-ubsan.patch
patch -p3 < $SRC/ofz3670.patch
patch -p3 < $SRC/ofz4860.patch
./configure --disable-shared --enable-static --with-data-packaging=static --disable-dyload --disable-strict \
--disable-layout --disable-samples --disable-extras --disable-icuio --disable-plugins \
CPPFLAGS=-DU_USE_STRTOD_L=0
Expand All @@ -67,8 +64,8 @@ popd

# System boost from libboost-dev package is used (headers in /usr/include/boost/)

tar -xjf $SRC/mdds-1.3.1.tar.bz2
pushd mdds-1.3.1
tar -xJf $SRC/mdds-3.1.0.tar.xz
pushd mdds-3.1.0
./configure
export MDDS_CFLAGS="-I$(pwd)/include"
export MDDS_LIBS=' '
Expand Down
91 changes: 0 additions & 91 deletions projects/dlplibs/icu4c-ubsan.patch

This file was deleted.

34 changes: 0 additions & 34 deletions projects/dlplibs/ofz2894.patch

This file was deleted.

28 changes: 0 additions & 28 deletions projects/dlplibs/ofz3670.patch

This file was deleted.

26 changes: 0 additions & 26 deletions projects/dlplibs/ofz4303.patch

This file was deleted.

25 changes: 0 additions & 25 deletions projects/dlplibs/ofz4860.patch

This file was deleted.

Loading
Loading