ffado: 2.2.1 -> 2.3.0

+28 -66
-61
pkgs/os-specific/linux/ffado/build-fix.patch
··· 1 - diff --git a/SConstruct b/SConstruct 2 - index ca5d5cf..76738e3 100644 3 - --- a/SConstruct 4 - +++ b/SConstruct 5 - @@ -354,7 +354,7 @@ if conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'dbus' ) and co 6 - env['PYUIC4'] = True 7 - build_mixer = True 8 - 9 - -if conf.CheckForApp( 'xdg-desktop-menu --help' ): 10 - +if conf.CheckForApp( 'which xdg-desktop-menu' ): 11 - env['XDG_TOOLS'] = True 12 - else: 13 - print """ 14 - diff --git a/support/dbus/SConscript b/support/dbus/SConscript 15 - index 2b0f0c6..23069d8 100644 16 - --- a/support/dbus/SConscript 17 - +++ b/support/dbus/SConscript 18 - @@ -44,6 +44,7 @@ if not env.GetOption( "clean" ): 19 - env.MergeFlags( env['LIBXML26_FLAGS'] ) 20 - else: 21 - env.PrependUnique( LIBS=["expat"] ) 22 - + env.MergeFlags( "-DSERIALIZE_USE_EXPAT" ) 23 - 24 - env.Xml2Cpp_Proxy('controlclient-glue.h', 'control-interface.xml') 25 - env.Xml2Cpp_Adaptor('controlserver-glue.h', 'control-interface.xml') 26 - diff --git a/support/firmware/SConscript b/support/firmware/SConscript 27 - index 2939cb0..307b295 100644 28 - --- a/support/firmware/SConscript 29 - +++ b/support/firmware/SConscript 30 - @@ -36,6 +36,7 @@ if not env.GetOption( "clean" ): 31 - env.MergeFlags( env['LIBXML26_FLAGS'] ) 32 - else: 33 - env.PrependUnique( LIBS=["expat"] ) 34 - + env.MergeFlags( "-DSERIALIZE_USE_EXPAT" ) 35 - 36 - static_env = env.Clone() 37 - 38 - diff --git a/support/tools/SConscript b/support/tools/SConscript 39 - index 651621d..01b11f4 100644 40 - --- a/support/tools/SConscript 41 - +++ b/support/tools/SConscript 42 - @@ -36,6 +36,7 @@ if not e.GetOption( "clean" ): 43 - e.MergeFlags( env['LIBXML26_FLAGS'] ) 44 - else: 45 - e.PrependUnique( LIBS=["expat"] ) 46 - + e.MergeFlags( "-DSERIALIZE_USE_EXPAT" ) 47 - 48 - # 49 - # For the the ffado-diag tools 50 - diff --git a/tests/SConscript b/tests/SConscript 51 - index 307341f..4800b93 100644 52 - --- a/tests/SConscript 53 - +++ b/tests/SConscript 54 - @@ -35,6 +35,7 @@ if not env.GetOption( "clean" ): 55 - env.MergeFlags( env['LIBXML26_FLAGS'] ) 56 - else: 57 - env.PrependUnique( LIBS=["expat"] ) 58 - + env.MergeFlags( "-DSERIALIZE_USE_EXPAT" ) 59 - 60 - static_env = env.Clone() 61 -
+9 -5
pkgs/os-specific/linux/ffado/default.nix
··· 1 1 { stdenv, fetchurl, scons, pkgconfig, which, makeWrapper, python 2 - , expat, libraw1394, libconfig, libavc1394, libiec61883 2 + , expat, libraw1394, libconfig, libavc1394, libiec61883, libxmlxx, glibmm 3 3 4 4 # Optional dependencies 5 5 , libjack2 ? null, dbus ? null, dbus_cplusplus ? null, alsaLib ? null ··· 25 25 in 26 26 stdenv.mkDerivation rec { 27 27 name = "${prefix}ffado-${version}"; 28 - version = "2.2.1"; 28 + version = "2.3.0"; 29 29 30 30 src = fetchurl { 31 31 url = "http://www.ffado.org/files/libffado-${version}.tgz"; 32 - sha256 = "1ximic90l0av91njb123ra2zp6mg23yg5iz8xa5371cqrn79nacz"; 32 + sha256 = "122z8gya60nyg47i738z2yr4qcjyk2xix4kwhf5ybkmp23kcgqqq"; 33 33 }; 34 34 35 35 nativeBuildInputs = [ scons pkgconfig which makeWrapper python ]; ··· 38 38 expat libraw1394 libconfig libavc1394 libiec61883 39 39 ] ++ stdenv.lib.optionals (!libOnly) [ 40 40 optLibjack2 optDbus optDbus_cplusplus optAlsaLib optPyqt4 41 - optXdg_utils 41 + optXdg_utils libxmlxx glibmm 42 42 ]; 43 43 44 - patches = [ ./build-fix.patch ]; 44 + patches = [ ./gcc6.patch ]; 45 45 46 46 postPatch = '' 47 47 # SConstruct checks cpuinfo and an objdump of /bin/mount to determine the appropriate arch ··· 55 55 sed -i -e '1i #include <stdlib.h>' \ 56 56 -e '1i #include "version.h"' \ 57 57 src/libutil/serialize_expat.cpp 58 + ''; 59 + 60 + preConfigure = '' 61 + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags libxml++-2.6)" 58 62 ''; 59 63 60 64 # TODO fix ffado-diag, it doesn't seem to use PYPKGDIR
+19
pkgs/os-specific/linux/ffado/gcc6.patch
··· 1 + Author: Adrian Knoth <adi@drcomp.erfurt.thur.de> 2 + Forwarded: Yes 3 + Applied-Upstream: 2.3.1 4 + Last-Update: 2016-08-11 5 + Description: Fix FTBFS with gcc6 6 + 7 + Index: b/src/ffadotypes.h 8 + =================================================================== 9 + --- a/src/ffadotypes.h 10 + +++ b/src/ffadotypes.h 11 + @@ -51,6 +51,8 @@ struct ffado_handle { 12 + }; 13 + 14 + 15 + +#include <cmath> 16 + +#include <algorithm> 17 + #include <vector> 18 + #include <string> 19 +