From 2f8424f7419b5d27eb94feebfd3f5fe3519b8e2d Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Sun, 11 Sep 2016 18:15:19 +0200 Subject: [PATCH] jack: fix for gcc6 It doesn't hurt to add that fix for gcc4 as well. --- srcpkgs/jack/patches/fix-narrowing.patch | 22 ++++++++++++++++++++++ srcpkgs/jack/template | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/jack/patches/fix-narrowing.patch diff --git a/srcpkgs/jack/patches/fix-narrowing.patch b/srcpkgs/jack/patches/fix-narrowing.patch new file mode 100644 index 00000000000..ae98ba6f430 --- /dev/null +++ b/srcpkgs/jack/patches/fix-narrowing.patch @@ -0,0 +1,22 @@ +Fix for gcc6 -Wnarrowing error. + +--- tests/iodelay.cpp 2014-07-18 14:28:13.000000000 +0200 ++++ tests/iodelay.cpp 2016-09-11 18:12:00.563013354 +0200 +@@ -167,8 +167,8 @@ + static jack_port_t *jack_capt; + static jack_port_t *jack_play; + +-jack_latency_range_t capture_latency = {-1, -1}; +-jack_latency_range_t playback_latency = {-1, -1}; ++jack_latency_range_t capture_latency = {(jack_nframes_t)-1, (jack_nframes_t)-1}; ++jack_latency_range_t playback_latency = {(jack_nframes_t)-1, (jack_nframes_t)-1}; + + void + latency_cb (jack_latency_callback_mode_t mode, void *arg) +@@ -266,4 +266,4 @@ + return 0; + } + +-// -------------------------------------------------------------------------------- +\ Kein Zeilenumbruch am Dateiende. ++// -------------------------------------------------------------------------------- diff --git a/srcpkgs/jack/template b/srcpkgs/jack/template index 3ed42e30d33..f0ad8ac8aad 100644 --- a/srcpkgs/jack/template +++ b/srcpkgs/jack/template @@ -1,7 +1,7 @@ # Template file for 'jack' pkgname=jack version=1.9.10 -revision=9 +revision=10 # XXX libffado (firewire) hostmakedepends="pkg-config python" makedepends="eigen opus-devel libsamplerate-devel readline-devel dbus-devel celt-devel"