summary refs log tree commit diff
path: root/gnu/packages/audio.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-03-16 09:41:20 +0100
committerRicardo Wurmus <rekado@elephly.net>2017-03-16 09:41:20 +0100
commit56f76b08be97549dcc409b090186103413dc4e4b (patch)
tree17ef6e65c46c81976978b7740a4c166fac101149 /gnu/packages/audio.scm
parent5707ce6e4bfd808c5fd78b043ab0e0c92ee0901e (diff)
downloadguix-56f76b08be97549dcc409b090186103413dc4e4b.tar.gz
gnu: jack-2: Fix build by patching fast_rand.
* gnu/packages/audio.scm (jack-2)[arguments]: Add phase "patch-fast_rand" to
apply upstream fixes.
Diffstat (limited to 'gnu/packages/audio.scm')
-rw-r--r--gnu/packages/audio.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 2b11a32caf..29b4718452 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -1286,6 +1286,15 @@ synchronous execution of all clients, and low latency operation.")
                            "--alsa")
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'patch-fast_rand
+           (lambda _
+             (substitute* "common/memops.c"
+               ;; Fixed in upstream commit d3c8e2d8d78899fba40a3e677ed4dbe388d82269
+               (("^inline unsigned int fast_rand" line)
+                (string-append "static " line))
+               ;; Fixed in upstream commit 0279a2d65a36d1378f5bab56d95bf9e99cc8cefb
+               ((" 96314165") " 196314165"))
+             #t))
          (add-before
           'configure 'set-linkflags
           (lambda _