From c380e354defda5155ee86602219810c19978416b Mon Sep 17 00:00:00 2001 From: Tom Yan Date: Sun, 5 Aug 2018 12:17:43 +0800 Subject: [PATCH] libpulseaudio: fix autospawn Autospawn needs to use the wrapper we made, otherwise the sles sink module cannot be loaded. Also patch caps.c to remove the silly warning that somehow ignores log-level and log-target to avoid programs like cmus being ruined when pulse is spawned. --- packages/libpulseaudio/caps.c.patch | 13 +++++++++++++ packages/libpulseaudio/client.conf.in.patch | 12 ++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 packages/libpulseaudio/caps.c.patch create mode 100644 packages/libpulseaudio/client.conf.in.patch diff --git a/packages/libpulseaudio/caps.c.patch b/packages/libpulseaudio/caps.c.patch new file mode 100644 index 000000000..75e33f6b1 --- /dev/null +++ b/packages/libpulseaudio/caps.c.patch @@ -0,0 +1,13 @@ +diff --git a/src/daemon/caps.c~ b/src/daemon/caps.c +index fd135c0..135d842 100644 +--- a/src/daemon/caps.c~ ++++ b/src/daemon/caps.c +@@ -92,8 +92,5 @@ void pa_drop_caps(void) { + #error "Don't know how to do capabilities on your system. Please send a patch." + #endif /* __linux__ */ + #else /* HAVE_SYS_CAPABILITY_H */ +- pa_log_warn("Normally all extra capabilities would be dropped now, but " +- "that's impossible because PulseAudio was built without " +- "capabilities support."); + #endif + } diff --git a/packages/libpulseaudio/client.conf.in.patch b/packages/libpulseaudio/client.conf.in.patch new file mode 100644 index 000000000..93f47722e --- /dev/null +++ b/packages/libpulseaudio/client.conf.in.patch @@ -0,0 +1,12 @@ +diff --git a/src/pulse/client.conf.in~ b/src/pulse/client.conf.in +index 26b7790..a29cf86 100644 +--- a/src/pulse/client.conf.in~ ++++ b/src/pulse/client.conf.in +@@ -23,6 +23,7 @@ + ; default-dbus-server = + + ; autospawn = yes ++daemon-binary = @TERMUX_PREFIX@/bin/pulseaudio + ; daemon-binary = @PA_BINARY@ + ; extra-arguments = --log-target=syslog +