Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/mpd: fix static build with tremor and vorbis
Date: Sat, 1 Jun 2019 15:47:38 +0200	[thread overview]
Message-ID: <20190601154738.37ce7f71@windsurf> (raw)
In-Reply-To: <CAPi7W83AJMojdj1cmYrSij88Uotzfvvue4hAjCfCRr7du=-gGw@mail.gmail.com>

Hello,

On Sat, 1 Jun 2019 15:40:17 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> > > -     select BR2_PACKAGE_MPD_TREMOR if !(BR2_PACKAGE_MPD_MAD || BR2_PACKAGE_MPD_MPG123 || BR2_PACKAGE_MPD_VORBIS || BR2_PACKAGE_MPD_WAVPACK || BR2_PACKAGE_MPD_FLAC || BR2_PACKAGE_MPD_MUSEPACK || BR2_PACKAGE_MPD_FFMPEG)  
> >
> > Why was this select here in the first place ? Does it build fine with
> > no sub-option enabled ?  
> It builds fine without it. I don't know why this select was added.

Should be mentioned in the commit log, and or perhaps even be part of a
separate preparation patch.

The reason why this select was added is explained in commit
d428dddf680b067c13ba9a08bfd502c7286cffe7:

commit d428dddf680b067c13ba9a08bfd502c7286cffe7
Author: Gustavo Zacarias <gustavo@zacarias.com.ar>
Date:   Fri Feb 25 17:10:05 2011 -0300

    mpd: default to tremor input plugin
    
    MPD requires at least one input plugin to build.
    If there's none selected default to tremor (vorbis).
    
    Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
    Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>

Perhaps this is no longer true today.

> > Also, I am not sure why you are not just adding a depends on
> > BR2_SOFT_FLOAT in one case, and a "depends on !BR2_SOFT_FLOAT" in the
> > other case.  
> OK, I'll just add a depends on. I'll change the current behavior but I
> think this is acceptable.

Your idea was to try to remain backward compatible with
existing .config ? I'm not sure it's easy to achieve: we would want
tremor to be enabled if vorbis was enabled but we're on a soft-float
target. Except that you need to make vorbis depends on !BR2_SOFT_FLOAT,
so it will become disabled anyway.

I'd say, let's keep things simple, and use simple dependencies. BTW,
I'm not sure we should use BR2_SOFT_FLOAT. Perhaps, we should make the
MPD_TREMOR and MPD_VORBIS options mutually exclusive ?

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2019-06-01 13:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-01 12:42 [Buildroot] [PATCH 1/1] package/mpd: fix static build with tremor and vorbis Fabrice Fontaine
2019-06-01 13:03 ` Thomas Petazzoni
2019-06-01 13:40   ` Fabrice Fontaine
2019-06-01 13:47     ` Thomas Petazzoni [this message]
2019-06-01 13:53       ` Fabrice Fontaine

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=20190601154738.37ce7f71@windsurf \
    --to=thomas.petazzoni@bootlin.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