From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] pulseaudio: add bluez5_utils as dependency
Date: Sat, 15 Jul 2017 11:51:23 +0200 [thread overview]
Message-ID: <20170715115123.51b9da0c@windsurf> (raw)
In-Reply-To: <20170714162137.9402-1-ccrisan@gmail.com>
Hello,
On Fri, 14 Jul 2017 19:21:35 +0300, Calin Crisan wrote:
> The pulseaudio configure script autodetects the presence of
> bluez 4.x and 5.x packages on the system and will exclude the
> bluetooth-related modules in their absence.
>
> This commit ensures that bluez5_utils, if selected, are installed
> before pulseaudio. The same already happens for bluez_utils (4.x).
>
> Signed-off-by: Calin Crisan <ccrisan@gmail dot com>
Thanks, I've applied to master. However, I have a comment below.
> ---
> package/pulseaudio/pulseaudio.mk | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/package/pulseaudio/pulseaudio.mk b/package/pulseaudio/pulseaudio.mk
> index ddd503a9f..2f2cfbbed 100644
> --- a/package/pulseaudio/pulseaudio.mk
> +++ b/package/pulseaudio/pulseaudio.mk
> @@ -32,6 +32,7 @@ PULSEAUDIO_DEPENDENCIES = \
> $(if $(BR2_PACKAGE_AVAHI_DAEMON),avahi) \
> $(if $(BR2_PACKAGE_DBUS),dbus) \
> $(if $(BR2_PACKAGE_BLUEZ_UTILS),bluez_utils) \
> + $(if $(BR2_PACKAGE_BLUEZ5_UTILS),bluez5_utils) \
> $(if $(BR2_PACKAGE_OPENSSL),openssl) \
> $(if $(BR2_PACKAGE_FFTW),fftw) \
> $(if $(BR2_PACKAGE_SYSTEMD),systemd)
I've applied because you've followed how it's already done for this
package, but I'm not super happy with how it's done. Indeed, pulseaudio
configure script has explicit enable/disable options such as
--enable-bluez4, --enable-bluez5, --enable-openssl, etc.
And it would be a lot better to use them. One benefit is that if we
pass --enable-bluez4, but there is a dependency missing, pulseaudio
configure.ac script will bail out with an error, instead of silently
ignoring and building without pulseaudio support.
Would you be interested in reworking the pulseaudio package to take
advantage of those --enable/--disable options?
One example is that the bluez support (either 4 or 5) requires the sbc
library... which is not expressed at all in the current pulseuadio.mk.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2017-07-15 9:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-14 16:21 [Buildroot] [PATCH 1/1] pulseaudio: add bluez5_utils as dependency Calin Crisan
2017-07-15 9:51 ` Thomas Petazzoni [this message]
2017-07-19 17:45 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170715115123.51b9da0c@windsurf \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox