rekado pushed a commit to branch wip-gnome-upgrades
in repository guix.
commit a19db8605e7faaa42468b83eda57462c78bd7f09
Author: Ricardo Wurmus <[email protected]>
Date: Wed Aug 8 13:07:16 2018 +0200
gnu: cups-filters: Fix build with newer version of poppler.
* gnu/packages/cups.scm (cups-filters)[arguments]: Add build phase
"patch-for-poppler".
---
gnu/packages/cups.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index 9c470c4..a7f9484 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -120,6 +120,12 @@
(("/usr/local/lib/cups/filter")
(string-append out "/lib/cups/filter")))
#t)))
+ (add-after 'unpack 'patch-for-poppler
+ (lambda _
+ (substitute* "filter/pdf.cxx"
+ (("GooString \\*field_name;" m)
+ (string-append "const " m)))
+ #t))
(add-after 'install 'wrap-filters
(lambda* (#:key inputs outputs #:allow-other-keys)
;; Some filters expect to find 'gs' in $PATH. We cannot