From: Gwenhael Goavec-Merou <gwenj@trabucayre.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 07/17] package/aubio: use the new fftw-double and fftw-single packages
Date: Fri, 18 Jan 2019 12:00:11 +0100 [thread overview]
Message-ID: <20190118120011.07708376@x230> (raw)
In-Reply-To: <20190101120242.GL26917@scaer>
Hello,
On Tue, 1 Jan 2019 13:02:42 +0100
"Yann E. MORIN" <yann.morin.1998@free.fr> wrote:
> Thomas, Gwenha?l, All,
>
> Gwenha?l, question for you below...
>
> On 2018-12-31 14:30 +0100, Thomas Petazzoni spake thusly:
> > From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> >
> > Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> > [Thomas: drop the condition on BR2_PACKAGE_FFTW]
> > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> > ---
> > package/aubio/aubio.mk | 13 ++++++-------
> > 1 file changed, 6 insertions(+), 7 deletions(-)
> >
> > diff --git a/package/aubio/aubio.mk b/package/aubio/aubio.mk
> > index b0cc8b899e..dd2db2adb9 100644
> > --- a/package/aubio/aubio.mk
> > +++ b/package/aubio/aubio.mk
> > @@ -27,7 +27,7 @@ AUBIO_CONF_OPTS += --disable-sndfile
> > endif
> >
> > # Could not compile aubio in double precision mode with libsamplerate
> > -ifeq ($(BR2_PACKAGE_LIBSAMPLERATE)$(BR2_PACKAGE_FFTW_PRECISION_SINGLE),yy)
> > +ifeq ($(BR2_PACKAGE_LIBSAMPLERATE)$(BR2_PACKAGE_FFTW_SINGLE),yy)
>
> Now, we can be in a situation where both single and double are enabled,
> so the condi9tion here would be satisfied, i.e. we'd build with
> libsamplerate, but...
>
> > AUBIO_DEPENDENCIES += libsamplerate
> > AUBIO_CONF_OPTS += --enable-samplerate
> > else
> > @@ -41,15 +41,14 @@ else
> > AUBIO_CONF_OPTS += --disable-jack
> > endif
> >
> > -ifeq ($(BR2_PACKAGE_FFTW),y)
> > -AUBIO_DEPENDENCIES += fftw
> > # fftw3 require double otherwise it will look for fftw3f
> > -ifeq ($(BR2_PACKAGE_FFTW_PRECISION_DOUBLE),y)
> > +ifeq ($(BR2_PACKAGE_FFTW_DOUBLE),y)
>
> ... here we'd be using the double variant, as it takes precedence over
> the single one.
>
> Thus we'd end up in the situation that the comment warns about: building
> libsamplerate in double precision is not possible.
>
> So, I'd suggest that we move the libsamplerate condition below, in the
> fftw-single condition...
>
> > AUBIO_CONF_OPTS += --enable-fftw3 --enable-double
> > -else ifeq ($(BR2_PACKAGE_FFTW_PRECISION_SINGLE),y)
> > +AUBIO_DEPENDENCIES += fftw-double
> > +else ifeq ($(BR2_PACKAGE_FFTW_SINGLE),y)
> > AUBIO_CONF_OPTS += --enable-fftw3f --disable-double
> > -endif
> > -else # !BR2_PACKAGE_FFTW
> > +AUBIO_DEPENDENCIES += fftw-single
>
> ... here.
>
> Of course, if the comment is now wrong and the libsamplerate can be
> build with fftw-double, the fix is different, and the condition on
> fftw-single should be dropped for libsamplerate.
>
> Gwenha?l, care to share your thoughts on this? ;-)
True, double can't be enabled if libsamplerate is set.
It's seem mandatory to add a test about libsamplerate to avoid double if
present (or add an option to let the user decide if libsamplerate support must
be use or not).
Gwen
>
> Regards,
> Yann E. MORIN.
>
> > +else
> > AUBIO_CONF_OPTS += --disable-fftw3
> > endif
> >
> > --
> > 2.20.1
> >
>
> --
> .-----------------.--------------------.------------------.--------------------.
> | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics'
> conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN |
> ___ | | +33 223 225 172 `------------.-------: X AGAINST
> | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML
> MAIL | v conspiracy. |
> '------------------------------^-------^------------------^--------------------'
> _______________________________________________ buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
next prev parent reply other threads:[~2019-01-18 11:00 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-31 13:30 [Buildroot] [PATCH v3 00/17] Split fftw into multiple packages Thomas Petazzoni
2018-12-31 13:30 ` [Buildroot] [PATCH v3 01/17] package/fftw: prepare for splitting " Thomas Petazzoni
2019-01-01 10:14 ` Yann E. MORIN
2018-12-31 13:30 ` [Buildroot] [PATCH v3 02/17] package/fftw: break fftw-single into a dedicated package Thomas Petazzoni
2019-01-01 11:09 ` Yann E. MORIN
2019-01-01 12:00 ` Thomas Petazzoni
2019-01-01 12:11 ` Yann E. MORIN
2018-12-31 13:30 ` [Buildroot] [PATCH v3 03/17] package/fftw: break fftw-long-double " Thomas Petazzoni
2019-01-01 11:40 ` Yann E. MORIN
2018-12-31 13:30 ` [Buildroot] [PATCH v3 04/17] package/fftw: break fftw-quad " Thomas Petazzoni
2019-01-01 11:46 ` Yann E. MORIN
2018-12-31 13:30 ` [Buildroot] [PATCH v3 05/17] package/fftw: break fftw-double " Thomas Petazzoni
2019-01-01 11:52 ` Yann E. MORIN
2018-12-31 13:30 ` [Buildroot] [PATCH v3 06/17] package/alsa-utils: use the new fftw-single package Thomas Petazzoni
2019-01-01 11:55 ` Yann E. MORIN
2018-12-31 13:30 ` [Buildroot] [PATCH v3 07/17] package/aubio: use the new fftw-double and fftw-single packages Thomas Petazzoni
2019-01-01 12:02 ` Yann E. MORIN
2019-01-18 11:00 ` Gwenhael Goavec-Merou [this message]
2018-12-31 13:30 ` [Buildroot] [PATCH v3 08/17] package/gnuradio: use the new fftw-single package Thomas Petazzoni
2019-01-01 12:16 ` Yann E. MORIN
2019-01-01 13:07 ` Thomas Petazzoni
2019-01-18 11:00 ` Gwenhael Goavec-Merou
2018-12-31 13:30 ` [Buildroot] [PATCH v3 09/17] package/gqrx: remove unneeded fftw dependency Thomas Petazzoni
2019-01-01 12:29 ` Yann E. MORIN
2019-01-01 12:33 ` Yann E. MORIN
2019-01-18 11:00 ` Gwenhael Goavec-Merou
2018-12-31 13:30 ` [Buildroot] [PATCH v3 10/17] package/hackrf: use the new fftw-single package Thomas Petazzoni
2019-01-01 18:11 ` Yann E. MORIN
2018-12-31 13:30 ` [Buildroot] [PATCH v3 11/17] package/httping: use the new fftw-double package Thomas Petazzoni
2019-01-01 18:16 ` Yann E. MORIN
2019-01-18 11:01 ` Gwenhael Goavec-Merou
2018-12-31 13:30 ` [Buildroot] [PATCH v3 12/17] package/imagemagick: " Thomas Petazzoni
2019-01-01 21:03 ` Yann E. MORIN
2019-01-18 11:01 ` Gwenhael Goavec-Merou
2018-12-31 13:30 ` [Buildroot] [PATCH v3 13/17] package/libvips: " Thomas Petazzoni
2019-01-01 21:06 ` Yann E. MORIN
2018-12-31 13:30 ` [Buildroot] [PATCH v3 14/17] package/pulseaudio: use the new fftw-single package Thomas Petazzoni
2019-01-01 21:44 ` Yann E. MORIN
2018-12-31 13:30 ` [Buildroot] [PATCH v3 15/17] package/liquid-dsp: use the new fftw-{single, double, long-double} packages Thomas Petazzoni
2019-01-01 21:50 ` Yann E. MORIN
2019-01-01 21:57 ` Yann E. MORIN
2018-12-31 13:30 ` [Buildroot] [PATCH v3 16/17] package/fftw: remove as regular package Thomas Petazzoni
2019-01-01 12:24 ` Yann E. MORIN
2019-01-01 21:54 ` Yann E. MORIN
2018-12-31 13:30 ` [Buildroot] [PATCH v3 17/17] package/liquid-dsp: drop support for fftw-double and fftw-long-double Thomas Petazzoni
2018-12-31 13:52 ` Baruch Siach
2018-12-31 13:54 ` Thomas Petazzoni
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=20190118120011.07708376@x230 \
--to=gwenj@trabucayre.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