summaryrefslogtreecommitdiff
path: root/gnu/packages/music.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-10-21 21:53:46 +0000
committerRicardo Wurmus <rekado@elephly.net>2021-10-21 21:53:46 +0000
commit751b68981c57031d6f093dda688f92ebdbf50848 (patch)
treef375ffb0c56755fc96b4d21c159feadac9f020b8 /gnu/packages/music.scm
parent000b34085b93e997877f9262c03937dd17d93741 (diff)
gnu: lilypond: Fix build with Ghostscript 9.54.
* gnu/packages/music.scm (lilypond)[arguments]: Add build phase 'adjust-to-API-change.
Diffstat (limited to 'gnu/packages/music.scm')
-rw-r--r--gnu/packages/music.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 30578e7752..d985e29cd5 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -1460,6 +1460,15 @@ and auto-mapping slices to MIDI note numbers.")
(("\"/bin/sh\"")
(string-append "\"" (which "sh") "\"")))
#t))
+ (add-after 'fix-path-references 'adjust-to-API-change
+ (lambda _
+ (substitute* '("Documentation/pictures/GNUmakefile"
+ "stepmake/stepmake/tex-rules.make")
+ ((".*-c .setpdfwrite.*") ""))
+ (substitute* "scm/backend-library.scm"
+ (("\"-c.setpdfwrite\"") ""))
+ (substitute* "scm/framework-ps.scm"
+ (("\".setpdfwrite ") "\""))))
(add-before 'configure 'prepare-configuration
(lambda _
(substitute* "configure"