Browse Source

initial package creation

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 2 years ago
commit
2dce4a06ca
  1. 10
      SOURCES/default.pa-for-gdm
  2. 24
      SOURCES/pulseaudio-11.1-autospawn_disable.patch
  3. 14
      SOURCES/pulseaudio-autostart.patch
  4. 1166
      SPECS/pulseaudio.spec

10
SOURCES/default.pa-for-gdm

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
load-module module-device-restore
load-module module-card-restore
load-module module-udev-detect
load-module module-native-protocol-unix
load-module module-default-device-restore
load-module module-rescue-streams
load-module module-always-sink
load-module module-intended-roles
load-module module-suspend-on-idle
load-module module-position-event-sounds

24
SOURCES/pulseaudio-11.1-autospawn_disable.patch

@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
diff -up pulseaudio-11.1/src/pulse/client-conf.c.autospawn pulseaudio-11.1/src/pulse/client-conf.c
--- pulseaudio-11.1/src/pulse/client-conf.c.autospawn 2018-03-01 15:52:25.304612437 -0600
+++ pulseaudio-11.1/src/pulse/client-conf.c 2018-03-01 15:56:17.643552698 -0600
@@ -63,7 +63,7 @@ static const pa_client_conf default_conf
.cookie_from_x11_valid = false,
.cookie_file_from_application = NULL,
.cookie_file_from_client_conf = NULL,
- .autospawn = true,
+ .autospawn = false,
.disable_shm = false,
.disable_memfd = false,
.shm_size = 0,
diff -up pulseaudio-11.1/src/pulse/client.conf.in.autospawn pulseaudio-11.1/src/pulse/client.conf.in
--- pulseaudio-11.1/src/pulse/client.conf.in.autospawn 2016-08-23 07:50:10.000000000 -0500
+++ pulseaudio-11.1/src/pulse/client.conf.in 2018-03-01 15:56:01.201344622 -0600
@@ -22,7 +22,7 @@
; default-server =
; default-dbus-server =
-; autospawn = yes
+; autospawn = no
; daemon-binary = @PA_BINARY@
; extra-arguments = --log-target=syslog

14
SOURCES/pulseaudio-autostart.patch

@ -0,0 +1,14 @@ @@ -0,0 +1,14 @@
diff --git a/src/daemon/start-pulseaudio-x11.in b/src/daemon/start-pulseaudio-x11.in
index 722a639c0..7cdf14e4d 100755
--- a/src/daemon/start-pulseaudio-x11.in
+++ b/src/daemon/start-pulseaudio-x11.in
@@ -17,6 +17,9 @@
set -e
+# probe to test if autospawn works, else resort to starting manually
+@PACTL_BINARY@ info > /dev/null 2>&1 || @PA_BINARY@ --start "$@"
+
if [ -n "$1" ] ; then
case $1 in
stop)

1166
SPECS/pulseaudio.spec

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save