From fc398e1a741f0074b6043f8f525b695dd0f071ee Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Fri, 9 Sep 2022 02:12:20 +0200 Subject: gnu: QPDF: Fix build with grep 3.8. This fixes a regression from commit c527b0ce23c5d9228d29c5f90892aa5f05e77347. * gnu/packages/pdf.scm (qpdf)[source](modules, snippet): New fields. --- gnu/packages/pdf.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index cf4d9c872f..09ecd252bc 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -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 -- cgit v1.2.3