git.iko.soy/typeable/nixpkgs
on master help sign in
jack2: apply patch to fix build with gcc5
commit55d822c512b9e995927a5ef203721ae1d111b651 authorCillian de Róiste <deroiste@syslab.com> dateThu 3 Sep 2015, 14:22 (11 years ago) parent1e83055
2 files changed+29−1
pkgs/misc/jackaudio/default.nix+3−1 pkgs/misc/jackaudio/jack-gcc5.patch+26
pkgs/misc/jackaudio/default.nix+3−1
@@ -41,10 +41,12 @@ stdenv.mkDerivation rec {
4141 optDbus optPythonDBus optLibffado optAlsaLib optLibopus
4242 ];
4343
44− patchPhase = ''
44+ prePatch = ''
4545 substituteInPlace svnversion_regenerate.sh --replace /bin/bash ${bash}/bin/bash
4646 '';
4747
48+ patches = [ ./jack-gcc5.patch ];
49+
4850 configurePhase = ''
4951 python waf configure --prefix=$out \
5052 ${optionalString (optDbus != null) "--dbus"} \
pkgs/misc/jackaudio/jack-gcc5.patchnew file+26
@@ -0,0 +1,26 @@
1+From d3c8e2d8d78899fba40a3e677ed4dbe388d82269 Mon Sep 17 00:00:00 2001
2+From: Adrian Knoth <adi@drcomp.erfurt.thur.de>
3+Date: Thu, 18 Sep 2014 18:29:23 +0200
4+Subject: [PATCH] Fix FTBFS with clang++
5+
6+Forwarded from http://bugs.debian.org/757820
7+---
8+ common/memops.c | 2 +-
9+ 1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+diff --git a/common/memops.c b/common/memops.c
12+index 27f6194..2d416b6 100644
13+--- a/common/memops.c
14++++ b/common/memops.c
15+@@ -198,7 +198,7 @@ static inline __m128i float_24_sse(__m128 s)
16+ */
17+ static unsigned int seed = 22222;
18+
19+-inline unsigned int fast_rand() {
20++static inline unsigned int fast_rand() {
21+ seed = (seed * 96314165) + 907633515;
22+ return seed;
23+ }
24+--
25+2.4.0
26+