diff options
Diffstat (limited to 'office/mupdf/mupdf.SlackBuild')
-rw-r--r-- | office/mupdf/mupdf.SlackBuild | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/office/mupdf/mupdf.SlackBuild b/office/mupdf/mupdf.SlackBuild index e7d9d94b86..f7e98c4bdb 100644 --- a/office/mupdf/mupdf.SlackBuild +++ b/office/mupdf/mupdf.SlackBuild @@ -17,9 +17,23 @@ # - Updated README & slack-desc to mention XPS and CBZ # - Fix the man pages slightly +# Modified 20140224 by B. Watson (yalhcru@gmail.com): +# - backported security fix for CVE-2014-2013. I will be upgrading this +# build to mupdf-1.3, but it'll take more work than I currently have +# time for: +# + mupdf's internals have changed, will have to redo my patches +# + it depends on openjpeg 2.0 which SBo hasn't got yet. 2.0 uses an +# incompatible API, so an openjpeg 2.0 SlackBuild would require +# updates for everything that depends on it. +# + zathura-pdf-mupdf will need updating (mupdf's API has changed) +# + probably all the other zathura-* builds will need updating to +# be compatible with new zathura-pdf-mupdf +# The security fix is needed now, it's a tiny patch, and shouldn't have +# to wait on all that other stuff. + PRGNAM=mupdf VERSION=${VERSION:-1.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -80,6 +94,11 @@ patch -p1 < $CWD/man_page.diff sed -i 's,libopenjpeg,libopenjpeg1,' Makerules rm -rf thirdparty +# patch from upstream git, fix security vulnerability CVE-2014-2013. +# from here: http://git.ghostscript.com/?p=user/zeniko/mupdf.git;h=60dabde18d +# Patch is for mupdf-1.3, I've backported it to 1.2 for now. +patch -p1 < $CWD/xps_parse_color_overflow_fix.diff + make build=release prefix=/usr XCFLAGS="$SLKCFLAGS" make \ build=release \ |