aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2018-08-08 13:07:16 +0200
committerRicardo Wurmus <rekado@elephly.net>2019-03-07 13:44:25 +0100
commita6d378e2e7b37db686c73d7c374d7705beb4146c (patch)
tree8afa0b1bdd0d35e46619281adda1654ddbe3c7ae /gnu
parent294ff39d27c4a3ff0dbc2e2f8b8af40c21bf3aaa (diff)
downloadguix-a6d378e2e7b37db686c73d7c374d7705beb4146c.tar
guix-a6d378e2e7b37db686c73d7c374d7705beb4146c.tar.gz
gnu: cups-filters: Fix build with newer version of poppler.
* gnu/packages/cups.scm (cups-filters)[arguments]: Add build phase "patch-for-poppler".
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/cups.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index b20e92518b..047f9033ad 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -122,6 +122,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