Updated the docker and build of xpdf to work with updated xpdf download page. Now xpdf download page has a latest link. (#3938)

This commit is contained in:
DavidKorczynski 2020-06-05 21:57:57 +01:00 committed by GitHub
parent bc3e571894
commit ae45c47eec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -17,7 +17,7 @@
FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER david@adalogics.com
RUN apt-get update && apt-get install -y make wget cmake libqt4-dev
RUN wget https://xpdfreader-dl.s3.amazonaws.com/xpdf-4.02.tar.gz
RUN wget --no-check-certificate https://dl.xpdfreader.com/xpdf-latest.tar.gz
WORKDIR $SRC
COPY fuzz_*.cc $SRC/

View File

@ -15,11 +15,10 @@
#
################################################################################
# Unpack the file
tar -zxvf xpdf-4.02.tar.gz
# Now make the build directory
cd xpdf-4.02
# Unpack the file and cd into it
tar -zxvf xpdf-latest.tar.gz
dir_name=`tar -tzf xpdf-latest.tar.gz | head -1 | cut -f1 -d"/"`
cd $dir_name
# Make minor change in the CMakeFiles file.
sed -i 's/#--- object files needed by XpdfWidget/add_library(testXpdfStatic STATIC $<TARGET_OBJECTS:xpdf_objs>)\n#--- object files needed by XpdfWidget/' ./xpdf/CMakeLists.txt