From 770d11d6391d80064fe86315e04792a2b2a6d9f7 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 9 Jun 2014 06:36:46 +0200 Subject: [PATCH] mumble: update to 1.2.6. --- ...36284b5f1baa61836c98ff0d518392140c5d.patch | 34 +++++++++++++++++++ srcpkgs/mumble/template | 16 ++++----- 2 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 srcpkgs/mumble/patches/349436284b5f1baa61836c98ff0d518392140c5d.patch diff --git a/srcpkgs/mumble/patches/349436284b5f1baa61836c98ff0d518392140c5d.patch b/srcpkgs/mumble/patches/349436284b5f1baa61836c98ff0d518392140c5d.patch new file mode 100644 index 0000000000..8cfe438c47 --- /dev/null +++ b/srcpkgs/mumble/patches/349436284b5f1baa61836c98ff0d518392140c5d.patch @@ -0,0 +1,34 @@ +From 349436284b5f1baa61836c98ff0d518392140c5d Mon Sep 17 00:00:00 2001 +From: Christian Krause +Date: Mon, 28 Apr 2014 03:08:08 +0200 +Subject: [PATCH] Avoid "jump to label crosses initialization" error. + +Move variable "buffer" into the while loop to avoid a compile error +with g++ 4.9.0. + +Although earlier compiler versions did accept the code, jumping into the +scope of an variable length array is not allowed: +http://gcc.gnu.org/onlinedocs/gcc-4.3.0/gcc/Variable-Length.html +--- + src/mumble/OSS.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/mumble/OSS.cpp b/src/mumble/OSS.cpp +index eb87d5b..4af1326 100644 +--- src/mumble/OSS.cpp ++++ src/mumble/OSS.cpp +@@ -243,9 +243,9 @@ void OSSInput::run() { + eMicFormat = SampleShort; + initializeMixer(); + +- short buffer[iMicLength]; +- + while (bRunning) { ++ short buffer[iMicLength]; ++ + int len = static_cast(iMicLength * iMicChannels * sizeof(short)); + ssize_t l = read(fd, buffer, len); + if (l != len) { +-- +1.9.3 + diff --git a/srcpkgs/mumble/template b/srcpkgs/mumble/template index c8c04fb996..7c08455fa8 100644 --- a/srcpkgs/mumble/template +++ b/srcpkgs/mumble/template @@ -1,12 +1,12 @@ # Template file for 'mumble' pkgname=mumble -version=1.2.5 -revision=2 +version=1.2.6 +revision=1 hostmakedepends="pkg-config" makedepends=" libcap-devel Ice-devel>=3.5 protobuf-devel>=2.5.0 libXi-devel qt-devel openssl-devel speex-devel libsndfile-devel libX11-devel alsa-lib-devel pulseaudio-devel - avahi-compat-libs-devel MesaLib-devel libstdc++-devel libogg-devel boost-devel" + avahi-compat-libs-devel MesaLib-devel opus-devel libogg-devel boost-devel" depends="qt-plugin-sqlite desktop-file-utils hicolor-icon-theme" replaces="libmumble<=1.2.3" short_desc="Open source, low-latency, high quality voice chat for gaming" @@ -14,20 +14,18 @@ maintainer="Juan RP " homepage="http://mumble.sourceforge.net/" license="BSD" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" -checksum=915156946f7662c2488e4c40c95cb95c4ff00532789515da7df775a36d544faf - -disable_parallel_build=yes +checksum=876cdecfb89798ab45020cdae0d64bd0fa899a9a97c2c7f4a6e706d4165fb6ff do_configure() { # Needs bundled celt for some reason qmake -recursive main.pro \ - CONFIG+="no-speechd bundled-celt no-bundled-speex no-g15 \ - pulseaudio no-embed-qt-translations no-update" \ + CONFIG+="bundled-celt no-bundled-opus no-speechd no-bundled-speex no-g15 \ + no-xevie pulseaudio no-embed-qt-translations no-update-packaged" \ DEFINES+="PLUGIN_PATH=/usr/lib/mumble" } do_build() { - make ${makejobs} release + make release } do_install() {