gnu: QPDF: Fix build with grep 3.8.

This fixes a regression from commit c527b0ce23.

* gnu/packages/pdf.scm (qpdf)[source](modules, snippet): New fields.
This commit is contained in:
Marius Bakke 2022-09-09 02:12:20 +02:00
parent 8ea970a945
commit fc398e1a74
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -833,7 +833,18 @@ (define-public qpdf
"/qpdf-" version ".tar.gz"))
(sha256
(base32
"049q94rzlcbdr09rvl8xfj3924mk7rfm35x8cg4nisl4lnr27z78"))))
"049q94rzlcbdr09rvl8xfj3924mk7rfm35x8cg4nisl4lnr27z78"))
(modules '((guix build utils)))
(snippet
#~(begin
;; grep 3.8 emits a warning about 'egrep' being deprecated
;; which breaks some tests. Adjust accordingly.
;; Try removing this for QPDF >= 11.
(substitute* '("build-scripts/build-doc"
"qpdf/qtest/qpdf/diff-encrypted"
"qpdf/qtest/qpdf/diff-ignore-ID-version")
(("egrep")
"grep -E"))))))
(build-system gnu-build-system)
(arguments
(list