From 07dfc89859a3539100a23c8acc0d643f4f7cb99d Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Wed, 18 Oct 2017 22:15:09 +0200 Subject: gnu: mupdf: Fix CVE-2017-15587. * gnu/packages/patches/mupdf-CVE-2017-15587.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/pdf.scm (mupdf)[source](patches): Use it. --- gnu/packages/pdf.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gnu/packages/pdf.scm') diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index 98df90e2d4..56f5486791 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -540,7 +540,8 @@ extracting content or merging files.") (sha256 (base32 "02phamcchgsmvjnb3ir7r5sssvx9fcrscn297z73b82n1jl79510")) - (patches (search-patches "mupdf-build-with-openjpeg-2.1.patch")) + (patches (search-patches "mupdf-build-with-openjpeg-2.1.patch" + "mupdf-CVE-2017-15587.patch")) (modules '((guix build utils))) (snippet ;; Delete all the bundled libraries except for mujs, which is -- cgit v1.2.3 From 43dc47fa249aebe3b5cbc0141c2be4ba226e92bf Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Wed, 18 Oct 2017 22:30:33 +0200 Subject: gnu: Add zathura-pdf-mupdf. * gnu/packages/pdf.scm (zathura-pdf-mupdf): New variable. --- gnu/packages/pdf.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'gnu/packages/pdf.scm') diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index 56f5486791..6dbba2c7ec 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -413,6 +413,41 @@ using libspectre.") using the DjVuLibre library.") (license license:zlib))) +(define-public zathura-pdf-mupdf + (package + (name "zathura-pdf-mupdf") + (version "0.3.1") + (source (origin + (method url-fetch) + (uri + (string-append "https://pwmt.org/projects/zathura-pdf-mupdf" + "/download/zathura-pdf-mupdf-" version ".tar.gz")) + (sha256 + (base32 + "06zqn8z6a0hfsx3s1kzqvqzb73afgcl6z5r062sxv7kv570fvffr")))) + (native-inputs `(("pkg-config" ,pkg-config))) + (propagated-inputs `(("girara" ,girara))) + (inputs + `(("gtk+" ,gtk+) + ("jbig2dec" ,jbig2dec) + ("libjpeg" ,libjpeg) + ("mupdf" ,mupdf) + ("openjpeg" ,openjpeg) + ("openssl" ,openssl) + ("zathura" ,zathura))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list (string-append "PREFIX=" %output) + (string-append "PLUGINDIR=" %output "/lib/zathura") + "CC=gcc") + #:tests? #f ;No tests. + #:phases (modify-phases %standard-phases (delete 'configure)))) + (home-page "https://pwmt.org/projects/zathura-pdf-mupdf/") + (synopsis "PDF support for zathura (mupdf backend)") + (description "The zathura-pdf-mupdf plugin adds PDF support to zathura +by using the @code{mupdf} rendering library.") + (license license:zlib))) + (define-public zathura-pdf-poppler (package (name "zathura-pdf-poppler") -- cgit v1.2.3