Skip to contentSkip to conversation

pulseaudio: uses fork(), not available on noMMU platforms

PATCH New Thomas Petazzoni 2 participants 2 messages May 17, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pulseaudio: uses fork(), not available on noMMU platforms

Even though pulseaudio has some HAVE_FORK compile-time conditionals to avoid using fork(), those parts of pulseaudio are not using it. Since using pulseaudio on !MMU platforms is fairly unlikely, we simply disable it when no MMU is available, and propagate this dependency to the appropriate locations.

---
 package/gstreamer/gst-plugins-good/Config.in   | 1 +
 package/gstreamer1/gst1-plugins-good/Config.in | 1 +
 package/mpd/Config.in                          | 1 +
 package/pulseaudio/Config.in                   | 2 ++
 4 files changed, 5 insertions(+)
package/gstreamer/gst-plugins-good/Config.in +1 -0
index 9c2b884..3ec93cf 100644
@@ -207,6 +207,7 @@ config BR2_PACKAGE_GST_PLUGINS_GOOD_PLUGIN_OSS4
 config BR2_PACKAGE_GST_PLUGINS_GOOD_PLUGIN_PULSE
 	depends on BR2_TOOLCHAIN_HAS_THREADS # pulseaudio
 	depends on BR2_LARGEFILE # pulseaudio -> libsndfile
+	depends on BR2_USE_MMU # pulseaudio
 	select BR2_PACKAGE_PULSEAUDIO
 	bool "pulseaudio"
 
package/gstreamer1/gst1-plugins-good/Config.in +1 -0
index 9fd6114..7159c5a 100644
@@ -303,6 +303,7 @@ comment "gdkpixbuf needs a toolchain w/ wchar, threads"
 config BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_PULSE
 	depends on BR2_TOOLCHAIN_HAS_THREADS # pulseaudio
 	depends on BR2_LARGEFILE # pulseaudio -> libsndfile
+	depends on BR2_USE_MMU # pulseaudio
 	select BR2_PACKAGE_PULSEAUDIO
 	bool "pulseaudio"
 	help
package/mpd/Config.in +1 -0
index 7237b89..1bf7ad1 100644
@@ -48,6 +48,7 @@ config BR2_PACKAGE_MPD_PULSEAUDIO
 	bool "pulseaudio"
 	depends on BR2_TOOLCHAIN_HAS_THREADS # pulseaudio
 	depends on BR2_LARGEFILE # pulseaudio -> libsndfile
+	depends on BR2_USE_MMU # pulseaudio
 	select BR2_PACKAGE_PULSEAUDIO
 	help
 	  Enable pulseaudio output support.
package/pulseaudio/Config.in +2 -0
index e5b9d8a..ac6222c 100644
@@ -7,6 +7,7 @@ config BR2_PACKAGE_PULSEAUDIO
 	select BR2_PACKAGE_LIBSNDFILE
 	select BR2_PACKAGE_SPEEX
 	depends on BR2_LARGEFILE
+	depends on BR2_USE_MMU # fork()
 	help
 	  PulseAudio is a sound system for POSIX OSes, meaning that it
 	  is a proxy for your sound applications. It allows you to do
@@ -30,4 +31,5 @@ config BR2_PACKAGE_PULSEAUDIO_DAEMON
 endif
 
 comment "pulseaudio needs a toolchain w/ wchar, largefile, threads"
+	depends on BR2_USE_MMU
 	depends on !BR2_USE_WCHAR || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
Signature · 1 line
1.9.3
#1 lore raw

PATCH 1/1 pulseaudio: uses fork(), not available on noMMU platforms

Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Even though pulseaudio has some HAVE_FORK compile-time conditionals to avoid using fork(), those parts of pulseaudio are not using it. Since using pulseaudio on !MMU platforms is fairly unlikely, we simply disable it when no MMU is available, and propagate this dependency to the appropriate locations.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard