Archived
1
0
Fork 0

gnu: mumble: Update to 1.3.0.

* gnu/packages/telephony.scm (mumble): Update to 1.3.0.
[source]: Remove patch. Update snippet.
[build-system]: Switch to qt-build-system.
[arguments]: Update custom 'configure phase. Add custom phase to disable
murmur ice.
[inputs]: Remove protobuf-3.5, libx11, qt-4, alsa-lib. Add protobuf,
mesa, qtbase, qtsvg.
[native-inputs]: Add python, qttools.
[license]: Update license info.
* gnu/packages/patches/mumble-1.2.19-abs.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Remove it.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Ivan Vilata-i-Balaguer 2019-12-15 14:22:08 -05:00 committed by Efraim Flashner
parent 003fcf23d9
commit a21d9b8d5c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351
3 changed files with 67 additions and 79 deletions

View file

@ -1157,7 +1157,6 @@ dist_patch_DATA = \
%D%/packages/patches/mrrescue-support-love-11.patch \ %D%/packages/patches/mrrescue-support-love-11.patch \
%D%/packages/patches/mrustc-0.8.0-fix-variable-length-integer-receiving.patch \ %D%/packages/patches/mrustc-0.8.0-fix-variable-length-integer-receiving.patch \
%D%/packages/patches/mtools-mformat-uninitialized.patch \ %D%/packages/patches/mtools-mformat-uninitialized.patch \
%D%/packages/patches/mumble-1.2.19-abs.patch \
%D%/packages/patches/mumps-build-parallelism.patch \ %D%/packages/patches/mumps-build-parallelism.patch \
%D%/packages/patches/mumps-shared-libseq.patch \ %D%/packages/patches/mumps-shared-libseq.patch \
%D%/packages/patches/mumps-shared-mumps.patch \ %D%/packages/patches/mumps-shared-mumps.patch \

View file

@ -1,31 +0,0 @@
From ea861fe86743c8402bbad77d8d1dd9de8dce447e Mon Sep 17 00:00:00 2001
From: Mikkel Krautz <mikkel@krautz.dk>
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 nsamp) {
top[2] = 0.0f;
}
- if (std::abs<float>(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.
float azimuth = 0.0f;

View file

@ -13,6 +13,7 @@
;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de> ;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz> ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl> ;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
;;; Copyright © 2019 Ivan Vilata i Balaguer <ivan@selidor.net>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -44,6 +45,7 @@
#:use-module (gnu packages file) #:use-module (gnu packages file)
#:use-module (gnu packages protobuf) #:use-module (gnu packages protobuf)
#:use-module (gnu packages gettext) #:use-module (gnu packages gettext)
#:use-module (gnu packages gl)
#:use-module (gnu packages glib) #:use-module (gnu packages glib)
#:use-module (gnu packages gnome) #:use-module (gnu packages gnome)
#:use-module (gnu packages gnupg) #:use-module (gnu packages gnupg)
@ -77,7 +79,8 @@
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix git-download) #:use-module (guix git-download)
#:use-module (guix build-system cmake) #:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)) #:use-module (guix build-system gnu)
#:use-module (guix build-system qt))
(define-public commoncpp (define-public commoncpp
(package (package
@ -379,54 +382,63 @@ address of one of the participants.")
(define-public mumble (define-public mumble
(package (package
(name "mumble") (name "mumble")
(version "1.2.19") (version "1.3.0")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://mumble.info/snapshot/" (uri (string-append "https://mumble.info/snapshot/"
name "-" version ".tar.gz")) name "-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"1s60vaici3v034jzzi20x23hsj6mkjlc0glipjq4hffrg9qgnizh")) "03dqg5yf6d7ilc1wydpshnv1ndssppcbadqcq20jm5j4fdaf53cs"))
(patches (search-patches "mumble-1.2.19-abs.patch"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
`(begin `(begin
;; Remove bundled software. ;; Remove bundled software. Keep arc4random, celt-0.7.0,
(for-each delete-file-recursively '("3rdparty" ;; celt-0.11.0, qqbonjour, rnnoise, smallft.
"speex" (for-each
"speexbuild" delete-file-recursively
"opus-build" '("3rdparty/GL" ; in mesa
"opus-src" "3rdparty/mach-override-build" ; for macx
"sbcelt-helper-build" "3rdparty/mach-override-src"
"sbcelt-lib-build" "3rdparty/minhook-build" ; for win32
"sbcelt-src")) "3rdparty/minhook-src"
;; TODO: Celt is still bundled. It has been merged into Opus "3rdparty/opus-build" ; in opus
;; and will be removed after 1.3.0. "3rdparty/opus-src"
;; https://github.com/mumble-voip/mumble/issues/1999 "3rdparty/sbcelt-helper-build" ; not enabled
"3rdparty/sbcelt-lib-build"
"3rdparty/sbcelt-src"
"3rdparty/speex-build" ; in speex
"3rdparty/speex-src"
"3rdparty/speexdsp-src" ; in speexdsp
"3rdparty/xinputcheck-build" ; for win32
"3rdparty/xinputcheck-src"))
#t)))) #t))))
(build-system gnu-build-system) (build-system qt-build-system)
(arguments (arguments
`(#:tests? #f ; no "check" target `(#:tests? #f ; no "check" target
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'configure (replace 'configure
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(invoke "qmake" "main.pro" "-recursive" (invoke "qmake" "main.pro" "QMAKE_LRELEASE=lrelease"
(string-append "MUMBLE_PYTHON="
(string-append (assoc-ref inputs "python")
"/bin/python3"))
(string-append "CONFIG+=" (string-append "CONFIG+="
(string-join (string-join
(list "no-update" ;; Options used are listed in the same order
"no-ice" ;; as in the "INSTALL" file
;; (plus the final "packaged" and "release").
(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-embed-qt-translations"
"no-bundled-speex" "no-ice" ; not packaged
"pch" "packaged"
"no-bundled-opus"
"no-celt"
"no-alsa"
"no-oss"
"no-portaudio"
"speechd"
"no-g15"
"no-bonjour"
"release"))) "release")))
(string-append "DEFINES+=" (string-append "DEFINES+="
"PLUGIN_PATH=" "PLUGIN_PATH="
@ -435,7 +447,13 @@ address of one of the participants.")
(add-before 'configure 'fix-libspeechd-include (add-before 'configure 'fix-libspeechd-include
(lambda _ (lambda _
(substitute* "src/mumble/TextToSpeech_unix.cpp" (substitute* "src/mumble/TextToSpeech_unix.cpp"
(("libspeechd.h") "speech-dispatcher/libspeechd.h")))) (("libspeechd.h") "speech-dispatcher/libspeechd.h"))
#t))
(add-before 'install 'disable-murmur-ice
(lambda _
(substitute* "scripts/murmur.ini.system"
(("^ice=") ";ice="))
#t))
(replace 'install ; install phase does not exist (replace 'install ; install phase does not exist
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
@ -466,21 +484,23 @@ address of one of the participants.")
(find-files "release/plugins" "\\.so$")))))))) (find-files "release/plugins" "\\.so$"))))))))
(inputs (inputs
`(("avahi" ,avahi) `(("avahi" ,avahi)
("protobuf" ,protobuf-3.5)
("openssl" ,openssl)
("libsndfile" ,libsndfile)
("boost" ,boost) ("boost" ,boost)
("opus" ,opus) ("libsndfile" ,libsndfile)
("speex" ,speex)
("speexdsp" ,speexdsp)
("speech-dispatcher" ,speech-dispatcher)
("libx11" ,libx11)
("libxi" ,libxi) ("libxi" ,libxi)
("qt-4" ,qt-4) ("mesa" ,mesa) ; avoid bundled
("alsa-lib" ,alsa-lib) ("openssl" ,openssl)
("pulseaudio" ,pulseaudio))) ("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 (native-inputs
`(("pkg-config" ,pkg-config))) `(("pkg-config" ,pkg-config)
("python" ,python)
("qttools" ,qttools)))
(synopsis "Low-latency, high quality voice chat software") (synopsis "Low-latency, high quality voice chat software")
(description (description
"Mumble is an low-latency, high quality voice chat "Mumble is an low-latency, high quality voice chat
@ -488,9 +508,9 @@ software primarily intended for use while gaming.
Mumble consists of two applications for separate usage: Mumble consists of two applications for separate usage:
@code{mumble} for the client, and @code{murmur} for the server.") @code{mumble} for the client, and @code{murmur} for the server.")
(home-page "https://wiki.mumble.info/wiki/Main_Page") (home-page "https://wiki.mumble.info/wiki/Main_Page")
(license (list license:bsd-3 (license (list license:bsd-3 ; mumble celt-0.7.0 qqbonjour rnnoise smallft
;; The bundled celt is bsd-2. Remove after 1.3.0. license:bsd-2 ; celt-0.11.0
license:bsd-2)))) license:isc)))) ; arc4random
(define-public twinkle (define-public twinkle
(package (package