gnu: pulseaudio: Update to 16.1 and use gexps.
* gnu/packages/pulseaudio.scm (pulseaudio): Update to 16.1. [source]: Delete trailing #t and extraneous 'begin'. [arguments]: Use gexps. [phases]: Delete trailing #t. [native-inputs]: Delete input labels.master
parent
58c9cbc63b
commit
7693ee2dd0
|
@ -15,6 +15,7 @@
|
||||||
;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
|
;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
|
||||||
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
|
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
|
||||||
;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
|
;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
|
||||||
|
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -34,6 +35,7 @@
|
||||||
(define-module (gnu packages pulseaudio)
|
(define-module (gnu packages pulseaudio)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix gexp)
|
||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
#:use-module ((guix licenses) #:prefix l:)
|
#:use-module ((guix licenses) #:prefix l:)
|
||||||
|
@ -178,7 +180,7 @@ rates.")
|
||||||
(define-public pulseaudio
|
(define-public pulseaudio
|
||||||
(package
|
(package
|
||||||
(name "pulseaudio")
|
(name "pulseaudio")
|
||||||
(version "15.0")
|
(version "16.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
|
@ -186,33 +188,32 @@ rates.")
|
||||||
name "-" version ".tar.xz"))
|
name "-" version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1851rg4h6sjwanvd294hn52z321rc6vbs4gbfrlw53597dx8h2x4"))
|
"1r2aa0g7al9jhrrbrnih6i3bfznd73kkbafrbzwpjyflj7735vwf"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
;; Disable console-kit support by default since it's deprecated
|
;; Disable console-kit support by default since it's deprecated
|
||||||
;; anyway.
|
;; anyway.
|
||||||
'(begin
|
'(substitute* "src/daemon/default.pa.in"
|
||||||
(substitute* "src/daemon/default.pa.in"
|
|
||||||
(("load-module module-console-kit" all)
|
(("load-module module-console-kit" all)
|
||||||
(string-append "#" all "\n")))
|
(string-append "#" all "\n"))))
|
||||||
#t))
|
|
||||||
(patches (search-patches
|
(patches (search-patches
|
||||||
"pulseaudio-fix-mult-test.patch"
|
"pulseaudio-fix-mult-test.patch"
|
||||||
"pulseaudio-longer-test-timeout.patch"))))
|
"pulseaudio-longer-test-timeout.patch"))))
|
||||||
(build-system meson-build-system)
|
(build-system meson-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags
|
(list
|
||||||
(let ((out (assoc-ref %outputs "out")))
|
#:configure-flags
|
||||||
(list "-Doss-output=disabled"
|
#~(list "-Doss-output=disabled"
|
||||||
"-Dlocalstatedir=/var"
|
"-Dlocalstatedir=/var"
|
||||||
(string-append "-Dudevrulesdir="
|
(string-append "-Dudevrulesdir="
|
||||||
out "/lib/udev/rules.d")
|
#$output "/lib/udev/rules.d")
|
||||||
;; Ensure the RUNPATH contains all installed library locations.
|
;; Ensure the RUNPATH contains all installed library locations.
|
||||||
(string-append "-Dc_link_args=-Wl,-rpath="
|
(string-append "-Dc_link_args=-Wl,-rpath="
|
||||||
out "/lib/pulseaudio:"
|
#$output "/lib/pulseaudio:"
|
||||||
out "/lib:"
|
#$output "/lib:"
|
||||||
out "/lib/pulse-" ,version "/modules")))
|
#$output "/lib/pulse-" #$version "/modules"))
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
(add-before 'check 'pre-check
|
(add-before 'check 'pre-check
|
||||||
(lambda _
|
(lambda _
|
||||||
;; 'tests/lock-autospawn-test.c' wants to create a file
|
;; 'tests/lock-autospawn-test.c' wants to create a file
|
||||||
|
@ -220,8 +221,7 @@ rates.")
|
||||||
(setenv "HOME" (getcwd))
|
(setenv "HOME" (getcwd))
|
||||||
;; 'thread-test' needs more time on hydra and on slower
|
;; 'thread-test' needs more time on hydra and on slower
|
||||||
;; machines, so we set the default timeout to 120 seconds.
|
;; machines, so we set the default timeout to 120 seconds.
|
||||||
(setenv "CK_DEFAULT_TIMEOUT" "120")
|
(setenv "CK_DEFAULT_TIMEOUT" "120"))))))
|
||||||
#t)))))
|
|
||||||
(inputs
|
(inputs
|
||||||
(list alsa-lib
|
(list alsa-lib
|
||||||
bluez
|
bluez
|
||||||
|
@ -243,14 +243,14 @@ rates.")
|
||||||
elogind
|
elogind
|
||||||
eudev)) ;for the detection of hardware audio devices
|
eudev)) ;for the detection of hardware audio devices
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("check" ,check)
|
(list check
|
||||||
("doxygen" ,doxygen)
|
doxygen
|
||||||
("gettext" ,gettext-minimal)
|
gettext-minimal
|
||||||
("glib:bin" ,glib "bin")
|
`(,glib "bin")
|
||||||
("m4" ,m4)
|
m4
|
||||||
("perl" ,perl)
|
perl
|
||||||
("perl-xml-parser" ,perl-xml-parser)
|
perl-xml-parser
|
||||||
("pkg-config" ,pkg-config)))
|
pkg-config))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
;; 'libpulse*.la' contain `-ltdb' and `-lcap', so propagate them.
|
;; 'libpulse*.la' contain `-ltdb' and `-lcap', so propagate them.
|
||||||
(list libcap tdb))
|
(list libcap tdb))
|
||||||
|
|
Reference in New Issue