From patchwork Sat May 17 14:40:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 349912 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 75275140110 for ; Sun, 18 May 2014 00:40:58 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6E0F989682; Sat, 17 May 2014 14:40:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W5V-rQfQxZk0; Sat, 17 May 2014 14:40:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 90882896C5; Sat, 17 May 2014 14:40:52 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 4A9721C27FC for ; Sat, 17 May 2014 14:40:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 45F622015E for ; Sat, 17 May 2014 14:40:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hSi1lwIWvU3S for ; Sat, 17 May 2014 14:40:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (top.free-electrons.com [176.31.233.9]) by silver.osuosl.org (Postfix) with ESMTP id 6540920148 for ; Sat, 17 May 2014 14:40:46 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id C07FC811; Sat, 17 May 2014 16:40:46 +0200 (CEST) Received: from localhost (AToulouse-651-1-158-31.w92-136.abo.wanadoo.fr [92.136.201.31]) by mail.free-electrons.com (Postfix) with ESMTPSA id 6D5D2D; Sat, 17 May 2014 16:40:36 +0200 (CEST) From: Thomas Petazzoni To: buildroot@uclibc.org Date: Sat, 17 May 2014 16:40:31 +0200 Message-Id: <1400337631-8964-1-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.9.3 Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH] pulseaudio: uses fork(), not available on noMMU platforms X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net 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. Signed-off-by: Thomas Petazzoni --- 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(+) diff --git a/package/gstreamer/gst-plugins-good/Config.in b/package/gstreamer/gst-plugins-good/Config.in index 9c2b884..3ec93cf 100644 --- a/package/gstreamer/gst-plugins-good/Config.in +++ b/package/gstreamer/gst-plugins-good/Config.in @@ -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" diff --git a/package/gstreamer1/gst1-plugins-good/Config.in b/package/gstreamer1/gst1-plugins-good/Config.in index 9fd6114..7159c5a 100644 --- a/package/gstreamer1/gst1-plugins-good/Config.in +++ b/package/gstreamer1/gst1-plugins-good/Config.in @@ -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 diff --git a/package/mpd/Config.in b/package/mpd/Config.in index 7237b89..1bf7ad1 100644 --- a/package/mpd/Config.in +++ b/package/mpd/Config.in @@ -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. diff --git a/package/pulseaudio/Config.in b/package/pulseaudio/Config.in index e5b9d8a..ac6222c 100644 --- a/package/pulseaudio/Config.in +++ b/package/pulseaudio/Config.in @@ -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