From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:49667) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZmSy-0004Ne-Hb for guix-patches@gnu.org; Tue, 26 Nov 2019 20:50:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZmSw-0001Vh-FN for guix-patches@gnu.org; Tue, 26 Nov 2019 20:50:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47270) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZmSw-0001Vb-AZ for guix-patches@gnu.org; Tue, 26 Nov 2019 20:50:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iZmSw-0007aX-6m for guix-patches@gnu.org; Tue, 26 Nov 2019 20:50:02 -0500 Subject: [bug#38395] [PATCH] gnu: mumble: Update to 1.3.0. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:49408) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZmSQ-0003jj-Ud for guix-patches@gnu.org; Tue, 26 Nov 2019 20:49:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZmKr-0005gL-Gg for guix-patches@gnu.org; Tue, 26 Nov 2019 20:41:43 -0500 Received: from lev.selidor.net ([66.246.138.156]:48293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iZmKr-0005fn-Ap for guix-patches@gnu.org; Tue, 26 Nov 2019 20:41:41 -0500 Date: Tue, 26 Nov 2019 20:40:38 -0500 From: Ivan Vilata i Balaguer Message-ID: <20191127014038.GD17004@sax.terramar.selidor.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IU5/I01NYhRvwH70" Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38395@debbugs.gnu.org --IU5/I01NYhRvwH70 Content-Type: multipart/mixed; boundary="ZJcv+A0YCCLh2VIg" Content-Disposition: inline --ZJcv+A0YCCLh2VIg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! This patch updates Mumble to 1.3.0. It came about as a fix to , but I'm posting it here directly since fixing that issue was just a byproduct of the version update. Notes from the patch comment indicating other differences with the previous package version: > Besides the update in itself, bundled software components are enabled as > long as they are not already implemented in an existing package (in which > case the package is used instead). Some comments were added to indicate = why > bundled software components are kept or removed, why features are disable= d, > and the reason to include each license. Cheers! --=20 Ivan Vilata i Balaguer -- https://elvil.net/ --ZJcv+A0YCCLh2VIg Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="0001-gnu-mumble-Update-to-1.3.0.patch" Content-Transfer-Encoding: quoted-printable =46rom 987f03ca1721c1aa54a078a9be143abbac82bf11 Mon Sep 17 00:00:00 2001 =46rom: Ivan Vilata-i-Balaguer Date: Fri, 22 Nov 2019 01:15:53 -0500 Subject: [PATCH] gnu: mumble: Update to 1.3.0. Besides the update in itself, bundled software components are enabled as lo= ng as they are not already implemented in an existing package (in which case t= he package is used instead). Some comments were added to indicate why bundled software components are kept or removed, why features are disabled, and the reason to include each license. * gnu/packages/telephony.scm (mumble): Update to 1.3.0. * gnu/packages/patches/mumble-1.2.19-abs.patch: Remove file. --- gnu/packages/patches/mumble-1.2.19-abs.patch | 31 ----- gnu/packages/telephony.scm | 114 ++++++++++++------- 2 files changed, 70 insertions(+), 75 deletions(-) delete mode 100644 gnu/packages/patches/mumble-1.2.19-abs.patch diff --git a/gnu/packages/patches/mumble-1.2.19-abs.patch b/gnu/packages/pa= tches/mumble-1.2.19-abs.patch deleted file mode 100644 index 683325f4bc..0000000000 --- a/gnu/packages/patches/mumble-1.2.19-abs.patch +++ /dev/null @@ -1,31 +0,0 @@ -From ea861fe86743c8402bbad77d8d1dd9de8dce447e Mon Sep 17 00:00:00 2001 -From: Mikkel Krautz -Date: Fri, 29 Dec 2017 14:47:25 +0100 -Subject: [PATCH] AudioOutput: do not use non-existant template version of - std::abs. - -This change fixes AudioOutput to use the float overload of std::abs: - - float std::abs(float); - -instead of a non-existant template version (for newer Boost 1.66). - -Fixes mumble-voip/mumble#3281 - ---- - src/mumble/AudioOutput.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/mumble/AudioOutput.cpp b/src/mumble/AudioOutput.cpp -index cbe0c0e2b..7a0a5e2ab 100644 ---- a/src/mumble/AudioOutput.cpp -+++ b/src/mumble/AudioOutput.cpp -@@ -437,7 +437,7 @@ bool AudioOutput::mix(void *outbuff, unsigned int nsam= p) { - top[2] =3D 0.0f; - } -=20 -- if (std::abs(front[0] * top[0] + front[1] * top[1] + front[2] = * top[2]) > 0.01f) { -+ if (std::abs(front[0] * top[0] + front[1] * top[1] + front[2] * top[2= ]) > 0.01f) { - // Not perpendicular. Assume Y up and rotate 90 degrees. -=20 - float azimuth =3D 0.0f; diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm index abb68f62b2..e1ad2f90f5 100644 --- a/gnu/packages/telephony.scm +++ b/gnu/packages/telephony.scm @@ -12,6 +12,7 @@ ;;; Copyright =A9 2018 Jovany Leandro G.C ;;; Copyright =A9 2018 Tim Gesthuizen ;;; Copyright =A9 2019 Pierre Neidhardt +;;; Copyright =A9 2019 Ivan Vilata i Balaguer ;;; ;;; This file is part of GNU Guix. ;;; @@ -43,6 +44,7 @@ #:use-module (gnu packages file) #:use-module (gnu packages protobuf) #:use-module (gnu packages gettext) + #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) @@ -378,30 +380,34 @@ address of one of the participants.") (define-public mumble (package (name "mumble") - (version "1.2.19") + (version "1.3.0") (source (origin (method url-fetch) (uri (string-append "https://mumble.info/snapshot/" name "-" version ".tar.gz")) (sha256 (base32 - "1s60vaici3v034jzzi20x23hsj6mkjlc0glipjq4hffrg9qgnizh")) - (patches (search-patches "mumble-1.2.19-abs.patch")) + "03dqg5yf6d7ilc1wydpshnv1ndssppcbadqcq20jm5j4fdaf53cs")) (modules '((guix build utils))) (snippet `(begin ;; Remove bundled software. - (for-each delete-file-recursively '("3rdparty" - "speex" - "speexbuild" - "opus-build" - "opus-src" - "sbcelt-helper-build" - "sbcelt-lib-build" - "sbcelt-src")) - ;; TODO: Celt is still bundled. It has been merged into = Opus - ;; and will be removed after 1.3.0. - ;; https://github.com/mumble-voip/mumble/issues/1999 + ;; Keep arc4random, celt-0.7.0, celt-0.11.0, qqbonjour, = rnnoise, smallft. + (for-each delete-file-recursively '("3rdparty/GL" ; in m= esa + "3rdparty/mach-overr= ide-build" ; for macx + "3rdparty/mach-overr= ide-src" + "3rdparty/minhook-bu= ild" ; for win32 + "3rdparty/minhook-sr= c" + "3rdparty/opus-build= " ; in opus + "3rdparty/opus-src" + "3rdparty/sbcelt-hel= per-build" ; not enabled + "3rdparty/sbcelt-lib= -build" + "3rdparty/sbcelt-src" + "3rdparty/speex-buil= d" ; in speex + "3rdparty/speex-src" + "3rdparty/speexdsp-s= rc" ; in speexdsp + "3rdparty/xinputchec= k-build" ; for win32 + "3rdparty/xinputchec= k-src")) #t)))) (build-system gnu-build-system) (arguments @@ -409,23 +415,25 @@ address of one of the participants.") #:phases (modify-phases %standard-phases (replace 'configure - (lambda* (#:key outputs #:allow-other-keys) - (invoke "qmake" "main.pro" "-recursive" + (lambda* (#:key inputs outputs #:allow-other-keys) + (invoke "qmake" "main.pro" "QMAKE_LRELEASE=3Dlrelease" + (string-append "MUMBLE_PYTHON=3D" + (string-append (assoc-ref inputs "pyth= on") "/bin/python3")) (string-append "CONFIG+=3D" (string-join - (list "no-update" - "no-ice" + ;; Options used are listed in the sam= e order + ;; as in the "INSTALL" file + ;; (plus the final "packaged" and "re= lease"). + (list "no-bundled-speex" ; in speex + "no-bundled-opus" ; in opus + "no-g15" ; not packaged + "no-jackaudio" ; use pulse + "no-oss" ; use pulse + "no-alsa" ; use pulse + "no-update" "no-embed-qt-translations" - "no-bundled-speex" - "pch" - "no-bundled-opus" - "no-celt" - "no-alsa" - "no-oss" - "no-portaudio" - "speechd" - "no-g15" - "no-bonjour" + "no-ice" ; not packaged + "packaged" "release"))) (string-append "DEFINES+=3D" "PLUGIN_PATH=3D" @@ -435,6 +443,10 @@ address of one of the participants.") (lambda _ (substitute* "src/mumble/TextToSpeech_unix.cpp" (("libspeechd.h") "speech-dispatcher/libspeechd.h")))) + (add-before 'install 'disable-murmur-ice + (lambda _ + (substitute* "scripts/murmur.ini.system" + (("^ice=3D") ";ice=3D")))) (replace 'install ; install phase does not exist (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) @@ -462,24 +474,38 @@ address of one of the participants.") (for-each (lambda (file) (install-file file lib)) (find-files "." "\\.so\\.")) (for-each (lambda (file) (install-file file lib)) - (find-files "release/plugins" "\\.so$")))))))) + (find-files "release/plugins" "\\.so$"))))) + (add-after 'install 'wrap-executable + ;; Add path to plugins for SVG support (otherwise many icons ar= e not shown). + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (for-each (lambda (program) + (wrap-program (string-append out "/bin/" progra= m) + `("QT_PLUGIN_PATH" ":" prefix + ,(map (lambda (label) + (string-append (assoc-ref inputs la= bel) + "/lib/qt5/plugins")) + '("qtbase" "qtsvg"))))) + '("mumble" "mumble-overlay")))))))) (inputs `(("avahi" ,avahi) - ("protobuf" ,protobuf-3.5) - ("openssl" ,openssl) - ("libsndfile" ,libsndfile) ("boost" ,boost) - ("opus" ,opus) - ("speex" ,speex) - ("speexdsp" ,speexdsp) - ("speech-dispatcher" ,speech-dispatcher) - ("libx11" ,libx11) + ("libsndfile" ,libsndfile) ("libxi" ,libxi) - ("qt-4" ,qt-4) - ("alsa-lib" ,alsa-lib) - ("pulseaudio" ,pulseaudio))) + ("mesa" ,mesa) ; avoid bundled + ("openssl" ,openssl) + ("opus" ,opus) ; avoid bundled + ("protobuf" ,protobuf) + ("pulseaudio" ,pulseaudio) + ("qtbase" ,qtbase) + ("qtsvg" ,qtsvg) + ("speech-dispatcher" ,speech-dispatcher) + ("speex" ,speex) ; avoid bundled + ("speexdsp" ,speexdsp))) ; avoid bundled (native-inputs - `(("pkg-config" ,pkg-config))) + `(("pkg-config" ,pkg-config) + ("python" ,python) + ("qttools" ,qttools))) (synopsis "Low-latency, high quality voice chat software") (description "Mumble is an low-latency, high quality voice chat @@ -487,9 +513,9 @@ software primarily intended for use while gaming. Mumble consists of two applications for separate usage: @code{mumble} for the client, and @code{murmur} for the server.") (home-page "https://wiki.mumble.info/wiki/Main_Page") - (license (list license:bsd-3 - ;; The bundled celt is bsd-2. Remove after 1.3.0. - license:bsd-2)))) + (license (list license:bsd-3 ; mumble celt-0.7.0 qqbonjour rnnoise sma= llft + license:bsd-2 ; celt-0.11.0 + license:isc)))) ; arc4random =20 (define-public twinkle (package --=20 2.24.0 --ZJcv+A0YCCLh2VIg-- --IU5/I01NYhRvwH70 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEHpvwBPZcchIQr6TuPezBBfXdI4IFAl3d1BIACgkQPezBBfXd I4LNvg//QFyyixO0fj/BPv3zmym1Cb4h9/jaHHTYs488nO90jD9fEQP4WWaYNk/0 p/JLamF+Cp+nQOvvSunDDlEZYDVHHAJyWE7yCtCbVwz+CsEr+dYgpUgQ1jJOju/Z l+z4k4CTRJ6pyCanIr/l30RN0xgVIek+eF+0d31o7CUmsa844br5obOOmZ/abu1e wkqp0/BOEAKDaMfg1NiCiQD8S2hbTleJtmOcFMsPwULVgZl5th3CZuBxkA4GqwRo rPlpmXsMsY8CQdvDnFLRgMFNJ+jRUoluSFGJt+jK3B9UL8TOCWgGFMS/hWqFJaiR VVDKPwiUV9iHMgPgOCpXLQQsUZxeZ69P9e7XC1u5sxc+yrYQ/A1luTz6rEmIdxQa uSKykYfcTCyBaTjKFR36N/Mkk/8w+ZfZfiX/uds5+L/r/HU5l8HriB0Baz6GAkyj DYmkjZdlL3dyYv+rdSXudPDz+RolllLlXWIxDO8nka2REM3rJ3OieS6WXpVNCDCH rUdTObCiE9Ko3xYCkkyMsSewG+ppKkdi/6G4HtgJYM57XUFE0VhKSsm5Af4+3ry3 PHxFA2dBrZwFC/b1YauglhP4TNODj9UeSHVkgZNHN+nPLS6O8EDajnxFH+DFKu5I cKn3y01DSsVRWQbRq9/zI5CnntFRtPhM3MuZuSyj/epYF0Y4Cjo= =NCMe -----END PGP SIGNATURE----- --IU5/I01NYhRvwH70--