mirror of https://github.com/google/oss-fuzz.git
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:
parent
bc3e571894
commit
ae45c47eec
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue